@@ -, +, @@ AdvancedSearchTypes has multiple values (separated by pipes) -> "Most popular" displays "Limit to" with "All item types" -> "Most popular" displays "Limit to" with "All item types" -> "Most popular" displays "Limit to" with "All collections" -> "Most popular" should now display "Limit to" with "All collections" --- opac/opac-topissues.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/opac/opac-topissues.pl +++ a/opac/opac-topissues.pl @@ -69,7 +69,13 @@ if (!$do_it && C4::Context->userenv && C4::Context->userenv->{'branch'} ) { } my $itemtype = $input->param('itemtype') || ''; my $timeLimit = $input->param('timeLimit') || 3; -my $advanced_search_types = C4::Context->preference('AdvancedSearchTypes'); + +#Preliminary fix for bug 12136 with pipe chars in AdvancedSearchTypes +my $raw_advanced_search_types = C4::Context->preference('AdvancedSearchTypes'); +my $advanced_search_types = 'itemtypes'; +if ('ccode' =~ $raw_advanced_search_types) { + $advanced_search_types ='ccode'; +} my $whereclause = ''; $whereclause .= ' AND items.homebranch='.$dbh->quote($branch) if ($branch); --