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 <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:
Eric Garcia 2025-08-18 14:08:12 +00:00 committed by Lucas Gass
parent f438535b5c
commit 23eb2dbd39
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 0 deletions

View File

@ -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;