From d5dc88a351368af74d8a31e4292a4a3b494da096 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 26 Sep 2010 21:11:08 +0000 Subject: [PATCH] shop cleanup button only if servlet was called without post/put arguments. This should avoid confusion after a search for a word where it is possible to delete the word. If a delete button is shown to delete the word, then there should not be a button available to delete the whole index to avoide a wrong usage when a user searches only for a word to delete it. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7194 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexControlRWIs_p.html | 2 ++ htroot/IndexControlRWIs_p.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/htroot/IndexControlRWIs_p.html b/htroot/IndexControlRWIs_p.html index b1ac84907..353b43166 100644 --- a/htroot/IndexControlRWIs_p.html +++ b/htroot/IndexControlRWIs_p.html @@ -34,6 +34,7 @@ + #(cleanup)#::
Cleanup @@ -44,6 +45,7 @@
+ #(/cleanup)# #(searchresult)#::

No entry for word '#[word]#'

:: diff --git a/htroot/IndexControlRWIs_p.java b/htroot/IndexControlRWIs_p.java index 36c31f1f9..90d454b1b 100644 --- a/htroot/IndexControlRWIs_p.java +++ b/htroot/IndexControlRWIs_p.java @@ -79,6 +79,8 @@ public class IndexControlRWIs_p { prop.putHTML("keystring", ""); prop.put("keyhash", ""); prop.put("result", ""); + prop.put("cleanup", post == null ? 1 : 0); + String segmentName = sb.getConfig(SwitchboardConstants.SEGMENT_PUBLIC, "default"); int i = 0; for (String s: sb.indexSegments.segmentNames()) {