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

(-)a/installer/data/mysql/atomicupdate/bug_40659.pl (+22 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "40659",
6
    description => "Add VIRTUALCARD default letter",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
            INSERT IGNORE INTO letter
14
            (module, code, branchcode, name, is_html, title, content, message_transport_type, lang)
15
            VALUES ('members','VIRTUALCARD','','OPAC virtual card',1,'OPAC virtual card','[% my_image %]<br />[% my_barcode %] <br /> <div id="lib-container"><p id="patron-lib"><strong>Library:</strong> [% branch.branchname %]</p></div><div id="cardnumber-container"><p id="patron-cardnumber"><strong>Card number:</strong> [% borrower.cardnumber %]</p></div><div id="dateexpiry-container"><p id="patron-dateexpiry"><strong>Expiration date:</strong> [% borrower.dateexpiry | $KohaDates %]</p>
16
','email','default');
17
        }
18
        );
19
20
        say_success( $out, "Added VIRTUALCARD default letter" );
21
    },
22
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +21 lines)
Lines 1576-1581 tables: Link Here
1576
            - "<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>"
1576
            - "<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>"
1577
            - "<p>Thank you.</p>"
1577
            - "<p>Thank you.</p>"
1578
1578
1579
        - module: members
1580
          code: VIRTUALCARD
1581
          branchcode: ""
1582
          name: "OPAC virtual card"
1583
          is_html: 1
1584
          title: "OPAC virtual card"
1585
          message_transport_type: email
1586
          lang: default
1587
          content:
1588
            - "[% my_image %]"
1589
            - "[% my_barcode %]"
1590
            - "<div id=\"lib-container\">"
1591
            - "<p id=\"patron-lib\"><strong>Library:</strong> [% branch.branchname %]</p>"
1592
            - "</div>"
1593
            - "<div id=\"cardnumber-container\">"
1594
            - "<p id=\"patron-cardnumber\"><strong>Card number:</strong> [% borrower.cardnumber %]</p>"
1595
            - "</div"
1596
            - "<div id=\"dateexpiry-container\">"
1597
            - "<p id=\"patron-dateexpiry\"><strong>Expiration date:</strong> [% borrower.dateexpiry | $KohaDates %]</p>"
1598
            - "</div"
1599
1579
        - module: members
1600
        - module: members
1580
          code: WELCOME
1601
          code: WELCOME
1581
          branchcode: ""
1602
          branchcode: ""
1582
- 

Return to bug 40659