From 75c9b07c5c995534faa6cc2aeb20fc0e3225853d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 5 Jun 2023 13:06:39 +0000 Subject: [PATCH] Bug 33892: Use template wrapper for tabs: OPAC authority detail This patch updates the OPAC authority detail page so that it uses the new WRAPPER syntax to generate tabs markup. To test, apply the patch and locate an authority record in the OPAC which has notes fields. When viewing the details for that record the notes should appear in a single "Notes" tab. Signed-off-by: Sam Lau Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi --- .../bootstrap/en/modules/opac-auth-detail.tt | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 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 4711b0f1ac..c88c70a139 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 @@ -162,22 +162,23 @@ [% END # / IF MARCURLS %] [% END %] -
- -
-
+ [% WRAPPER tabs id= "authdescriptions" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "tab_descriptions" bt_active= 1 %] + Notes + [% END %] + [% END # /WRAPPER tabs_nav %] + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="tab_descriptions" bt_active= 1 %]
[% FOREACH note IN summary.notes %]

[% note.note | html %]

[% END %]
-
-
-
+ [% END # /tab_panel# %] + [% END # /WRAPPER tab_panels %] + [% END # /WRAPPER tabs#authdescriptions %] + [% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %] -- 2.39.5