Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- added 'search on map' - Link to search result page - added default search option to location search - show default search in search window on location search page - added icon for location search
orbiter1e8c6cefae30
diff --git a/htroot/env/grafics/earthsearch.png b/htroot/env/grafics/earthsearch.pngnew file mode 100644index 000000000..3c69953f0Binary files /dev/null and b/htroot/env/grafics/earthsearch.png differdiff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex e6322cb0d..550b61a0b 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -18,6 +18,8 @@#%env/templates/simpleheader.template%#<script src="/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"></script><script src="/yacy/ui/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>+ <link media="screen" type="text/css" href="/yacy/ui/css/themes/start/ui.base.css" rel="stylesheet" />+ <link media="screen" type="text/css" href="/yacy/ui/css/themes/start/ui.theme.css" rel="stylesheet" />::<div id="api"><script type="text/javascript">@@ -36,6 +38,8 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de#%env/templates/embeddedheader.template%#<script src="/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"></script><script src="/yacy/ui/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>+ <link media="screen" type="text/css" href="/yacy/ui/css/themes/start/ui.base.css" rel="stylesheet" />+ <link media="screen" type="text/css" href="/yacy/ui/css/themes/start/ui.theme.css" rel="stylesheet" />#(/display)#<script type="text/javascript">diff --git a/htroot/yacysearch_location.html b/htroot/yacysearch_location.htmlindex 0f17c85c2..3adf4be60 100644--- a/htroot/yacysearch_location.html+++ b/htroot/yacysearch_location.html@@ -37,6 +37,10 @@), 2 // Zoom level);+ #(initsearch)#::+ searchLayer = new OpenLayers.Layer.GeoRSS('GeoRSS', 'yacysearch_location.rss?query=#[query]#');+ map.addLayer(searchLayer);+ #(/initsearch)#}function search() {@@ -60,7 +64,7 @@<h2>#[promoteSearchPageGreeting]#</h2><div class="yacylogo"><a href="#[promoteSearchPageGreeting.homepage]#" class="yacylogo"><img src="#[promoteSearchPageGreeting.smallImage]#" alt="yacysearch" /></a></div><fieldset class="yacys">- <input type="text" id="query" size="42" />+ <input type="text" value="#(initsearch)#::#[query]##(/initsearch)#" id="query" size="42" /><input type="submit" onclick="search(); return false;" value="search" onsubmit="search(); return false;" /></fieldset></form><br/>diff --git a/htroot/yacysearch_location.java b/htroot/yacysearch_location.javaindex 8afb780e2..2f0ec95e4 100644--- a/htroot/yacysearch_location.java+++ b/htroot/yacysearch_location.java@@ -125,6 +125,12 @@ public class yacysearch_location {prop.put("promoteSearchPageGreeting", sb.getConfig(SwitchboardConstants.GREETING, ""));prop.put("promoteSearchPageGreeting.homepage", sb.getConfig(SwitchboardConstants.GREETING_HOMEPAGE, ""));prop.put("promoteSearchPageGreeting.smallImage", sb.getConfig(SwitchboardConstants.GREETING_SMALL_IMAGE, ""));+ if (post == null || post.get("query") == null) {+ prop.put("initsearch", 0);+ } else {+ prop.put("initsearch", 1);+ prop.put("initsearch_query", post.get("query"));+ }}// return rewrite propertiesdiff --git a/htroot/yacysearchtrailer.html b/htroot/yacysearchtrailer.htmlindex fdf8606f7..726d6cd19 100644--- a/htroot/yacysearchtrailer.html+++ b/htroot/yacysearchtrailer.html@@ -1,39 +1,39 @@<div style="float:right;width:25%;">-<div id="sidebar1" style="float: right; margin-top:5px; width: 220px;">#(nav-domains)#::+<div id="sidebar1" style="float: right; margin-top:5px; width: 220px;"><h3 style="padding-left:25px;">Domain Navigator</h3><div><ul style="padding-left: 0px;">#{element}#<li>#[url]#</li>#{/element}#</ul></div>-#(/nav-domains)#</div>+#(/nav-domains)#-<div id="sidebar2" style="float: right; margin-top:5px; width: 220px;">#(nav-namespace)#::+<div id="sidebar2" style="float: right; margin-top:5px; width: 220px;"><h3 style="padding-left:25px;">Name Space Navigator</h3><div><ul style="padding-left: 0px;">#{element}#<li>#[url]#</li>#{/element}#</ul></div>-#(/nav-namespace)#</div>+#(/nav-namespace)#-<div id="sidebar3" style="float: right; margin-top:5px; width: 220px;">#(nav-authors)#::+<div id="sidebar3" style="float: right; margin-top:5px; width: 220px;"><h3 style="padding-left:25px;">Author Navigator</h3><div><ul style="padding-left: 0px;">#{element}#<li>#[url]#</li>#{/element}#</ul></div>-#(/nav-authors)#</div>+#(/nav-authors)#-<div id="sidebar4" style="float: right; margin-top:5px; width: 220px;">#(nav-topics)#::+<div id="sidebar4" style="float: right; margin-top:5px; width: 220px;"><h3 style="padding-left:25px;">Topic Navigator</h3><div><ul style="padding-left: 0px;">#{element}#<li>#[url]#</li>#{/element}#</ul></div>-#(/nav-topics)#</div>+#(/nav-topics)##(nav-about)#::<div id="sidebarAbout" style="float: right; margin-top:5px; width: 220px;">@@ -43,4 +43,9 @@</div></div>#(/nav-about)#-</div>\ No newline at end of file++<div id="sidebar4" style="float: right; margin-top:5px; width: 220px;">+<div><a href="yacysearch_location.html?query=#[query]#&display=#[display]#"><img src="/env/grafics/earthsearch.png"></a><h4><a href="yacysearch_location.html?query=#[query]#&display=#[display]#">Show search results for "#[query]#" on map!</a></h4>+</div>+</div>+diff --git a/htroot/yacysearchtrailer.java b/htroot/yacysearchtrailer.javaindex 06a89a350..427267bb2 100644--- a/htroot/yacysearchtrailer.java+++ b/htroot/yacysearchtrailer.java@@ -169,6 +169,10 @@ public class yacysearchtrailer {prop.put("nav-about_body", aboutBody);}+ // location search+ prop.put("query", theQuery.queryString);+ prop.put("display", display);+EventTracker.update("SEARCH", new ProfilingGraph.searchEvent(theQuery.id(true), SearchEvent.FINALIZATION + "-" + "bottomline", 0, 0), false, 30000, ProfilingGraph.maxTime);return prop;