From d3537699a0f9bc082ecb19e6fdbfc6f9bd1007b3 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 14 Apr 2017 08:58:30 +0200 Subject: [PATCH] Bug 17835: [QA Follow-up] Fix opac-search.pl Content-Type: text/plain; charset=utf-8 Resolves: Global symbol "$itemtypes_nocategory" requires explicit package name. Signed-off-by: Marcel de Rooy Tested the added line with a debug statement. See itemtype facets in the search results. --- opac/opac-search.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index e190fcd..a6d205a 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -608,6 +608,7 @@ if ($tag) { $pasarParams .= '&count=' . uri_escape_utf8($results_per_page); $pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query); $pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type); + my $itemtypes_nocategory = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; eval { ($error, $results_hashref, $facets) = $searcher->search_compat($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,undef,$itemtypes_nocategory,$query_type,$scan,1); }; -- 2.1.4