From ce01fa6258d4946069d842bdf9393509a297cdfe 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. Signed-off-by: Mark Tompsett --- 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 82a0319..f89e521 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.1.4