From 4242d03b87eee9fa9ca0c45306959a51fc12f5ba Mon Sep 17 00:00:00 2001 From: Ricardo Dias Marques Date: Fri, 3 Jul 2009 16:03:43 +0000 Subject: [PATCH] Fix for Bug 2599 - Search limits not working for NoZebra Adds the change suggested by Amer Denni to fix Bug 2599 in comment #7 at: http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=2599 For UNIMARC installations, this patch only works after updating the "NoZebraIndexes" system preference to UNIMARC indexes (by default, NoZebraIndexes is being wrongly set to MARC21 values in UNIMARC installations). That has also been reported as a Bug, by me (see Bug 2178): Bug 2178 - "NoZebraIndexes" system preference is being set to MARC21 values in UNIMARC installations http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=2178 Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- C4/Search.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Search.pm b/C4/Search.pm index b1cec730f3..7fbbab388c 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1722,6 +1722,7 @@ sub NZanalyse { $left = 'subject' if $left =~ '^su$'; $left = 'koha-Auth-Number' if $left =~ '^an$'; $left = 'keyword' if $left =~ '^kw$'; + $left = 'itemtype' if $left =~ '^mc$'; # Fix for Bug 2599 - Search limits not working for NoZebra warn "handling leaf... left:$left operator:$operator right:$right" if $DEBUG; if ( $operator && $left ne 'keyword' ) { -- 2.39.5