From 2f5f32409e45028bf2dd67a796114d2139bf04ff Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Fri, 11 Jul 2025 16:05:52 +0000 Subject: [PATCH] Bug 35211: Set SeparateHoldingsByGroup to separate based on SeparateHoldingsBranch syspref --- catalogue/detail.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index bc0b80803f..7c69fd6916 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -358,8 +358,9 @@ if ( C4::Context->preference('SeparateHoldingsByGroup') ) { # Build group branchcode hash $branchcode_hash{ $group->id } = \@libs_branchcodes; + my $SeparateHoldingsBranch = C4::Context->preference('SeparateHoldingsBranch') || 'homebranch'; my $group_holdings_count = - $items_to_display->search( { homebranch => { '-in' => \@libs_branchcodes } } )->count; + $items_to_display->search( { $SeparateHoldingsBranch => { '-in' => \@libs_branchcodes } } )->count; $holdings_count{ $group->id } = $group_holdings_count; $total_group_holdings_count += $group_holdings_count; -- 2.39.5