From a1fc841aba6438d716af53a52ec62a2fbfd5751e Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 24 Aug 2020 09:22:24 -0400 Subject: [PATCH] Bug 26281: Add cancellation reason to holds history Bug 25534 adds the ability to store the cancellation reason when a hold is cancelled and communicate it to the user. It would be great if the cancellation reason could also be shown on the holds history. Test Plan: 1) Apply this patch 2) Cancel a hold with a reason 4) Browse to holds history for the holds' patron 5) Note the reason shows in the status column if one was provided Working ok. Signed-off-by: Amit Gupta --- koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt index 0e8ab42..06c0cca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt @@ -97,6 +97,9 @@ Fulfilled [% ELSIF hold.cancellationdate %] Cancelled + [% IF hold.cancellation_reason %] + ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) %]) + [% END %] [% ELSIF hold.found == 'W' %] Waiting [% ELSIF hold.found == 'T' %] -- 2.7.4