From 86763c42c430f3b3401a433dcd1531532ae060d1 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 4 Feb 2009 15:59:22 +0000 Subject: [PATCH] enhanced interactive search git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5571 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacyinteractive.html | 62 ++++++++++++++++++++++++----------- htroot/yacyinteractive.java | 5 ++- htroot/yacysearch.java | 2 +- htroot/yacysearchtrailer.json | 2 +- 4 files changed, 48 insertions(+), 23 deletions(-) diff --git a/htroot/yacyinteractive.html b/htroot/yacyinteractive.html index 46f4ac55d..ecfa6ad24 100644 --- a/htroot/yacyinteractive.html +++ b/htroot/yacyinteractive.html @@ -5,6 +5,12 @@ #%env/templates/metas.template%# + #(display)# #%env/templates/simpleheader.template%# :: @@ -64,16 +86,16 @@ To see a list of all APIs, please visit the

#[promoteSearchPageGreeting]#

-
-
+ +
+ +
#%env/templates/footer.template%# diff --git a/htroot/yacyinteractive.java b/htroot/yacyinteractive.java index f97b80991..52f5b58f0 100644 --- a/htroot/yacyinteractive.java +++ b/htroot/yacyinteractive.java @@ -50,8 +50,11 @@ public class yacyinteractive { prop.put("promoteSearchPageGreeting", promoteSearchPageGreeting); prop.put("promoteSearchPageGreeting.homepage", sb.getConfig(plasmaSwitchboardConstants.GREETING_HOMEPAGE, "")); prop.put("promoteSearchPageGreeting.smallImage", sb.getConfig(plasmaSwitchboardConstants.GREETING_SMALL_IMAGE, "")); - prop.put("display", display); + + String query = (post == null) ? "" : post.get("query", ""); + prop.putHTML("query", query); + prop.putHTML("querys", query.replaceAll(" ", "+")); return prop; } } \ No newline at end of file diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 85fdd0537..d1cfdfc35 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -509,7 +509,7 @@ public class yacysearch { // for RSS: don't HTML encode some elements prop.putXML("rss_query", querystring); - prop.put("rss_queryenc", yacyURL.escape(querystring.replace(' ', '+'))); + prop.put("rss_queryenc", querystring.replace(' ', '+')); sb.localSearchLastAccess = System.currentTimeMillis(); diff --git a/htroot/yacysearchtrailer.json b/htroot/yacysearchtrailer.json index a01430cd8..ec4194ac3 100644 --- a/htroot/yacysearchtrailer.json +++ b/htroot/yacysearchtrailer.json @@ -1,4 +1,4 @@ -"yacy$topwords": [ +"topwords": [ #{words}# { "word": "#[word]#" }#(nl)#::,#(/nl)# #{/words}#