From 85da0ce2dbe0fc3953dbd049cb9154aeab6b4b75 Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Thu, 10 Jul 2025 19:53:40 +0000 Subject: [PATCH] Bug 35211: Fixed count on logged in holdings --- catalogue/detail.pl | 7 ++++--- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index d6cdca7631..bc0b80803f 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -369,9 +369,10 @@ if ( C4::Context->preference('SeparateHoldingsByGroup') ) { } $template->param( - lib_groups => \@lib_groups, - branchcodes => \%branchcode_hash, - holdings_count => \%holdings_count, + lib_groups => \@lib_groups, + branchcodes => \%branchcode_hash, + holdings_count_hash => \%holdings_count, + total_group_holdings_count => $total_group_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 b44d2da74a..2a406aec58 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -322,9 +322,9 @@ [% WRAPPER tabs id= "bibliodetails" %] [% WRAPPER tabs_nav %] [% IF Koha.Preference('SeparateHoldings') %] - [% IF items_to_display_count - ( other_holdings_count || 0 ) %] + [% IF items_to_display_count - ( other_holdings_count || 0 ) - ( total_group_holdings_count || 0 ) %] [% WRAPPER tab_item tabname= "holdings" %] - [% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %]) + [% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( total_group_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %]) [% END %] [% END %] [% ELSE %] -- 2.39.5