Bug 17617: Add HOLDPLACED_PATRON notice
A HOLDPLACED notice exists and is used by the emailLibrarianWhenHoldIsPlaced function, but libraries may want to use different wording when emailing patrons. Signed-off-by: Kelly <kelly@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9188bca759
commit
b62699dff0
|
|
@ -0,0 +1,19 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "17617",
|
||||
description => "Notify patron when their hold has been placed",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, message_transport_type, lang, content) VALUES ("reserves", "HOLDPLACED_PATRON", "", "Hold is confirmed", 0, "Your hold on [% hold.biblio.title %] is confirmed", "email", "default", "Hello [% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %]),
|
||||
Your hold on [% hold.biblio.title %] ([% hold.biblio.id %]) has been confirmed.
|
||||
You will be notified by the library when your item is available for pickup.
|
||||
Thank you!")}
|
||||
);
|
||||
|
||||
say $out "Added notice 'HOLDPLACED_PATRON'";
|
||||
},
|
||||
};
|
||||
|
|
@ -2453,3 +2453,17 @@ tables:
|
|||
- " [%~ END ~%]"
|
||||
- " [% item_attribute.processing_attribute.name %]: [% value %]"
|
||||
- "[% END %]"
|
||||
|
||||
- module: reserves
|
||||
code: HOLDPLACED_PATRON
|
||||
branchcode: ""
|
||||
name: "Hold is confirmed"
|
||||
is_html: 0
|
||||
title: "Your hold on [% hold.biblio.title %] is confirmed"
|
||||
message_transport_type: email
|
||||
lang: default
|
||||
content:
|
||||
- "Hello [% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %]),"
|
||||
- "Your hold on [% hold.biblio.title %] ([% hold.biblio.id %]) has been confirmed."
|
||||
- "You will be notified by the library when your item is available for pickup."
|
||||
- "Thank you!"
|
||||
|
|
|
|||
Loading…
Reference in New Issue