From c3f25e232cd350baabe2631c8f6348446d9da9bf 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Followed test plan. Works as expected. Signed-off-by: Marc VĂ©ron --- .../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.10.4