Bugzilla – Attachment 158310 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: EmailPatronWhenHoldIsPlaced system preference
Bug-17617-EmailPatronWhenHoldIsPlaced-system-prefe.patch (text/plain), 3.67 KB, created by
Marcel de Rooy
on 2023-11-03 08:45:17 UTC
(
hide
)
Description:
Bug 17617: EmailPatronWhenHoldIsPlaced system preference
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-11-03 08:45:17 UTC
Size:
3.67 KB
patch
obsolete
>From eeb8281350b1ca9b4844f1c225fdf4601a493504 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Thu, 26 Oct 2023 02:02:12 +0000 >Subject: [PATCH] Bug 17617: EmailPatronWhenHoldIsPlaced system preference >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Kelly <kelly@bywatersolutions.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > ...ug_17617_-_add_EmailPatronWhenHoldIsPlaced.pl | 16 ++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../modules/admin/preferences/circulation.pref | 6 ++++++ > 3 files changed, 23 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_17617_-_add_EmailPatronWhenHoldIsPlaced.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_17617_-_add_EmailPatronWhenHoldIsPlaced.pl b/installer/data/mysql/atomicupdate/bug_17617_-_add_EmailPatronWhenHoldIsPlaced.pl >new file mode 100755 >index 0000000000..7f07137ca1 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_17617_-_add_EmailPatronWhenHoldIsPlaced.pl >@@ -0,0 +1,16 @@ >+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 systempreferences (variable,value,options,explanation,type) VALUES ('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo') } >+ ); >+ >+ say $out "Added system preference 'EmailPatronWhenHoldIsPlaced'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 50ab4e1521..a01f777bcb 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -224,6 +224,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'), > ('EmailOverduesNoEmail','1',NULL,'Send send overdues of patrons without email address to staff','YesNo'), > ('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'), >+('EmailPatronWhenHoldIsPlaced', '0', NULL, 'Email patron when a hold has been placed for them', 'YesNo'), > ('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'), > ('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'), > ('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index 5cb207d3f0..5e6b5c3cba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -1013,6 +1013,12 @@ Circulation: > 1: block > 0: allow > - renewing of items from the staff interface and via the <code>misc/cronjobs/automatic_renewals.pl</code> cronjob. >+ - >+ - pref: EmailPatronWhenHoldIsPlaced >+ choices: >+ 1: Email >+ 0: "Don't email" >+ - a patron when they have placed a hold. > Fines Policy: > - > - pref: finesCalendar >-- >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