Bug 40659: (follow-up) add empty default VIRTUALCARD notice
Also include a reference to the notice template from sysprefs Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
4db8cf6fc7
commit
ff9b74b72b
|
|
@ -0,0 +1,19 @@
|
|||
use Modern::Perl;
|
||||
use Koha::Installer::Output qw(say_warning say_success say_info);
|
||||
|
||||
return {
|
||||
bug_number => "40659",
|
||||
description => "Add VIRTUALCARD default letter",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
$dbh->do(
|
||||
q{
|
||||
INSERT IGNORE INTO letter
|
||||
(module, code, branchcode, name, is_html, title, content, message_transport_type, lang)
|
||||
VALUES ('members','VIRTUALCARD','','OPAC virtual card',1,'OPAC virtual card','','email','default');
|
||||
}
|
||||
) == 1 && say_success( $out, "Added VIRTUALCARD default letter" );
|
||||
},
|
||||
};
|
||||
|
|
@ -2721,3 +2721,13 @@ tables:
|
|||
- "[% skipped %] records skipped"
|
||||
- "[% in_error %] records in error"
|
||||
- "[% total %] total"
|
||||
- module: members
|
||||
code: VIRTUALCARD
|
||||
branchcode: ""
|
||||
name: "OPAC virtual card"
|
||||
is_html: 1
|
||||
title: "OPAC virtual card"
|
||||
message_transport_type: email
|
||||
lang: default
|
||||
content:
|
||||
- ""
|
||||
|
|
|
|||
|
|
@ -600,7 +600,7 @@ OPAC:
|
|||
industrial2of5: "Industrial 2 of 5"
|
||||
iata2of5: "IATA 2 of 5"
|
||||
coop2of5: "COOP 2 of 5"
|
||||
- " barcode in the patron's virtual card."
|
||||
- " barcode in the patron's virtual card. To customize the card layout, see the VIRTUALCARD template in 'Tools > Notices and slips'"
|
||||
OpenURL:
|
||||
-
|
||||
- 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<h1>Your library card </h1>
|
||||
<div id="patron-virtual-card">
|
||||
<div id="card-details">
|
||||
[% IF content.content %]
|
||||
[% IF content.content && content.content.trim %]
|
||||
[% content.content | $raw %]
|
||||
[% ELSE %]
|
||||
[% IF ( display_patron_image ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue