Bugzilla – Attachment 152269 Details for
Bug 33897
Use template wrapper for tabs: OPAC bibliographic detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33897: (QA follow-up) Correct code for tab selection
Bug-33897-QA-follow-up-Correct-code-for-tab-select.patch (text/plain), 1.49 KB, created by
Katrin Fischer
on 2023-06-10 19:06:27 UTC
(
hide
)
Description:
Bug 33897: (QA follow-up) Correct code for tab selection
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-06-10 19:06:27 UTC
Size:
1.49 KB
patch
obsolete
>From 95e08747a1a3d2da514e5762efe2b706e9309ccf Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 9 Jun 2023 17:19:28 +0000 >Subject: [PATCH] Bug 33897: (QA follow-up) Correct code for tab selection > >This patch corrects the code for selecting tabs other than the first >tab. > >To test, apply the patch and view the bibliographic detail page for a >serial record and with various settings of the opacSerialDefaultTab >system preference. > >If you select "subscriptions tab" the subscriptions tab should be active >by default. > >You can also enable html5media and view a record with html5media >information and no holdings. The media tab should be displayed by >default. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 4fb718f500..aba64431aa 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -2036,7 +2036,7 @@ > }); > > function showBsTab( container, panelid ){ >- if( $( "#" + panelid ).length == 1 ){ >+ if( $( "#" + panelid + "_panel" ).length == 1 ){ > $("#" + container + " a[href='#" + panelid + "_panel']").tab("show"); > } else { > $("#" + container + " a:first").tab("show"); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33897
:
151991
|
152016
|
152262
|
152268
| 152269