From db5549a60e99f29352357aa400b15269ad07e177 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 --- catalogue/detail.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index d64a68c3fe3..0ff7b590c5a 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; -- 2.39.5