View | Details | Raw Unified | Return to bug 29566
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_29566.pl (+19 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "29566",
5
    description => "Add BUNDLE slip template",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
    my $bundle_notice = q{
11
\r\n    };
12
13
        $dbh->do(q{
14
            INSERT IGNORE INTO letter
15
        (module,code,branchcode,name,is_html,title,content,message_transport_type,lang)
16
        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')
17
        });
18
    },
19
}
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +26 lines)
Lines 387-392 tables: Link Here
387
            - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
387
            - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
388
            - ""
388
            - ""
389
389
390
        - module: circulation
391
          code: BUNDLE
392
          branchcode: ""
393
          name: "Bundle contents - print slip"
394
          is_html: 1
395
          title: "Bundle content for [% item.barcode %]"
396
          message_transport_type: print
397
          lang: default
398
          content:
399
            - "<table style='100%'>"
400
            - "  <thead>"
401
            - "    <tr>"
402
            - "        <th>Barcode</th>"
403
            - "        <th>Title</th>"
404
            - "    </tr>"
405
            - "  </thead>"
406
            - "  <tbody>"
407
            - "    [% FOREACH bundle_item IN item.bundle_items %]"
408
            - "      <tr>"
409
            - "        <td>[% bundle_item.barcode | html %]</td>"
410
            - "        <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio %]</td>"
411
            - "      </tr>"
412
            - "    [% END %]"
413
            - "  </tbody>"
414
            - "</table>"
415
390
        - module: circulation
416
        - module: circulation
391
          code: CHECKIN
417
          code: CHECKIN
392
          branchcode: ""
418
          branchcode: ""
393
- 

Return to bug 29566