Bug 35211: Fixed count on logged in holdings

Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Eric Garcia 2025-07-10 19:53:40 +00:00 committed by Lucas Gass
parent 124c6c8670
commit 96c7eb3459
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 6 additions and 5 deletions

View File

@ -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,
);
}

View File

@ -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" %]
<span>[% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %])</span>
<span>[% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( total_group_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %])</span>
[% END %]
[% END %]
[% ELSE %]