From 492759e5f2166d26199bd47341ff142a4aefe751 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 --- C4/Search.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Search.pm b/C4/Search.pm index 13f504f313..e0e71c2ddf 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1691,6 +1691,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.2