From e6d80297504a952f28144be6eb6b3abc0688f968 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 11 Sep 2013 09:55:14 -0400 Subject: [PATCH] Bug 10807: (follow-up) wording tweak; take OpacAuthorities into account This follow-up makes two changes: 1) Change "biblio" to "catalog" when referring to non-authority searches. 2) Make display of the authority search tab dependent on the OpacAuthorities system preference. If OPAC authority searches are disabled we shouldn't show a tab which will always be empty. To test, view the OPAC search history page with the OpacAuthorities preference both on and off. Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- .../prog/en/modules/opac-search-history.tt | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt index fc9da828e7..3ea70a2004 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt @@ -19,7 +19,7 @@ $(document).ready(function() { ] })); - $('#tabs').tabs(); + [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %] }); //]]> @@ -40,11 +40,13 @@ $(document).ready(function() {

Search history

-
- + [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %] +
+ + [% END %]
[% IF ( current_biblio_searches ) %]

Current session

@@ -52,7 +54,7 @@ $(document).ready(function() { - + @@ -80,7 +82,7 @@ $(document).ready(function() { - +
@@ -102,6 +104,13 @@ $(document).ready(function() {
[% END %] + [% IF !current_biblio_searches && !previous_biblio_searches %] +

Your catalog search history is empty.

+ [% END %] +
+ + + [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
[% IF ( current_authority_searches ) %]

Current session

@@ -164,6 +173,7 @@ $(document).ready(function() { [% END %]
+ [% END %]
-- 2.39.5