Bugzilla – Attachment 157996 Details for
Bug 17617
Add the ability of sending a confirmation e-mail to patron when hold is placed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17617: Add HOLDPLACED_PATRON notice
Bug-17617-Add-HOLDPLACEDPATRON-notice.patch (text/plain), 2.91 KB, created by
ByWater Sandboxes
on 2023-10-27 18:13:18 UTC
(
hide
)
Description:
Bug 17617: Add HOLDPLACED_PATRON notice
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2023-10-27 18:13:18 UTC
Size:
2.91 KB
patch
obsolete
>From f1a04bee12974fa27e64433ab794b527fc4fdd69 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Thu, 26 Oct 2023 02:37:01 +0000 >Subject: [PATCH] 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> >--- > ...ug_17617_-_add_HOLDPLACED_PATRON_notice.pl | 19 +++++++++++++++++++ > .../mysql/en/mandatory/sample_notices.yml | 14 ++++++++++++++ > 2 files changed, 33 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_17617_-_add_HOLDPLACED_PATRON_notice.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_17617_-_add_HOLDPLACED_PATRON_notice.pl b/installer/data/mysql/atomicupdate/bug_17617_-_add_HOLDPLACED_PATRON_notice.pl >new file mode 100755 >index 0000000000..55abc5cdc3 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_17617_-_add_HOLDPLACED_PATRON_notice.pl >@@ -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'"; >+ }, >+}; >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 3410210476..87ad7c2d1d 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -2449,3 +2449,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!" >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17617
:
157961
|
157962
|
157963
|
157964
|
157995
|
157996
|
157997
|
157998
|
158310
|
158311
|
158312
|
158313