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 |
}; |