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:
Aleisha Amohia 2023-10-26 02:37:01 +00:00 committed by Tomas Cohen Arazi
parent 9188bca759
commit b62699dff0
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 33 additions and 0 deletions

View File

@ -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'";
},
};

View File

@ -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!"