[Koha-patches] [PATCH 02/12] MT3448 : searchauthorities problems

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Sat May 1 00:19:44 CEST 2010


From: Paul Poulain <paul.poulain at biblibre.com>

Problems with searching authorities :
The same index was always used
---
 authorities/auth_finder.pl |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/authorities/auth_finder.pl b/authorities/auth_finder.pl
index 0e4f906..89f632f 100755
--- a/authorities/auth_finder.pl
+++ b/authorities/auth_finder.pl
@@ -60,7 +60,7 @@ if ( $op eq "do_search" ) {
     my @and_or    = $query->param('and_or');
     my @excluding = $query->param('excluding');
     my @operator  = $query->param('operator');
-    my @value     = ($query->param('value_mainstr'), $query->param('value_main'), $query->param('value_any'));
+    my @value     = ($query->param('value_mainstr')||undef, $query->param('value_main')||undef, $query->param('value_any')||undef);
     my $orderby   = $query->param('orderby');
 
     $resultsperpage = $query->param('resultsperpage');
@@ -166,6 +166,9 @@ if ( $op eq "do_search" ) {
 }
 
 $template->param(
+    value_mainstr => $query->param('value_mainstr') || "", 
+    value_main    => $query->param('value_main') || "",
+    value_any     => $query->param('value_any') || "",
     tagid         => $tagid,
     index         => $index,
     authtypesloop => \@authtypesloop,
-- 
1.6.3.3




More information about the Koha-patches mailing list