diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 44a1d5c251..f7a4233cf3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -131,10 +131,12 @@ Highlight [% END %] -
- - -
+ [% UNLESS tag %] +
+ + +
+ [% END %]
diff --git a/opac/opac-search.pl b/opac/opac-search.pl index f634f12a9f..aa00f8964d 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -345,8 +345,10 @@ if ( $template_type && $template_type eq 'advsearch' ) { # * multivalued CGI paramaters are returned as a packaged string separated by "\0" (null) my $params = $cgi->Vars; my $tag; -$tag = $params->{tag} if $params->{tag}; - +if ( $params->{tag} ) { + $tag = $params->{tag}; + $template->param( tag => $tag ); +} # String with params with the search criteria for the paging in opac-detail # param value is URI encoded and params separator is HTML encode (&)