Bugzilla – Attachment 184016 Details for
Bug 35211
Make it possible to split holdings tab using library groups in intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35211: Set SeparateHoldingsByGroup to separate based on SeparateHoldingsBranch syspref
Bug-35211-Set-SeparateHoldingsByGroup-to-separate-.patch (text/plain), 1.20 KB, created by
Eric Garcia
on 2025-07-11 16:07:23 UTC
(
hide
)
Description:
Bug 35211: Set SeparateHoldingsByGroup to separate based on SeparateHoldingsBranch syspref
Filename:
MIME Type:
Creator:
Eric Garcia
Created:
2025-07-11 16:07:23 UTC
Size:
1.20 KB
patch
obsolete
>From 2f5f32409e45028bf2dd67a796114d2139bf04ff Mon Sep 17 00:00:00 2001 >From: Eric Garcia <cubingguy714@gmail.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35211
:
183075
|
183099
|
183143
|
183144
|
183420
|
183615
|
183642
|
183643
|
183901
|
183945
|
183949
|
183950
|
183966
|
183967
|
183968
| 184016