From a92fe6377f4d5ea46ef038ae50a2ea5b96801d72 Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Thu, 10 Jul 2025 16:02:08 +0000 Subject: [PATCH] Bug 35211 HEAD: Reordered tabs in Holdings Table and fixed group tabnames --- .../prog/en/modules/catalogue/detail.tt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 3e2c3309d4..b44d2da74a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -327,26 +327,30 @@ [% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %]) [% END %] [% END %] - [% IF other_holdings_count %] - [% WRAPPER tab_item tabname= "otherholdings" %] - Other holdings ([% other_holdings_count || 0 | html %]) - [% END %] - [% END %] [% ELSE %] [% WRAPPER tab_item tabname= "holdings" %] Holdings ([% items_to_display_count || 0 | html %]) [% END %] [% END %] + [% IF Koha.Preference('SeparateHoldingsByGroup') && lib_groups %] [% FOREACH group IN lib_groups %] [% IF ( holdings_count.${group.id} > 0 ) %] [% WRAPPER tab_item tabname="group_holdings_" _ group.id %] - [% group.title | html %] - Group ([% holdings_count.${group.id} | html %]) + [% group.title | html %] holdings ([% holdings_count.${group.id} | html %]) [% END %] [% END %] [% END %] [% END %] + [% IF Koha.Preference('SeparateHoldings') %] + [% IF other_holdings_count %] + [% WRAPPER tab_item tabname= "otherholdings" %] + Other holdings ([% other_holdings_count || 0 | html %]) + [% END %] + [% END %] + [% END %] + [% IF Koha.Preference('EnableItemGroups') %] [% WRAPPER tab_item tabname= "item_groups" %] Item groups -- 2.39.5