From a06cb31941f8cb4cee5498f25e518344e8f9aeda 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=utf8 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 Signed-off-by: Katrin Fischer Works as described, no problems found. Passes QA script and tests. Signed-off-by: Chris Cormack --- .../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 d17f893ebf..b035047d1c 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 %] -- 2.20.1