From 1f345c60704cb47bf581021d224d48269786a806 Mon Sep 17 00:00:00 2001 From: Silvia Simonetti Date: Tue, 6 Aug 2013 12:17:00 +0200 Subject: [PATCH] Bug-10034:To remove the "kw,wrdl" string from z39 search field This patch removes the "kw,wrdl" string that automaticaly appears in the search field when we have no result with a simple search request on the intranet and that we choose to proceed to a Z39.50 search --- catalogue/search.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/catalogue/search.pl b/catalogue/search.pl index e1154c3..137aeb2 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -404,6 +404,11 @@ if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { $idx =~ s/\,/comma/g; # template toolkit doesnt like variables with a , in it $template->param($idx => 1); } +if (!$indexes[0]) { + $indexes[0] = "kw"; + my $idx = "ms_".$indexes[0]; + $template->param($idx => 1); +} # an operand can be a single term, a phrase, or a complete ccl query my @operands = map uri_unescape($_), $cgi->param('q'); -- 1.7.10.4