2006-09-11 20:18:12 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
2006-03-04 19:52:04 +01:00
< head >
2009-12-19 22:26:19 +01:00
< title > #[former]# - YaCy '#[clientname]#': Search Page< / title >
2008-02-18 17:38:06 +01:00
#%env/templates/metas.template%#
2012-06-15 10:43:05 +02:00
#%env/templates/interactionheader.template%#
2010-05-21 15:02:35 +02:00
< link rel = "alternate" type = "application/rss+xml" title = "Search for #[former]#" href = "yacysearch.rss?query=#[former]#" / >
2012-04-29 05:50:56 +02:00
< link rel = "search" type = "application/opensearchdescription+xml" title = "YaCy Search on '#[clientname]#'" href = "http://#[thisaddress]#/opensearchdescription.xml" / >
2009-06-11 00:11:31 +02:00
< link rel = "stylesheet" type = "text/css" media = "screen" href = "/env/highslide.css" / >
2008-02-18 17:38:06 +01:00
< script type = "text/javascript" src = "/js/ajax.js" > < / script >
< script type = "text/javascript" src = "/js/xml.js" > < / script >
< script type = "text/javascript" src = "/js/yacysearch.js" > < / script >
2008-02-19 15:13:35 +01:00
< script type = "text/javascript" src = "/js/highslide/highslide.js" > < / script >
2008-02-18 17:38:06 +01:00
< script type = "text/javascript" > hs . outlineType = 'rounded-white' ; < / script >
2010-09-29 22:06:39 +02:00
< 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 >
2010-10-16 00:01:39 +02:00
< script src = "/yacy/ui/js/jquery.tagcloud.min.js" type = "text/javascript" > < / script >
< script src = "/yacy/ui/js/jquery.tinysort.min.js" type = "text/javascript" > < / script >
2010-09-29 22:06:39 +02:00
< 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" / >
2010-10-12 03:23:49 +02:00
< link media = "screen" type = "text/css" href = "/yacy/ui/css/autocomplete.css" rel = "stylesheet" / >
2010-09-29 22:06:39 +02:00
2010-09-10 12:42:01 +02:00
< script type = "text/javascript" >
//< ![CDATA[
function handleArrowKeys(evt) {
evt = (evt) ? evt : ((window.event) ? event : null);
if (evt) {
switch (evt.keyCode) {
2011-09-14 11:15:09 +02:00
case 9:
case 33:
2010-09-10 12:42:01 +02:00
window.location.href = document.getElementById("nextpage").href;
2012-01-24 19:03:47 +01:00
break;
2011-09-14 11:15:09 +02:00
case 34:
window.location.href = document.getElementById("prevpage").href;
2012-01-24 19:03:47 +01:00
break;
2010-09-10 12:42:01 +02:00
case 40:
}
}
}
2011-09-14 11:15:09 +02:00
document.onkeydown = handleArrowKeys;
2010-09-10 12:42:01 +02:00
//]]>
< / script >
2006-03-04 19:52:04 +01:00
< / head >
2008-06-20 18:46:30 +02:00
< body id = "yacysearch" >
2011-03-23 21:22:08 +01:00
< script type = "text/javascript" src = "/yacy/ui/js/jquery.autocomplete.yacy.js" > < / script >
2010-10-12 03:23:49 +02:00
< script type = "text/javascript" >
$(document).ready(function() {
2010-10-13 00:02:10 +02:00
$('#search').autocomplete('/suggest.json', {parse: opensearch, delay: 0, selectFirst: false, scroll: false, max: 30});
2010-10-12 03:23:49 +02:00
function opensearch(data) {
var parsed = [];
data = eval('({"suggest":' + data + '})');
2012-01-24 19:03:47 +01:00
for (var i = 0; i < data.suggest [ 1 ] . length ; i + + ) {
2010-10-12 03:23:49 +02:00
var row = data.suggest[1][i];
2012-01-24 19:03:47 +01:00
if (row) {
parsed[parsed.length] = {
data: [row],
value: row,
result: row
2010-10-12 03:23:49 +02:00
};
};
};
return parsed;
};
});
< / script >
2010-12-08 11:50:23 +01:00
#(topmenu)#
#%env/templates/embeddedheader.template%#
::
2009-01-08 00:45:20 +01:00
< div id = "api" >
< script type = "text/javascript" >
2009-02-06 15:45:56 +01:00
//< ![CDATA[
2009-01-08 00:45:20 +01:00
document.write("\< a href = \"yacysearch.rss?" + window . location . search . substring ( 1 ) + " \ " \ > ")
2009-02-06 15:45:56 +01:00
//]]>
2009-01-08 00:45:20 +01:00
< / script >
2010-02-08 11:13:14 +01:00
< img src = "env/grafics/api.png" width = "60" height = "40" alt = "API" / > < / a >
2009-01-08 00:45:20 +01:00
< span > This search result can also be retrieved as RSS/< a href = "http://www.opensearch.org" > opensearch< / a > output.
The query format is similar to < a href = "http://www.loc.gov/standards/sru/" > SRU< / a > .
Click the API icon to see an example call to the search rss API.
To see a list of all APIs, please visit the < a href = "http://www.yacy-websuche.de/wiki/index.php/Dev:API" > API wiki page< / a > .< / span >
2009-01-09 16:42:20 +01:00
< / div >
2010-12-08 11:50:23 +01:00
#%env/templates/simpleheader.template%#
#(/topmenu)#
2010-02-11 16:05:38 +01:00
< script type = "text/javascript" >
2009-06-11 00:11:31 +02:00
//< ![CDATA[
$(function() {
$.extend($.ui.accordion.defaults, {
autoHeight: false,
clearStyle: true,
collapsible: true,
header: "h3"
});
2012-01-17 01:53:08 +01:00
#{sidebarVocabulary}#
$("#sidebar#[vocabulary]#").accordion({});
#{/sidebarVocabulary}#
2010-10-18 11:36:49 +02:00
$("#sidebarDomains").accordion({});
2011-06-23 17:39:52 +02:00
$("#sidebarProtocols").accordion({});
$("#sidebarFiletypes").accordion({});
2010-10-18 11:36:49 +02:00
$("#sidebarAuthors").accordion({});
2011-06-23 17:39:52 +02:00
$("#sidebarNameSpace").accordion({});
2010-10-18 11:36:49 +02:00
$("#sidebarTopics").tagcloud({type:"sphere",power:.25,seed:0,sizemin:10,sizemax:20,height:80,colormin:"682",colormax:"20C"}).find("li").tsort();
2009-09-21 00:10:45 +02:00
$("#sidebarAbout").accordion({});
2012-03-17 21:10:29 +01:00
#(focus)#::
2009-06-11 00:11:31 +02:00
$("#search").focus();
2012-03-17 21:10:29 +01:00
#(/focus)#
2009-06-11 00:11:31 +02:00
});
//]]>
< / script >
2011-08-28 16:24:09 +02:00
< form class = "search small" action = "" method = "get" accept-charset = "UTF-8" >
2010-05-18 15:52:15 +02:00
< h2 > #[promoteSearchPageGreeting]#< / h2 >
< div class = "yacylogo" > < a href = "#[promoteSearchPageGreeting.homepage]#" class = "yacylogo" > < img src = "#[promoteSearchPageGreeting.smallImage]#" alt = "yacysearch" / > < / a > < / div >
< fieldset class = "yacys" >
2011-09-14 11:05:06 +02:00
< input id = "search" class = "searchinput" name = "query" type = "text" size = "40" maxlength = "80" value = "#[former]#" onFocus = "this.select()" onclick = "document.getElementById('Enter').value = 'Search'" / >
2010-05-18 15:52:15 +02:00
< input id = "Enter" type = "submit" name = "Enter" value = "Search" / >
#(searchdomswitches)#::
< div class = "yacysearch" >
#(searchtext)#::< input type = "radio" id = "text" name = "contentdom" value = "text" # ( check ) # ::checked = "checked" # ( / check ) # / > < label for = "text" > Text< / label > #(/searchtext)#
#(searchimage)#::< input type = "radio" id = "image" name = "contentdom" value = "image" # ( check ) # ::checked = "checked" # ( / check ) # / > < label for = "image" > Images< / label > #(/searchimage)#
#(searchaudio)#::< input type = "radio" id = "audio" name = "contentdom" value = "audio" # ( check ) # ::checked = "checked" # ( / check ) # / > < label for = "audio" > Audio< / label > #(/searchaudio)#
#(searchvideo)#::< input type = "radio" id = "video" name = "contentdom" value = "video" # ( check ) # ::checked = "checked" # ( / check ) # / > < label for = "video" > Video< / label > #(/searchvideo)#
#(searchapp)#::< input type = "radio" id = "app" name = "contentdom" value = "app" # ( check ) # ::checked = "checked" # ( / check ) # / > < label for = "app" > Applications< / label > #(/searchapp)#
2012-11-13 11:45:56 +01:00
< a href = "index.html?searchoptions=2&count=#[count]#&prefermaskfilter=#[prefermaskfilter]#&cat=#[cat]#&constraint=#[constraint]#&contentdom=#[contentdom]#&former=#[former]#&meanCount=#[meanCount]#" > more options< / a >
2010-05-18 15:52:15 +02:00
< / div >
#(/searchdomswitches)#
< input type = "hidden" name = "former" value = "#[former]#" / >
< input type = "hidden" name = "maximumRecords" value = "#[count]#" / >
< input type = "hidden" name = "startRecord" value = "#[offset]#" / >
2011-03-21 08:50:34 +01:00
< input type = "hidden" name = "verify" value = "#[search.verify]#" / >
2010-05-18 15:52:15 +02:00
< input type = "hidden" name = "resource" value = "#[resource]#" / >
2011-03-21 08:50:34 +01:00
< input type = "hidden" name = "nav" value = "#[search.navigation]#" / >
2010-05-18 15:52:15 +02:00
< input type = "hidden" name = "prefermaskfilter" value = "#[prefermaskfilter]#" / >
< input type = "hidden" name = "depth" value = "#[depth]#" / >
< input type = "hidden" name = "cat" value = "#[cat]#" / >
< input type = "hidden" name = "constraint" value = "#[constraint]#" / >
< input type = "hidden" name = "meanCount" value = "#[meanCount]#" / >
< / fieldset >
< / form >
2011-03-23 01:48:19 +01:00
#(urlmaskerror)#::
< p > < b > Illegal URL mask:< / b > < i > #[urlmask]#< / i > (not a valid regular expression), mask ignored.< / p >
#(/urlmaskerror)#
#(prefermaskerror)#::
< p > < b > Illegal prefer mask:< / b > < i > #[prefermask]#< / i > (not a valid regular expression), mask ignored.< / b > < / p >
#(/prefermaskerror)#
2010-05-18 15:52:15 +02:00
#(didYouMean)#::
< p > < b > Did you mean:< / b > #{suggestions}# < a href = "#[url]#" > #[word]#< / a > #[sep]##{/suggestions}#< / p >
#(/didYouMean)#
2007-04-10 16:28:04 +02:00
2007-04-12 09:31:26 +02:00
#(searchagain)#
::
2006-09-11 20:18:12 +02:00
< script type = "text/javascript" >
2008-09-29 01:19:56 +02:00
document.getElementById("Enter").value = "search again";
2006-09-11 20:18:12 +02:00
< / script >
2007-04-12 09:31:26 +02:00
#(/searchagain)#
2006-03-05 00:55:36 +01:00
2006-12-13 02:39:34 +01:00
<!-- show information about search key handling -->
2006-03-04 19:52:04 +01:00
#(excluded)#
2006-12-13 02:39:34 +01:00
::
< p > < strong > The following words are stop-words and had been excluded from the search: #[stopwords]#.< / strong > < / p >
2006-03-04 19:52:04 +01:00
#(/excluded)#
2006-12-10 00:15:58 +01:00
2010-09-21 23:48:42 +02:00
<!-- type the number of results and navigation bar -->
2006-12-12 03:09:25 +01:00
#(num-results)#
2006-12-13 02:39:34 +01:00
::
< p > No Results.< / p >
::
2011-06-13 23:44:03 +02:00
< p > No Results. (length of search words must be at least 2 characters)< / p >
2006-12-13 02:39:34 +01:00
::
2007-09-17 21:39:15 +02:00
< div id = "results" > < / div >
2009-03-06 11:16:14 +01:00
< span id = "resCounter" style = "display: inline;" > < strong id = "resultsOffset" > #[offset]#< / strong > -< strong id = "itemscount" > #[itemscount]#< / strong > of < strong id = "totalcount" > #[totalcount]#< / strong > #(globalresults)#::; (< strong id = "localResourceSize" > #[localResourceSize]#< / strong > local, < strong id = "remoteResourceSize" > #[remoteResourceSize]#< / strong > remote), < strong id = "remoteIndexCount" > #[remoteIndexCount]#< / strong > from < strong id = "remotePeerCount" > #[remotePeerCount]#< / strong > remote YaCy peers.#(/globalresults)#< / span >
2007-09-17 21:39:15 +02:00
< span id = "resNav" style = "display: inline;" > #[resnav]#< / span >
2007-05-23 21:09:19 +02:00
::
< p > Searching the web with this peer is disabled for unauthorized users. Please < a href = "Status.html?login=" > log in< / a > as administrator to use the search function< / p >
2006-12-12 03:09:25 +01:00
#(/num-results)#
2009-09-21 00:10:45 +02:00
<!-- the search results -->
< script type = "text/javascript" >
var progressbar = new Progressbar(#[results]#, document.getElementById("results"));
2012-03-17 21:10:29 +01:00
#(focus)#::
2011-09-14 11:05:06 +02:00
document.getElementById("search").focus();
2012-03-17 21:10:29 +01:00
#(/focus)#
2009-09-21 00:10:45 +02:00
< / script >
< div style = "float:left; width:70%;" >
2009-09-04 16:32:36 +02:00
<!-- show openstreetmap tiles if geoinfo was found -->
#(geoinfo)#
2009-09-21 00:10:45 +02:00
::
2009-09-04 16:32:36 +02:00
< div class = "searchresults" >
2009-09-04 21:20:27 +02:00
< h4 class = "linktitle" >
< img src = "http://www.openstreetmap.org/favicon.ico" class = "favicon" style = "width:16px; height:16px;" alt = "" / >
2009-09-05 01:33:47 +02:00
Location -- click on map to enlarge< / h4 >
2009-09-04 21:20:27 +02:00
< p class = "url" >
2009-09-04 16:32:36 +02:00
#{loc}#
2009-09-05 01:33:47 +02:00
< div style = "margin: 20px; width: 100px; float: left;" >
2010-07-18 21:21:59 +02:00
< a href = "/osm.png?lon=#[lon]#&lat=#[lat]#&zoom=14" class = "thumblink" style = "float:left;" onclick = "return hs.expand(this)" >
< img src = "/osm.png?lon=#[lon]#&lat=#[lat]#&zoom=14" width = "192" height = "192" alt = "map #[lon]#, #[lat]#" / >
2009-09-04 16:32:36 +02:00
< / a >
2010-07-18 21:21:59 +02:00
< div class = "TableCellDark" > < a href = "http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14" > #[name]#< / a > < br / > < a href = "http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14" > lat=#[lat]#, lon=#[lon]#< / a > < / div > <!-- preview -->
< div class = "highslide-caption" > < a href = "http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14" > #[name]#< / a > < br / > < a href = "http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14" > lat=#[lat]#, lon=#[lon]#< / a > < / div > <!-- zoomed -->
2009-09-05 01:33:47 +02:00
< / div >
2009-09-04 16:32:36 +02:00
#{/loc}#
< / p >
2010-05-16 01:49:30 +02:00
< p class = "urlinfo" style = "clear:left;" > Map (c) by < a href = "http://www.openstreetmap.org" > OpenStreetMap< / a > and contributors, CC-BY-SA< / p >
2009-09-04 16:32:36 +02:00
< / div >
#(/geoinfo)#
2009-05-27 10:56:55 +02:00
<!-- linklist begin -->
2010-07-18 11:10:46 +02:00
#(resultTable)#::< table width = "100%" > < tr class = "TableHeader" > < td width = "30%" > Media< / td > < td width = "70%" > URL< / td > < / tr > #(/resultTable)#
2009-05-27 10:56:55 +02:00
#{results}#
2010-12-08 11:50:23 +01:00
<!-- #include virtual="yacysearchitem.html?item=#[item]#&eventID=#[eventID]#" -->
2009-05-27 10:56:55 +02:00
#{/results}#
#(resultTable)#::< / table > #(/resultTable)#
<!-- linklist end -->
<!-- attach the bottomline -->
2011-11-24 14:30:42 +01:00
<!-- #(pageNavBottom)#::<div id="pageNavBottom" style="text - align:center">#[resnav]#</div>#(/pageNavBottom)# -->
2009-05-27 10:56:55 +02:00
< / div >
2010-02-11 16:05:38 +01:00
<!-- div style="width=220px;" -->
2010-12-08 11:50:23 +01:00
<!-- #include virtual="yacysearchtrailer.html?eventID=#[eventID]#" -->
2010-02-11 16:05:38 +01:00
<!-- /div -->
2010-07-18 11:10:46 +02:00
< / div >
2011-05-13 08:20:00 +02:00
<!-- update the search results statistics after the search is finished -->
< script type = "text/javascript" >
function latestinfo() {
if (window.XMLHttpRequest) { // Mozilla/Safari
self.xmlHttpReq = new XMLHttpRequest();
} else if (window.ActiveXObject) { // IE
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
self.xmlHttpReq.open('GET', "yacysearchlatestinfo.json?eventID=#[eventID]#", true);
self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
self.xmlHttpReq.onreadystatechange = function() {
if (self.xmlHttpReq.readyState == 4) {
var rsp = eval("(" + self.xmlHttpReq.responseText + ")");
2011-11-27 16:38:37 +01:00
statistics(rsp.offset, rsp.itemscount, rsp.itemsperpage, rsp.totalcount, rsp.localResourceSize, rsp.remoteResourceSize, rsp.remoteIndexCount, rsp.remotePeerCount, rsp.navurlBase);
2011-05-13 08:20:00 +02:00
}
}
self.xmlHttpReq.send(null);
}
window.setTimeout('latestinfo();',500);
window.setTimeout('latestinfo();',1000);
window.setTimeout('latestinfo();',1500);
window.setTimeout('latestinfo();',2000);
window.setTimeout('latestinfo();',3000);
window.setTimeout('latestinfo();',4000);
window.setTimeout('latestinfo();',5000);
window.setTimeout('latestinfo();',6000);
window.setTimeout('latestinfo();',8000);
window.setTimeout('latestinfo();',10000);
< / script >
2012-06-20 18:04:23 +02:00
<!-- #include virtual="/interaction_elements/Footer.html" -->
2006-03-04 19:52:04 +01:00
< / body >
2012-05-17 05:49:25 +02:00
< / html >