Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- small update to search result layout - some more mime types
orbiter98f36a801a2e
diff --git a/htroot/env/base.css b/htroot/env/base.cssindex e015635cd..7686b72b4 100644--- a/htroot/env/base.css+++ b/htroot/env/base.css@@ -169,8 +169,6 @@ tt, *.tt {margin-bottom:10px;}--.PostSubject {padding:5px;margin:0;@@ -293,14 +291,6 @@ div.bookmark {padding-bottom:1em;}-div.searchresults {- padding-top:1em;- width:85%;-}--div.searchresults.hidden {- display:none;-}div.SubMenugroup{float:left;@@ -321,6 +311,15 @@ div.yacysearch {display:block;}+div.searchresults {+ padding-top:1em;+ width:100%;+}++div.searchresults.hidden {+ display:none;+}+div.urlactions {float:left;clear:left;diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.jsindex febcc936a..67eeabc3e 100644--- a/htroot/js/yacysearch.js+++ b/htroot/js/yacysearch.js@@ -74,6 +74,7 @@ function statistics(offset, itemscount, totalcount, localResourceSize, remoteResdocument.getElementById("resultsOffset").firstChild.nodeValue = offset;document.getElementById("itemscount").firstChild.nodeValue = itemscount;document.getElementById("totalcount").firstChild.nodeValue = totalcount;+ if (document.getElementById("localResourceSize") == null) return;document.getElementById("localResourceSize").firstChild.nodeValue = localResourceSize;document.getElementById("remoteResourceSize").firstChild.nodeValue = remoteResourceSize;document.getElementById("remoteIndexCount").firstChild.nodeValue = remoteIndexCount;diff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex 33ab560b2..d41c19c9c 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -61,23 +61,22 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de<h2>#[promoteSearchPageGreeting]#</h2><div class="yacylogo"><a href="#[promoteSearchPageGreeting.homepage]#" class="yacylogo"><img src="#[promoteSearchPageGreeting.smallImage]#" alt="yacysearch" /></a></div><fieldset class="yacys">- <input id="search" name="query" type="text" size="50" maxlength="80" value="#[former]#" onclick="document.getElementById('Enter').value = 'Search'" />- <input id="Enter" type="submit" name="Enter" value="Search" />-- <div class="yacysearch">- <input type="radio" id="text" name="contentdom" value="text"#(contentdomCheckText)#:: checked="checked"#(/contentdomCheckText)# />- <label for="text">Text</label> - <input type="radio" id="images" name="contentdom" value="image"#(contentdomCheckImage)#:: checked="checked"#(/contentdomCheckImage)# />- <label for="images">Images</label> - <input type="radio" id="audio" name="contentdom" value="audio"#(contentdomCheckAudio)#:: checked="checked"#(/contentdomCheckAudio)# />- <label for="audio">Audio</label> - <input type="radio" id="video" name="contentdom" value="video"#(contentdomCheckVideo)#:: checked="checked"#(/contentdomCheckVideo)# />- <label for="video">Video</label> - <input type="radio" id="appl" name="contentdom" value="app"#(contentdomCheckApp)#:: checked="checked"#(/contentdomCheckApp)# />- <label for="appl">Applications</label>- - <a href="index.html?display=#[display]#&input=#[input]#&searchoptions=1&count=#[count]#&resource=#[resource]#&urlmaskfilter=#[urlmaskfilter]#&prefermaskfilter=#[prefermaskfilter]#&cat=#[cat]#&constraint=#[constraint]#&contentdom=#[contentdom]#&former=#[former]#">more options</a>- </div>+ <input id="search" name="query" type="text" size="50" maxlength="80" value="#[former]#" onclick="document.getElementById('Enter').value = 'Search'" />+ <input id="Enter" type="submit" name="Enter" value="Search" />+ <div class="yacysearch">+ <input type="radio" id="text" name="contentdom" value="text"#(contentdomCheckText)#:: checked="checked"#(/contentdomCheckText)# />+ <label for="text">Text</label> + <input type="radio" id="images" name="contentdom" value="image"#(contentdomCheckImage)#:: checked="checked"#(/contentdomCheckImage)# />+ <label for="images">Images</label> + <input type="radio" id="audio" name="contentdom" value="audio"#(contentdomCheckAudio)#:: checked="checked"#(/contentdomCheckAudio)# />+ <label for="audio">Audio</label> + <input type="radio" id="video" name="contentdom" value="video"#(contentdomCheckVideo)#:: checked="checked"#(/contentdomCheckVideo)# />+ <label for="video">Video</label> + <input type="radio" id="appl" name="contentdom" value="app"#(contentdomCheckApp)#:: checked="checked"#(/contentdomCheckApp)# />+ <label for="appl">Applications</label>+ + <a href="index.html?display=#[display]#&input=#[input]#&searchoptions=1&count=#[count]#&resource=#[resource]#&urlmaskfilter=#[urlmaskfilter]#&prefermaskfilter=#[prefermaskfilter]#&cat=#[cat]#&constraint=#[constraint]#&contentdom=#[contentdom]#&former=#[former]#">more options</a>+ </div><input type="hidden" name="former" value="#[former]#" /><input type="hidden" name="maximumRecords" value="#[count]#" /><input type="hidden" name="startRecord" value="#[offset]#" />@@ -115,7 +114,7 @@ document.getElementById("Enter").value = "search again";<p>No Results. (length of search words must be at least 3 characters)</p>::<div id="results"></div>- <span id="resCounter" style="display: inline;"><strong id="resultsOffset">#[offset]#</strong>-<strong id="itemscount">#[itemscount]#</strong> results from a total number of <strong id="totalcount">#[totalcount]#</strong> known#(globalresults)#.:: (<strong id="localResourceSize">#[localResourceSize]#</strong> local, <strong id="remoteResourceSize">#[remoteResourceSize]#</strong> remote), <strong id="remoteIndexCount">#[remoteIndexCount]#</strong> links from <strong id="remotePeerCount">#[remotePeerCount]#</strong> other YaCy peers.#(/globalresults)#</span>+ <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><span id="resNav" style="display: inline;">#[resnav]#</span>::<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>@@ -136,5 +135,6 @@ var progressbar = new Progressbar(#[results]#, document.getElementById("results"<!-- attach the bottomline --><!--#include virtual="yacysearchtrailer.html?eventID=#[eventID]#&display=#[display]#" --></div>+</body></html>diff --git a/httpd.mime b/httpd.mimeindex 91e0f7a42..418397409 100644--- a/httpd.mime+++ b/httpd.mime@@ -15,9 +15,11 @@ class = application/octet-streamc = text/plaincom = application/octet-streamcss = text/css+csv = text/csvdb = application/octet-streamdll = application/octet-streamdoc = application/msword+docx = application/msworddot = application/msworddvi = application/x-dvieps = application/postscript@@ -67,6 +69,7 @@ png = image/pngpot = application/mspowerpointpps = application/mspowerpointppt = application/mspowerpoint+pptx = application/mspowerpointppz = application/mspowerpointps = application/postscriptqt = video/quicktime@@ -101,6 +104,7 @@ wmv = video/x-ms-wmvxhtml = text/xhtml+xmlxla = application/msexcelxls = application/msexcel+xlsx = application/msexcelxpi = application/x-xpinstallxsl = text/xmlxml = text/xml