From e43563f78c36752dd513383c3826c44e664176a0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 26 Jun 2014 15:03:37 -0400 Subject: [PATCH] Bug 12485 - Show OPAC search history when opacuserlogin is OFF Content-Type: text/plain; charset="utf-8" In the boostrap OPAC the link to search history is missing if opacuserlogin is turned off. OPAC search history should be available whether or not users can log in. This patch removes this dependency. To test, apply the patch and test with various combinations of opacuserlogin and EnableOpacSearchHistory: - opacuserlogin and EnableOpacSearchHistory both enabled - opacuserlogin enabled and EnableOpacSearchHistory disabled - opacuserlogin disabled and EnableOpacSearchHistory enabled --- .../opac-tmpl/bootstrap/en/includes/masthead.inc | 44 +++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index d17f893..b035047 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -66,38 +66,42 @@ [% END # / IF virtualshelves %] [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
[% END %] - [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 || EnableOpacSearchHistory %]
- [% END %] + [% END # IF opacuserlogin %] -- 1.7.9.5