Bug 36138: Add reason to status column on opac-holdshistory, if there is a reason
TO TEST:
1. Turn on OPACHoldsHistory
2. Make some holds for a patron and then cancel them with a reason.
3. Log in as that patron and go to the 'Holds history' tab. Notice the text in the 'Status' column is 'Cancelled' but nothing shows up regarding the reason.
4. Apply patch and try again, this time you should see the reason for cancellation.
Signed-off-by: Esther <esther@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f4f2fdb65f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
e1a930af12
commit
57f074da71
|
|
@ -5,6 +5,7 @@
|
|||
[% USE TablesSettings %]
|
||||
[% USE ItemTypes %]
|
||||
[% USE AdditionalContents %]
|
||||
[% USE AuthorisedValues %]
|
||||
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||
|
||||
|
|
@ -147,6 +148,9 @@
|
|||
<span>Fulfilled</span>
|
||||
[% ELSIF hold.cancellationdate %]
|
||||
<span>Cancelled</span>
|
||||
[% IF hold.cancellation_reason %]
|
||||
([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason, 1) | html %])
|
||||
[% END %]
|
||||
[% ELSIF hold.found == 'W' %]
|
||||
[% IF hold.cancellation_requests.count == 0 %]
|
||||
<span>Waiting</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue