Bug 35211: Set SeparateHoldingsByGroup to separate based on SeparateHoldingsBranch syspref
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:
parent
96c7eb3459
commit
d2a0527d86
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue