From ac3f8d42352584610dc6a1539749aa3ba4ef849c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 24 Nov 2021 16:29:06 +0000 Subject: [PATCH] Bug 29566: Add sample notices --- .../data/mysql/atomicupdate/bug_29566.pl | 19 ++++++++++++++ .../mysql/en/mandatory/sample_notices.yml | 26 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_29566.pl diff --git a/installer/data/mysql/atomicupdate/bug_29566.pl b/installer/data/mysql/atomicupdate/bug_29566.pl new file mode 100644 index 0000000000..fb04a5a0dc --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_29566.pl @@ -0,0 +1,19 @@ +use Modern::Perl; + +return { + bug_number => "29566", + description => "Add BUNDLE slip template", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + my $bundle_notice = q{ +\r\n }; + + $dbh->do(q{ + INSERT IGNORE INTO letter + (module,code,branchcode,name,is_html,title,content,message_transport_type,lang) + VALUES ('circulation','BUNDLE','','Bundle contents', 1, 'Bundle contents for [% item.barcode %]', '\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n [% FOREACH bundle_item IN item.bundle_items %]\r\n \r\n \r\n \r\n \r\n [% END %]\r\n \r\n
BarcodeTitle
[% bundle_item.barcode | html %][% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio %]
','print','default') + }); + }, +} diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index 48e1f030bf..e058ff9f59 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -381,6 +381,32 @@ tables: - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]" - "" + - module: circulation + code: BUNDLE + branchcode: "" + name: "Bundle contents - print slip" + is_html: 1 + title: "Bundle content for [% item.barcode %]" + message_transport_type: print + lang: default + content: + - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " [% FOREACH bundle_item IN item.bundle_items %]" + - " " + - " " + - " " + - " " + - " [% END %]" + - " " + - "
BarcodeTitle
[% bundle_item.barcode | html %][% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio %]
" + - module: circulation code: CHECKIN branchcode: "" -- 2.20.1