From 98f36a801a2e1cadec05df30b3d6c9adcd5ceae5 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 6 Mar 2009 10:16:14 +0000 Subject: [PATCH] - small update to search result layout - some more mime types git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5669 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/env/base.css | 19 +++++++++---------- htroot/js/yacysearch.js | 1 + htroot/yacysearch.html | 36 ++++++++++++++++++------------------ httpd.mime | 4 ++++ 4 files changed, 32 insertions(+), 28 deletions(-) diff --git a/htroot/env/base.css b/htroot/env/base.css index 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.js index febcc936a..67eeabc3e 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -74,6 +74,7 @@ function statistics(offset, itemscount, totalcount, localResourceSize, remoteRes document.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.html index 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
- - - -
- -    - -    - -    - -    - - -   - more options -
+ + +
+ +    + +    + +    + +    + + +   + more options +
@@ -115,7 +114,7 @@ document.getElementById("Enter").value = "search again";

No Results. (length of search words must be at least 3 characters)

::
- #[offset]#-#[itemscount]# results from a total number of #[totalcount]# known#(globalresults)#.:: (#[localResourceSize]# local, #[remoteResourceSize]# remote), #[remoteIndexCount]# links from #[remotePeerCount]# other YaCy peers.#(/globalresults)# + #[offset]#-#[itemscount]# of #[totalcount]# #(globalresults)#::; (#[localResourceSize]# local, #[remoteResourceSize]# remote), #[remoteIndexCount]# from #[remotePeerCount]# remote YaCy peers.#(/globalresults)# #[resnav]# ::

Searching the web with this peer is disabled for unauthorized users. Please log in as administrator to use the search function

@@ -136,5 +135,6 @@ var progressbar = new Progressbar(#[results]#, document.getElementById("results" + diff --git a/httpd.mime b/httpd.mime index 91e0f7a42..418397409 100644 --- a/httpd.mime +++ b/httpd.mime @@ -15,9 +15,11 @@ class = application/octet-stream c = text/plain com = application/octet-stream css = text/css +csv = text/csv db = application/octet-stream dll = application/octet-stream doc = application/msword +docx = application/msword dot = application/msword dvi = application/x-dvi eps = application/postscript @@ -67,6 +69,7 @@ png = image/png pot = application/mspowerpoint pps = application/mspowerpoint ppt = application/mspowerpoint +pptx = application/mspowerpoint ppz = application/mspowerpoint ps = application/postscript qt = video/quicktime @@ -101,6 +104,7 @@ wmv = video/x-ms-wmv xhtml = text/xhtml+xml xla = application/msexcel xls = application/msexcel +xlsx = application/msexcel xpi = application/x-xpinstall xsl = text/xml xml = text/xml