Bug 41957: Show hold group information on 'Hold found' modal

Test plan:
1) Enable DisplayAddHoldGroups
2) Go to 'Henry' and click the 'Search to hold' button:
<staff_url>/cgi-bin/koha/members/moremember.pl?borrowernumber=19
3) Search for keyword 'test'. Click the 'Search' button.
4) On the search results page, click the 'Select all' option at the top
5) Click the downward arrow in the 'Place hold' toolbar button.
6) Pick 'Place hold for Henry Acevedo'
7) Tick the 'Treat as hold group' checkbox.
8) Set a pickup location for each of the holds.
9) Click 'Place holds'.
10) Check-in one eligible item (from one of the 3 records we just placed holds on) e.g.: 39999000001310
11) Notice the 'Hold found' modal now shows 'Part of a hold group' with a link directly to the patron's holds.

Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2026-04-01 12:25:13 +00:00 committed by Lucas Gass
parent 3490c1a90c
commit 55a934fc0d
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 8 additions and 0 deletions

View File

@ -647,6 +647,8 @@ if ( $messages->{'ResFound'} ) {
reservenotes => $reserve->{'reservenotes'},
reserve_id => $reserve->{reserve_id},
bormessagepref => $holdmsgpreferences->{'transports'},
C4::Context->preference('DisplayAddHoldGroups')
&& $reserve->{hold_group_id} ? ( hold_group_id => $reserve->{hold_group_id} ) : (),
);
}

View File

@ -969,6 +969,12 @@
<strong>[% t('Checked in at') | html %]:</strong>
[% Branches.GetName( Branches.GetLoggedInBranchcode ) | html %]
[% IF ( hold_group_id ) %]
<br />
<strong>[% t('Part of a hold group') | html %]:</strong>
<a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber %]#holds_panel"><i class="fa fa-fw fa-external-link-alt"></i> View patron's holds</a>
[% END %]
</p>
[% PROCESS passthrough_data %]