From 23eb2dbd39ab7f46c19b299cef3db435a9ed4b7e Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Mon, 18 Aug 2025 14:08:12 +0000 Subject: [PATCH] Bug 35211: Fixed group tab item building logic Changed to show logged in branch in group tabs Test Plan: 1. Apply patch, restart_all, updatedatabase 2. Koha Administration -> System preferences -> SeparateHoldingsByGroup 3. Change to "Separate holdings by library group in subsequent tabs..." and Save 4. Koha Administration -> Library Groups 5. Create multiple library groups and check the 'Use for staff search groups' box. 6. Add your logged in library to each group and other libraries to each group. 7. Do catalog searches where the location of the item is a library in a library group 8. Notice tabs in the Holdings table for each library group if it contains a library that has the item Signed-off-by: Lisette Scheer Signed-off-by: Paul Derscheid Signed-off-by: Lucas Gass --- catalogue/detail.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index d64a68c3fe..0ff7b590c5 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -349,7 +349,9 @@ if ( C4::Context->preference('SeparateHoldingsByGroup') ) { # Get other libraries in group my @other_libs = grep { $_->branchcode ne $branchcode } @all_libs; + my @libs_branchcodes; + push @libs_branchcodes, $branchcode; foreach my $lib (@other_libs) { push @libs_branchcodes, $lib->branchcode;