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

(-)a/installer/data/mysql/atomicupdate/bug_33547.pl (-2 / +7 lines)
Lines 14-20 return { Link Here
14
            });
14
            });
15
        }
15
        }
16
16
17
        my $notice_template = q{[%~ SET train = train_item.train ~%]
17
        my $notice_template = q{[%~ USE AuthorisedValues ~%]
18
[%~ SET train = train_item.train ~%]
18
[%~ SET item = train_item.catalogue_item ~%]
19
[%~ SET item = train_item.catalogue_item ~%]
19
Train name: [% train.name %]
20
Train name: [% train.name %]
20
Sent on: [% train.sent_on | $KohaDates %]
21
Sent on: [% train.sent_on | $KohaDates %]
Lines 24-30 Sent on: [% train.sent_on | $KohaDates %] Link Here
24
Item number #[% train_item.user_train_item_id %]
25
Item number #[% train_item.user_train_item_id %]
25
26
26
[% FOREACH item_attribute IN train_item.attributes %]
27
[% FOREACH item_attribute IN train_item.attributes %]
27
    [% item_attribute.processing_attribute.name %]: [% item_attribute.value %]
28
    [%~ SET value = item_attribute.value ~%]
29
    [%~ IF item_attribute.processing_attribute.type == 'authorised_value' ~%]
30
        [%~ SET value = AuthorisedValues.GetByCode(item_attribute.processing_attribute.option_source, item_attribute.value) ~%]
31
    [%~ END ~%]
32
    [% item_attribute.processing_attribute.name %]: [% value %]
28
[% END %]};
33
[% END %]};
29
34
30
        $dbh->do(q{
35
        $dbh->do(q{
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-2 / +6 lines)
Lines 2391-2396 tables: Link Here
2391
          message_transport_type: print
2391
          message_transport_type: print
2392
          lang: default
2392
          lang: default
2393
          content:
2393
          content:
2394
            - "[%~ USE AuthorisedValues ~%]"
2394
            - "[%~ SET train = train_item.train ~%]"
2395
            - "[%~ SET train = train_item.train ~%]"
2395
            - "[%~ SET item = train_item.catalogue_item ~%]"
2396
            - "[%~ SET item = train_item.catalogue_item ~%]"
2396
            - "Train name: [% train.name %]"
2397
            - "Train name: [% train.name %]"
Lines 2401-2405 tables: Link Here
2401
            - "Item number #[% train_item.user_train_item_id %]"
2402
            - "Item number #[% train_item.user_train_item_id %]"
2402
            - ""
2403
            - ""
2403
            - "[% FOREACH item_attribute IN train_item.attributes %]"
2404
            - "[% FOREACH item_attribute IN train_item.attributes %]"
2404
            - "    [% item_attribute.processing_attribute.name %]: [% item_attribute.value %]"
2405
            - "    [%~ SET value = item_attribute.value ~%]"
2406
            - "    [%~ IF item_attribute.processing_attribute.type == 'authorised_value' ~%]"
2407
            - "        [%~ SET value = AuthorisedValues.GetByCode(item_attribute.processing_attribute.option_source, item_attribute.value) ~%]"
2408
            - "    [%~ END ~%]"
2409
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2405
            - "[% END %]"
2410
            - "[% END %]"
2406
- 

Return to bug 33547