View | Details | Raw Unified | Return to bug 30237
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_30237.pl (+13 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "30237",
5
    description => "Replace ACCDETAILS notice with WELCOME notice",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Add WELCOME notice
10
        $dbh->do( q{
11
            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');});
12
    },
13
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-24 / +20 lines)
Lines 948-976 tables: Link Here
948
            - "[% branch.branchillemail %]"
948
            - "[% branch.branchillemail %]"
949
            - "[% branch.branchemail %]"
949
            - "[% branch.branchemail %]"
950
950
951
        - module: members
952
          code: ACCTDETAILS
953
          branchcode: ""
954
          name: "Account details template - DEFAULT"
955
          is_html: 0
956
          title: "Your new Koha account details."
957
          message_transport_type: email
958
          lang: default
959
          content:
960
            - "Hello <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>."
961
            - ""
962
            - "Your new Koha account details are:"
963
            - ""
964
            - "User:  <<borrowers.userid>>"
965
            - ""
966
            - "If you have any problems or questions regarding your account, please contact your Koha Administrator."
967
            - ""
968
            - "If you do not have your account password, please contact your Koha Administrator."
969
            - ""
970
            - "Thank you,"
971
            - "Koha Administrator"
972
            - "kohaadmin@yoursite.org"
973
974
        - module: members
951
        - module: members
975
          code: DISCHARGE
952
          code: DISCHARGE
976
          branchcode: ""
953
          branchcode: ""
Lines 1086-1091 tables: Link Here
1086
            - ""
1063
            - ""
1087
            - "Your library."
1064
            - "Your library."
1088
1065
1066
        - module: members
1067
          code: WELCOME
1068
          branchcode: ""
1069
          name: "Welcome notice "
1070
          is_html: 1
1071
          title: "[% USE Koha %]Welcome to [% Koha.Preference('LibraryName') %]"
1072
          message_transport_type: email
1073
          lang: default
1074
          content:
1075
            - "[% USE Koha %]"
1076
            - "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]."
1077
            - ""
1078
            - "Thankyou for joining [% Koha.Preference('LibraryName') %]"
1079
            - ""
1080
            - "The library's catalog can be found <a href='[% Koha.Preference('OPACBaseURL') %]'>here</a>."
1081
            - ""
1082
            - "Your library card number is [% borrower.cardnumber %]"
1083
            - ""
1084
            - "If you have any problems or questions regarding your account, please contact your Koha Administrator."
1085
1089
        - module: orderacquisition
1086
        - module: orderacquisition
1090
          code: ACQORDER
1087
          code: ACQORDER
1091
          branchcode: ""
1088
          branchcode: ""
1092
- 

Return to bug 30237