@@ -, +, @@
---
.../data/mysql/atomicupdate/bug_30237.pl | 13 ++++++
.../mysql/en/mandatory/sample_notices.yml | 43 +++++++++----------
2 files changed, 33 insertions(+), 23 deletions(-)
create mode 100644 installer/data/mysql/atomicupdate/bug_30237.pl
--- a/installer/data/mysql/atomicupdate/bug_30237.pl
+++ a/installer/data/mysql/atomicupdate/bug_30237.pl
@@ -0,0 +1,13 @@
+use Modern::Perl;
+
+return {
+ bug_number => "30237",
+ description => "Replace ACCDETAILS notice with WELCOME notice",
+ up => sub {
+ my ($args) = @_;
+ my ($dbh, $out) = @$args{qw(dbh out)};
+ # Add WELCOME notice
+ $dbh->do( q{
+ INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('members', 'WELCOME', 'Welcome notice', 1, '[% USE Koha %]Welcome to [% Koha.Preference('LibraryName') %]', "[% USE Koha %]\r\nHello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %].\r\n\r\nThankyou for joining [% Koha.Preference('LibraryName') %]\r\n\r\nThe library's catalog can be found here.\r\n\r\nYour library card number is [% borrower.cardnumber %]\r\n\r\nIf you have any problems or questions regarding your account, please contact your Koha Administrator.", 'email');});
+ },
+};
--- a/installer/data/mysql/en/mandatory/sample_notices.yml
+++ a/installer/data/mysql/en/mandatory/sample_notices.yml
@@ -948,29 +948,6 @@ tables:
- "[% branch.branchillemail %]"
- "[% branch.branchemail %]"
- - module: members
- code: ACCTDETAILS
- branchcode: ""
- name: "Account details template - DEFAULT"
- is_html: 0
- title: "Your new Koha account details."
- message_transport_type: email
- lang: default
- content:
- - "Hello <> <> <>."
- - ""
- - "Your new Koha account details are:"
- - ""
- - "User: <>"
- - ""
- - "If you have any problems or questions regarding your account, please contact your Koha Administrator."
- - ""
- - "If you do not have your account password, please contact your Koha Administrator."
- - ""
- - "Thank you,"
- - "Koha Administrator"
- - "kohaadmin@yoursite.org"
-
- module: members
code: DISCHARGE
branchcode: ""
@@ -1086,6 +1063,26 @@ tables:
- ""
- "Your library."
+ - module: members
+ code: WELCOME
+ branchcode: ""
+ name: "Welcome notice "
+ is_html: 1
+ title: "[% USE Koha %]Welcome to [% Koha.Preference('LibraryName') %]"
+ message_transport_type: email
+ lang: default
+ content:
+ - "[% USE Koha %]"
+ - "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]."
+ - ""
+ - "Thankyou for joining [% Koha.Preference('LibraryName') %]"
+ - ""
+ - "The library's catalog can be found here."
+ - ""
+ - "Your library card number is [% borrower.cardnumber %]"
+ - ""
+ - "If you have any problems or questions regarding your account, please contact your Koha Administrator."
+
- module: orderacquisition
code: ACQORDER
branchcode: ""
--