From 97d41211e4030474939b1e89cd6f6b97fba280c7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 7 May 2018 15:04:33 -0300 Subject: [PATCH] Bug 20722: Display search results when searching only by ITEMTYPECAT - Create an entry for the ITEMTYPECAT authorised value category. Make sure to fill in the OPAC description. - Go to administration > itemtypes and add the new category to 2 item types. - Go to the OPAC and check that the advanced search shows your new itemtype group instead of the individual itemtypes. - Check the checkbox and Search. --- opac/opac-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 82a0319b82..f89e521665 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -108,7 +108,7 @@ if ($format =~ /(rss|atom|opensearchdescription)/) { elsif (@params && $build_grouped_results) { $template_name = 'opac-results-grouped.tt'; } -elsif ((@params>=1) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) { +elsif ((@params>=1) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) || @searchCategories ) { $template_name = 'opac-results.tt'; } else { -- 2.11.0