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 2371-2376 tables: Link Here
2371
          message_transport_type: print
2371
          message_transport_type: print
2372
          lang: default
2372
          lang: default
2373
          content:
2373
          content:
2374
            - "[%~ USE AuthorisedValues ~%]"
2374
            - "[%~ SET train = train_item.train ~%]"
2375
            - "[%~ SET train = train_item.train ~%]"
2375
            - "[%~ SET item = train_item.catalogue_item ~%]"
2376
            - "[%~ SET item = train_item.catalogue_item ~%]"
2376
            - "Train name: [% train.name %]"
2377
            - "Train name: [% train.name %]"
Lines 2381-2385 tables: Link Here
2381
            - "Item number #[% train_item.user_train_item_id %]"
2382
            - "Item number #[% train_item.user_train_item_id %]"
2382
            - ""
2383
            - ""
2383
            - "[% FOREACH item_attribute IN train_item.attributes %]"
2384
            - "[% FOREACH item_attribute IN train_item.attributes %]"
2384
            - "    [% item_attribute.processing_attribute.name %]: [% item_attribute.value %]"
2385
            - "    [%~ SET value = item_attribute.value ~%]"
2386
            - "    [%~ IF item_attribute.processing_attribute.type == 'authorised_value' ~%]"
2387
            - "        [%~ SET value = AuthorisedValues.GetByCode(item_attribute.processing_attribute.option_source, item_attribute.value) ~%]"
2388
            - "    [%~ END ~%]"
2389
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2385
            - "[% END %]"
2390
            - "[% END %]"
2386
- 

Return to bug 33547