diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 91f908e868..184a60527d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -191,11 +191,11 @@ [% END # /ms_se %] [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] - [% IF ( ms_callnum ) %] - + [% IF ( ms_callnumcommaphr ) %] + [% ELSE %] - [% END #/ms_callnum %] + [% END #/ms_callnumcommaphr %] [% ELSE %] [% IF ( ms_callnum ) %] diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 437bb8bf6a..84714a6024 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -457,7 +457,10 @@ my @indexes = $cgi->multi_param('idx'); # if a simple index (only one) display the index used in the top search box if ($indexes[0] && !$indexes[1]) { - $template->param("ms_".$indexes[0] => 1); + my $idx = "ms_".$indexes[0]; + $idx =~ s/\,/comma/g; # template toolkit doesn't like variables with a , in it + $idx =~ s/-/dash/g; # template toolkit doesn't like variables with a dash in it + $template->param($idx => 1); } # an operand can be a single term, a phrase, or a complete ccl query my @operands = $cgi->multi_param('q');