Bugzilla – Attachment 185529 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.26 KB, created by
Lisette Scheer
on 2025-08-18 21:10:12 UTC
(
hide
)
Description:
Bug 35211: Set SeparateHoldingsByGroup to separate based on SeparateHoldingsBranch syspref
Filename:
MIME Type:
Creator:
Lisette Scheer
Created:
2025-08-18 21:10:12 UTC
Size:
1.26 KB
patch
obsolete
>From 93da78d99576b166765cd1022bd30b55c04d1095 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 > >Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> >--- > catalogue/detail.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index bc0b80803f5..7c69fd6916d 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
|
185336
|
185515
|
185525
|
185526
|
185527
|
185528
| 185529 |
185530
|
185531