From d53d0f653787ad533cab12847db8c11b9faabb91 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Jun 2023 13:40:02 +0000 Subject: [PATCH] Bug 33894: Use template wrapper for tabs: OPAC search history This patch updates the OPAC search history page so that it uses the new WRAPPER syntax to generate tabs markup. To test, apply the patch and view the OPAC search history page. With the OpacAuthorities system preference enabled you should see two tabs: Catalog and Authority. Confirm that each tab shows the correct information. Deactivate OpacAuthorities and reload the search history page. The bibliographic search history should display without tabs. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 2c6e64ba962474f5d2a109426c20256acdcd065c) Signed-off-by: Martin Renvoize --- .../en/modules/opac-search-history.tt | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt index 93377259f9..9672be2f20 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt @@ -51,25 +51,27 @@

Search history

[% IF Koha.Preference( 'OpacAuthorities' ) == 1 %] -
- -
-
- [% PROCESS catalog_search_history %] -
-
- [% PROCESS authority_search_history %] -
-
-
+ [% WRAPPER tabs id= "tabs" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "biblio_tab" bt_active= 1 %] Catalog [% END %] + [% WRAPPER tab_item tabname= "authority_tab" %] Authority [% END %] + [% END # /WRAPPER tabs_nav %] + + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="biblio_tab" bt_active= 1 %] +
+ [% PROCESS catalog_search_history %] +
+ [% END # /tab_panel# %] + [% WRAPPER tab_panel tabname="authority_tab" %] +
+ [% PROCESS authority_search_history %] +
+ [% END # /tab_panel# %] + [% END # /WRAPPER tab_panels %] + [% END # /WRAPPER tabs %] + [% ELSE %] [% PROCESS catalog_search_history %] [% END %] -- 2.39.2