From 3e5cd34229647fbd8261fa62013b33aa8747ef92 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 12 Apr 2007 07:31:26 +0000 Subject: [PATCH] update to search display options for kaskelix embedding git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3560 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/env/xhtml-style.css | 2 +- htroot/yacysearch.html | 26 ++++++++++++++++++++++++++ htroot/yacysearch.java | 4 +++- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/htroot/env/xhtml-style.css b/htroot/env/xhtml-style.css index 65fe10821..153f4e220 100644 --- a/htroot/env/xhtml-style.css +++ b/htroot/env/xhtml-style.css @@ -1,5 +1,5 @@ body { -background-color:#F8F8FF; +background-color:#FFFFFF; margin:0; } * { diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html index dfc69fe3d..6223a29d2 100644 --- a/htroot/yacysearch.html +++ b/htroot/yacysearch.html @@ -22,6 +22,28 @@ #(input)# :: + + :: #(/input)# +#(searchagain)# +:: +#(/searchagain)# #(excluded)# diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 436153d3f..befbb346b 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -93,7 +93,7 @@ public class yacysearch { boolean authenticated = sb.adminAuthenticated(header) >= 2; int display = (post == null) ? 0 : post.getInt("display", 0); if ((display == 1) && (!authenticated)) display = 0; - int input = (post == null) ? 0 : post.getInt("input", 1); + int input = (post == null) ? 2 : post.getInt("input", 2); String promoteSearchPageGreeting = env.getConfig("promoteSearchPageGreeting", ""); if (promoteSearchPageGreeting.length() == 0) promoteSearchPageGreeting = "P2P WEB SEARCH"; @@ -120,6 +120,7 @@ public class yacysearch { // we create empty entries for template strings final serverObjects prop = new serverObjects(); + prop.put("searchagain", 0); prop.put("input", input); prop.put("display", display); prop.put("input_input", input); @@ -489,6 +490,7 @@ public class yacysearch { for (int i=0; i