Bug 25534: (QA follow-up) Add sample notice

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle Hall 2020-08-20 12:26:46 -04:00 committed by Jonathan Druart
parent 8afa136aee
commit a6042768ac
2 changed files with 17 additions and 0 deletions

View file

@ -1,5 +1,9 @@
$DBversion = 'XXX'; # will be replaced by the RM $DBversion = 'XXX'; # will be replaced by the RM
if ( CheckVersion( $DBversion ) ) { if ( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT INTO `letter` VALUES ('reserves','HOLD_CANCELLATION','','Hold Cancellation',0,'Your hold was canceled.','[%- USE AuthorisedValues -%]\r\nDear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nYour hold for [% biblio.title %] was canceled for the following reason: [% AuthorisedValues.GetByCode( \'HOLD_CANCELLATION\', hold.cancellation_reason ) %]','email','default');
});
if ( !column_exists( 'reserves', 'cancellation_reason' ) ) { if ( !column_exists( 'reserves', 'cancellation_reason' ) ) {
$dbh->do(q{ $dbh->do(q{
ALTER TABLE reserves ADD COLUMN `cancellation_reason` varchar(80) default NULL AFTER cancellationdate; ALTER TABLE reserves ADD COLUMN `cancellation_reason` varchar(80) default NULL AFTER cancellationdate;

View file

@ -1208,3 +1208,16 @@ tables:
- "[% ELSE %]" - "[% ELSE %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]" - "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"
- "[% END %]" - "[% END %]"
- module: reserves
code: HOLD_CANCELLATION
branchcode: ""
name: "Notification of hold cancellation"
is_html: 0
title: "Your hold was canceled."
message_transport_type: email
lang: default
content:
- "[%- USE AuthorisedValues -%]"
- "Dear [% borrower.firstname %] [% borrower.surname %],"
- "Your hold for [% biblio.title %] was canceled for the following reason: [% AuthorisedValues.GetByCode( 'HOLD_CANCELLATION', hold.cancellation_reason ) %]"