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

(-)a/installer/data/mysql/atomicupdate/bug_30237.pl (-1 / +1 lines)
Lines 8-14 return { Link Here
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Add WELCOME notice
9
        # Add WELCOME notice
10
        $dbh->do( q{
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\nThank you for joining [% Koha.Preference('LibraryName') %]\r\n\r\nYou can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</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 the library.", 'email');});
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 [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]", "[% USE Koha %]\r\nHello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %].\r\n\r\nThank you for joining [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]\r\n\r\nYou can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</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 the library.", 'email');});
12
12
13
        # Update system preference
13
        # Update system preference
14
        $dbh->do( q{
14
        $dbh->do( q{
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-3 / +2 lines)
Lines 1068-1081 tables: Link Here
1068
          branchcode: ""
1068
          branchcode: ""
1069
          name: "Welcome notice "
1069
          name: "Welcome notice "
1070
          is_html: 1
1070
          is_html: 1
1071
          title: "[% USE Koha %]Welcome to [% Koha.Preference('LibraryName') %]"
1071
          title: "[% USE Koha %][% IF Koha.Preference('LibraryName') %]Welcome to [% Koha.Preference('LibraryName') %][% ELSE %]Welcome to the library[% END %]"
1072
          message_transport_type: email
1072
          message_transport_type: email
1073
          lang: default
1073
          lang: default
1074
          content:
1074
          content:
1075
            - "[% USE Koha %]"
1075
            - "[% USE Koha %]"
1076
            - "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]."
1076
            - "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]."
1077
            - ""
1077
            - ""
1078
            - "Thankyou for joining [% Koha.Preference('LibraryName') %]"
1078
            - "Thankyou for joining [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]"
1079
            - ""
1079
            - ""
1080
            - "You can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</a>."
1080
            - "You can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</a>."
1081
            - ""
1081
            - ""
1082
- 

Return to bug 30237