From b76dbf7351175884a83e8837f867a7a297953a09 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 --- .../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 531cc12cde..2030dcab2b 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.30.2