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 2394-2399 tables: Link Here
2394
          message_transport_type: print
2394
          message_transport_type: print
2395
          lang: default
2395
          lang: default
2396
          content:
2396
          content:
2397
            - "[%~ USE AuthorisedValues ~%]"
2397
            - "[%~ SET train = train_item.train ~%]"
2398
            - "[%~ SET train = train_item.train ~%]"
2398
            - "[%~ SET item = train_item.catalogue_item ~%]"
2399
            - "[%~ SET item = train_item.catalogue_item ~%]"
2399
            - "Train name: [% train.name %]"
2400
            - "Train name: [% train.name %]"
Lines 2404-2408 tables: Link Here
2404
            - "Item number #[% train_item.user_train_item_id %]"
2405
            - "Item number #[% train_item.user_train_item_id %]"
2405
            - ""
2406
            - ""
2406
            - "[% FOREACH item_attribute IN train_item.attributes %]"
2407
            - "[% FOREACH item_attribute IN train_item.attributes %]"
2407
            - "    [% item_attribute.processing_attribute.name %]: [% item_attribute.value %]"
2408
            - "    [%~ SET value = item_attribute.value ~%]"
2409
            - "    [%~ IF item_attribute.processing_attribute.type == 'authorised_value' ~%]"
2410
            - "        [%~ SET value = AuthorisedValues.GetByCode(item_attribute.processing_attribute.option_source, item_attribute.value) ~%]"
2411
            - "    [%~ END ~%]"
2412
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2408
            - "[% END %]"
2413
            - "[% END %]"
2409
- 

Return to bug 33547