From 15ad3061b2fb11df6ecf5601d5b7d49d7792ba9f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 20 Feb 2014 11:38:53 -0500 Subject: [PATCH] Bug 11794 - restore functioning of opacSerialDefaultTab The opacSerialDefaultTab system preference should control whether to show the holdings or subscriptions tab by default on the detail page for a serial. This behavior was broken when we last updated jQueryUI because of a change in the jQueryUI active tab class name. This patch corrects the class on the detail page and removes the old class from the authorities detail page (where it was unnecessary anyway). To test, view a serial record in the OPAC under various settings of the opacSerialDefaultTab preference. The default tab should correctly follow the preference. Test in prog and Bootstrap themes. Edit: Rebased on current master. Note that the change to opac-auth-detail.tt is because the page never has more than one tab, hence doesn't need the "active" designation. Signed-off-by: Jesse Maseto Signed-off-by: Katrin Fischer Tested in prog and bootstrap. All tests and QA script pass. Signed-off-by: Galen Charlton --- .../opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 6 +++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt index 3c5b05f0d3..18a942efcf 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt @@ -108,7 +108,7 @@
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index bd8b80ea5b..8c85f3b401 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -513,7 +513,7 @@
    [% IF ( defaulttab == 'holdings' ) %] -
  • +
  • [% ELSE %]
  • [% END %] @@ -555,7 +555,7 @@ [% END %] [% IF ( subscriptionsnumber ) %] - [% IF ( defaulttab == 'subscriptions' ) %]
  • [% ELSE %]
  • [% END %] + [% IF ( defaulttab == 'subscriptions' ) %]
  • [% ELSE %]
  • [% END %] Subscriptions
  • [% END %] @@ -575,7 +575,7 @@ [% END %] [% IF ( serialcollection ) %] - [% IF ( defaulttab == 'serialcollection' ) %]
  • [% ELSE %]
  • [% END %] + [% IF ( defaulttab == 'serialcollection' ) %]
  • [% ELSE %]
  • [% END %] Serial collection
  • [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt index 78bc5b988e..1a46f84997 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt @@ -92,7 +92,7 @@ $(document).ready(function() { [% END %]
    diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index fea7414143..f60b3d7d8a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -937,7 +937,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {