From 163d3f4bd6a34741042520786841467653df4182 Mon Sep 17 00:00:00 2001 From: Mason James Date: Tue, 18 Dec 2007 16:16:01 -0600 Subject: [PATCH] index=kw searches now search all indexes for nozebra Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 58c6b5ed44..b55c71d758 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1351,7 +1351,7 @@ sub NZanalyse { $left='subject' if $left =~ '^su$'; $left='koha-Auth-Number' if $left =~ '^an$'; $left='keyword' if $left =~ '^kw$'; - if ($operator) { + if ($operator && $left ne 'keyword' ) { #do a specific search my $dbh = C4::Context->dbh; $operator='LIKE' if $operator eq '=' and $right=~ /%/; @@ -1392,7 +1392,7 @@ sub NZanalyse { } } } else { - #do a complete search (all indexes) + #do a complete search (all indexes), if index='kw' do complete search too. my $dbh = C4::Context->dbh; my $sth = $dbh->prepare("SELECT biblionumbers FROM nozebra WHERE server=? AND value LIKE ?"); # split each word, query the DB and build the biblionumbers result -- 2.39.5