- added bookmarkTitle to CrawlStart_p.html

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5068 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent b3fc5e96a3
commit 8d1bedfc3a

@ -16,7 +16,7 @@
You can define URLs as start points for Web page crawling and start crawling here. "Crawling" means that YaCy will download the given website, extract all links in it and then download the content behind these links. This is repeated as long as specified under "Crawling Depth". You can define URLs as start points for Web page crawling and start crawling here. "Crawling" means that YaCy will download the given website, extract all links in it and then download the content behind these links. This is repeated as long as specified under "Crawling Depth".
</p> </p>
<form action="WatchCrawler_p.html" method="post" enctype="multipart/form-data"> <form name="WatchCrawler" id="WatchCrawler" action="WatchCrawler_p.html" method="post" enctype="multipart/form-data">
<table border="0" cellpadding="5" cellspacing="1"> <table border="0" cellpadding="5" cellspacing="1">
<tr class="TableHeader"> <tr class="TableHeader">
<td><strong>Attribut</strong></td> <td><strong>Attribut</strong></td>
@ -31,8 +31,7 @@
<td><label for="url"><nobr>From URL</nobr></label>:</td> <td><label for="url"><nobr>From URL</nobr></label>:</td>
<td><input type="radio" name="crawlingMode" id="url" value="url" checked="checked" /></td> <td><input type="radio" name="crawlingMode" id="url" value="url" checked="checked" /></td>
<td> <td>
<input name="crawlingURL" type="text" size="41" maxlength="256" value="http://" onkeypress="changed()" /> <input name="crawlingURL" type="text" size="41" maxlength="256" value="http://" onkeypress="changed()" />
<span id="robotsOK"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -48,7 +47,11 @@
<td><input type="file" name="crawlingFile" size="28" /></td> <td><input type="file" name="crawlingFile" size="28" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="commit"><span id="title"><br/></span><img src="/env/grafics/empty.gif" name="ajax" alt="empty" /></td> <td colspan="3" class="commit">
<span id="robotsOK"></span>
<span id="title"><br/></span>
<img src="/env/grafics/empty.gif" name="ajax" alt="empty" />
</td>
</tr> </tr>
</table> </table>
</td> </td>
@ -61,10 +64,14 @@
<td>Create Bookmark</td> <td>Create Bookmark</td>
<td> <td>
<label for="createBookmark">Use</label>: <label for="createBookmark">Use</label>:
<input type="checkbox" name="createBookmark" id="createBookmark" />&nbsp;&nbsp;&nbsp; <input type="checkbox" name="createBookmark" id="createBookmark" />
<label for="bookmarkFolder"> Bookmark Folder</label>: &nbsp;&nbsp;&nbsp;(works with "Starting Point: From URL" only)
<input name="bookmarkFolder" id="bookmarkFolder" type="text" size="20" maxlength="100" value="/crawlStart" /><br /> <br /><br />
<br/><br/>This option works with "Starting Point: From URL" only! <label for="bookmarkTitle"> Title</label>:&nbsp;&nbsp;&nbsp;
<input name="bookmarkTitle" id="bookmarkTitle" type="text" size="50" maxlength="100" /><br /><br />
<label for="bookmarkFolder"> Folder</label>:
<input name="bookmarkFolder" id="bookmarkFolder" type="text" size="50" maxlength="100" value="/crawlStart" />
<br />&nbsp;
</td> </td>
<td> <td>
This option lets you create a bookmark from your crawl start URL. For automatic re-crawling you can use the following default folders:<br/> This option lets you create a bookmark from your crawl start URL. For automatic re-crawling you can use the following default folders:<br/>

@ -216,7 +216,7 @@ public class WatchCrawler_p {
if (post.get("createBookmark","off").equals("on")) { if (post.get("createBookmark","off").equals("on")) {
bookmarksDB.Bookmark bookmark = sb.bookmarksDB.createBookmark(crawlingStart, "admin"); bookmarksDB.Bookmark bookmark = sb.bookmarksDB.createBookmark(crawlingStart, "admin");
if(bookmark != null){ if(bookmark != null){
bookmark.setProperty(bookmarksDB.Bookmark.BOOKMARK_TITLE, crawlingStart); bookmark.setProperty(bookmarksDB.Bookmark.BOOKMARK_TITLE, post.get("bookmarkTitle", crawlingStart));
bookmark.setOwner("admin"); bookmark.setOwner("admin");
bookmark.setPublic(false); bookmark.setPublic(false);
bookmark.setTags(tags, true); bookmark.setTags(tags, true);

@ -11,7 +11,8 @@ function handleResponse(){
if(response.getElementsByTagName("title")[0].firstChild!=null){ if(response.getElementsByTagName("title")[0].firstChild!=null){
title=response.getElementsByTagName("title")[0].firstChild.nodeValue; title=response.getElementsByTagName("title")[0].firstChild.nodeValue;
} }
document.getElementById("title").innerHTML=title; // document.getElementById("title").innerHTML=title;
document.WatchCrawler.bookmarkTitle.value=title
// deterime if crawling is allowed by the robots.txt // deterime if crawling is allowed by the robots.txt
robotsOK=""; robotsOK="";

Loading…
Cancel
Save