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>
(cherry picked from commit 55a934fc0d)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
25885fdc4d
commit
b07e1244a2
|
|
@ -646,6 +646,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} ) : (),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -967,6 +967,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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue