Bug 30237: Replace ACCDETAILS notice with WELCOME notice
This patch drops the ACCDETAILS notice in preference to a new WELCOME notice. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
8eb24ccf10
commit
2609adc1bd
2 changed files with 33 additions and 23 deletions
13
installer/data/mysql/atomicupdate/bug_30237.pl
Normal file
13
installer/data/mysql/atomicupdate/bug_30237.pl
Normal file
|
@ -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 <a href='[% Koha.Preference('OPACBaseURL') %]'>here</a>.\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');});
|
||||
},
|
||||
};
|
|
@ -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 <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>."
|
||||
- ""
|
||||
- "Your new Koha account details are:"
|
||||
- ""
|
||||
- "User: <<borrowers.userid>>"
|
||||
- ""
|
||||
- "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 <a href='[% Koha.Preference('OPACBaseURL') %]'>here</a>."
|
||||
- ""
|
||||
- "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: ""
|
||||
|
|
Loading…
Reference in a new issue