From 2910e5540fab5cefc9f47dd00244c3c8b8a41184 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 4 Feb 2026 16:44:05 +0000 Subject: [PATCH] Bug 41624: Revert "Bug 35211: Fixed count on logged in holdings" This reverts commit 96c7eb3459770c354f59fcc1d4c22ebc4eb2a559. --- catalogue/detail.pl | 7 +++---- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 42ec0c3ab9e..edd03dfc3c5 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -378,10 +378,9 @@ if ( C4::Context->preference('SeparateHoldingsByGroup') ) { } $template->param( - lib_groups => \@lib_groups, - branchcodes => \%branchcode_hash, - holdings_count_hash => \%holdings_count, - total_group_holdings_count => $total_group_holdings_count, + lib_groups => \@lib_groups, + branchcodes => \%branchcode_hash, + holdings_count => \%holdings_count, ); } 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 b34e1d8c753..8fa1175bd1e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -335,9 +335,9 @@ [% WRAPPER tabs id= "bibliodetails" %] [% WRAPPER tabs_nav %] [% IF Koha.Preference('SeparateHoldings') %] - [% IF items_to_display_count - ( other_holdings_count || 0 ) - ( total_group_holdings_count || 0 ) %] + [% IF items_to_display_count - ( other_holdings_count || 0 ) %] [% WRAPPER tab_item tabname= "holdings" %] - [% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( total_group_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %]) + [% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %]) [% END %] [% END %] [% ELSE %] -- 2.39.5