[Koha-patches] [PATCH] Bug 6170: Do not prematurely group results
Colin Campbell
colin.campbell at ptfs-europe.com
Tue Apr 12 14:34:14 CEST 2011
If OPACGroupResults preference was set it was
shortcircuiting the template selection logic and
we didn't go to the advanced options field
---
opac/opac-search.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index 587846b..faa8a25 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -65,7 +65,7 @@ my $build_grouped_results = C4::Context->preference('OPACGroupResults');
if ($format =~ /(rss|atom|opensearchdescription)/) {
$template_name = 'opac-opensearch.tmpl';
}
-elsif ($build_grouped_results) {
+elsif (@params && $build_grouped_results) {
$template_name = 'opac-results-grouped.tmpl';
}
elsif ((@params>=1) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) {
--
1.7.4.2
More information about the Koha-patches
mailing list