Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Kyle M Hall af0d71b747 Bug 25534: Add ability to send an email specifying a reason when canceling a hold
Some libraries would like to be able to cancel a hold with the option to
specify a reason. Providing a reason would generate an email to that
patron.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Restart all the things!
4) Create new AV category "HOLD_CANCELLATION", add some cancelation reasons
5) Add new Holds module notice "HOLD_CANCELLATION", add an email version.
   A quick test version would be "Reason: <<reserves.cancellation_reason>>"
--
[% USE AuthorisedValues %]
Reason: [% AuthorisedValues.GetByCode( 'CANCELLATION_REASON', hold.cancellation_reason, 'IS_OPAC' ) %]

[% IF hold.cancellation_reason == "MY_AV_VALUE" %]
IF perhaps you'd like to have a much longer explanation than just the
one sentence in the AV description, you can use IF blocks using Template
Toolkit markup!
[% END %]
--
6) Place a hold for a patron
7) On request.pl, select the 'del' option for the hold
8) Select a cancellation reason and choose "Update hold(s)"
9) Note a new message has been queue for the patron with the cancelation reason
11) Test again from circulation.pl
12) Test again from moremember.pl
10) Cancel a hold with no reason, note no email is generated
11) Delete your authorised values, not the feature is disabled
12) Reinstate the authorised values, but delete the notice,
    you should now be able to cancel a hold with a reason,
    but no email will be generated

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-25 15:07:27 +02:00
..
article-requests.tt Bug 20469: Add item status to staff article request form 2020-08-18 17:39:48 +02:00
bookcount.tt Bug 21449: Update two-column templates with Bootstrap grid: Circulation part 2 2019-01-30 11:59:40 +00:00
branchoverdues.tt Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
branchtransfers.tt Bug 23695: (QA follow-up) Fix Copy/Paste 2020-08-18 15:45:48 +02:00
checkout-notes.tt Bug 24337: Checkout note cannot be marked seen if more than 20 exist 2020-01-10 10:50:37 +00:00
circulation-home.tt Bug 24201: (QA follow-up) Add 'and desk' to menus and title 2020-08-07 16:54:40 +02:00
circulation.tt Bug 25534: Add ability to send an email specifying a reason when canceling a hold 2020-08-25 15:07:27 +02:00
circulation_batch_checkouts.tt Bug 16748: Add the ability to define due date in batch checkout 2020-08-18 17:39:48 +02:00
offline-mf.tt Bug 23803: (follow-up) Remove additional references and file 2019-10-11 14:35:17 +01:00
offline.tt Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
on-site_checkouts.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
overdue.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
pendingreserves.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
printslip.tt Bug 21526: (follow-up) Use the 'url' filter when needed 2018-11-12 16:35:44 -03:00
renew.tt Bug 16112: Do not depend on SpecifyDueDate 2020-08-24 12:10:53 +02:00
request-article.tt Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
reserveratios.tt Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
returns.tt Bug 21750: Move collection code to its own column on checkins table 2020-08-24 12:10:53 +02:00
set-library.tt Bug 24201: (QA follow-up) Replace library select 2020-08-07 16:54:40 +02:00
transferstoreceive.tt Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
view_holdsqueue.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
waitingreserves.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00