From 55a934fc0d6bb948dd119a1fd5649e92ec74b2b1 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 1 Apr 2026 12:25:13 +0000 Subject: [PATCH] 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: /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 Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass --- circ/returns.pl | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/circ/returns.pl b/circ/returns.pl index 97b2353490..24fac809f0 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -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} ) : (), ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index b979ab57b1..5ef3bac2c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -969,6 +969,12 @@ [% t('Checked in at') | html %]: [% Branches.GetName( Branches.GetLoggedInBranchcode ) | html %] + + [% IF ( hold_group_id ) %] +
+ [% t('Part of a hold group') | html %]: + View patron's holds + [% END %]

[% PROCESS passthrough_data %]