From 36fd40468950950c605b82fd918a5e932e2c6734 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 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. Signed-off-by: Kyle M Hall --- opac/opac-search.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index e190fcd1a3..a6d205ad6b 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.39.5