[Koha-patches] [PATCH 05/17] MT4586: Use zebra instead of mysql for publisher and collectiontitle searches

paul.poulain at biblibre.com paul.poulain at biblibre.com
Thu Dec 16 15:11:11 CET 2010


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

(for unimarc 210c cataloguing plugin)
---
 C4/Search.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index 1bbfce6..2af8216 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -2622,7 +2622,8 @@ sub GetDistinctValues {
 			return $elements;
    }
    else {
-		$string||= qq("");
+	    $string = "=" . $string if ($fieldname);
+	    $string||= qq("");
 		my @servers=qw<biblioserver authorityserver>;
 		my (@zconns, at results);
         for ( my $i = 0 ; $i < @servers ; $i++ ) {
-- 
1.7.1



More information about the Koha-patches mailing list