Bugzilla – Attachment 137513 Details for
Bug 29566
Convert bundle contents modal to a notice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29566: Add sample notices
Bug-29566-Add-sample-notices.patch (text/plain), 3.04 KB, created by
Martin Renvoize (ashimema)
on 2022-07-11 13:34:58 UTC
(
hide
)
Description:
Bug 29566: Add sample notices
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-07-11 13:34:58 UTC
Size:
3.04 KB
patch
obsolete
>From 456ac804e8a3d76658ee0355aa0338df31b99858 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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..f237bd5d22 >--- /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 %]', '<table style="100%">\r\n <thead>\r\n <tr>\r\n <th>Barcode</th>\r\n <th>Title</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n [% FOREACH bundle_item IN item.bundle_items %]\r\n <tr>\r\n <td>[% bundle_item.barcode | html %]</td>\r\n <td>[% INCLUDE "biblio-title.inc" biblio=bundle_item.biblio %]</td>\r\n </tr>\r\n [% END %]\r\n </tbody>\r\n</table>','print','default') >+ }); >+ }, >+} >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 34ffab80df..0e7e8012ed 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -387,6 +387,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: >+ - "<table style='100%'>" >+ - " <thead>" >+ - " <tr>" >+ - " <th>Barcode</th>" >+ - " <th>Title</th>" >+ - " </tr>" >+ - " </thead>" >+ - " <tbody>" >+ - " [% FOREACH bundle_item IN item.bundle_items %]" >+ - " <tr>" >+ - " <td>[% bundle_item.barcode | html %]</td>" >+ - " <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio %]</td>" >+ - " </tr>" >+ - " [% END %]" >+ - " </tbody>" >+ - "</table>" >+ > - module: circulation > code: CHECKIN > branchcode: "" >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29566
:
127983
|
127984
|
127985
|
135038
|
135039
|
135040
|
137511
|
137512
| 137513