Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- added bookmarkTitle to CrawlStart_p.html
apfelmaennchen8d1bedfc3a61
diff --git a/htroot/CrawlStart_p.html b/htroot/CrawlStart_p.htmlindex bafd8f784..038b2a5a3 100644--- a/htroot/CrawlStart_p.html+++ b/htroot/CrawlStart_p.html@@ -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".</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"><tr class="TableHeader"><td><strong>Attribut</strong></td>@@ -31,8 +31,7 @@<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 name="crawlingURL" type="text" size="41" maxlength="256" value="http://" onkeypress="changed()" />- <span id="robotsOK"></span>+ <input name="crawlingURL" type="text" size="41" maxlength="256" value="http://" onkeypress="changed()" /></td></tr><tr>@@ -48,7 +47,11 @@<td><input type="file" name="crawlingFile" size="28" /></td></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></table></td>@@ -61,10 +64,14 @@<td>Create Bookmark</td><td><label for="createBookmark">Use</label>:- <input type="checkbox" name="createBookmark" id="createBookmark" /> - <label for="bookmarkFolder"> Bookmark Folder</label>:- <input name="bookmarkFolder" id="bookmarkFolder" type="text" size="20" maxlength="100" value="/crawlStart" /><br />- <br/><br/>This option works with "Starting Point: From URL" only!+ <input type="checkbox" name="createBookmark" id="createBookmark" />+ (works with "Starting Point: From URL" only)+ <br /><br />+ <label for="bookmarkTitle"> Title</label>: + <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 /> </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/>diff --git a/htroot/WatchCrawler_p.java b/htroot/WatchCrawler_p.javaindex 7d361e5b1..a107c77e4 100644--- a/htroot/WatchCrawler_p.java+++ b/htroot/WatchCrawler_p.java@@ -216,7 +216,7 @@ public class WatchCrawler_p {if (post.get("createBookmark","off").equals("on")) {bookmarksDB.Bookmark bookmark = sb.bookmarksDB.createBookmark(crawlingStart, "admin");if(bookmark != null){- bookmark.setProperty(bookmarksDB.Bookmark.BOOKMARK_TITLE, crawlingStart);+ bookmark.setProperty(bookmarksDB.Bookmark.BOOKMARK_TITLE, post.get("bookmarkTitle", crawlingStart));bookmark.setOwner("admin");bookmark.setPublic(false);bookmark.setTags(tags, true);diff --git a/htroot/js/IndexCreate.js b/htroot/js/IndexCreate.jsindex 8769a4f79..45229fd41 100644--- a/htroot/js/IndexCreate.js+++ b/htroot/js/IndexCreate.js@@ -11,7 +11,8 @@ function handleResponse(){if(response.getElementsByTagName("title")[0].firstChild!=null){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.txtrobotsOK="";