Bug 33547: Display AV descriptions instead of codes
Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
c61c20bc8e
commit
ddca40a5d4
2 changed files with 13 additions and 3 deletions
|
@ -14,7 +14,8 @@ return {
|
|||
});
|
||||
}
|
||||
|
||||
my $notice_template = q{[%~ SET train = train_item.train ~%]
|
||||
my $notice_template = q{[%~ USE AuthorisedValues ~%]
|
||||
[%~ SET train = train_item.train ~%]
|
||||
[%~ SET item = train_item.catalogue_item ~%]
|
||||
Train name: [% train.name %]
|
||||
Sent on: [% train.sent_on | $KohaDates %]
|
||||
|
@ -24,7 +25,11 @@ Sent on: [% train.sent_on | $KohaDates %]
|
|||
Item number #[% train_item.user_train_item_id %]
|
||||
|
||||
[% FOREACH item_attribute IN train_item.attributes %]
|
||||
[% item_attribute.processing_attribute.name %]: [% item_attribute.value %]
|
||||
[%~ SET value = item_attribute.value ~%]
|
||||
[%~ IF item_attribute.processing_attribute.type == 'authorised_value' ~%]
|
||||
[%~ SET value = AuthorisedValues.GetByCode(item_attribute.processing_attribute.option_source, item_attribute.value) ~%]
|
||||
[%~ END ~%]
|
||||
[% item_attribute.processing_attribute.name %]: [% value %]
|
||||
[% END %]};
|
||||
|
||||
$dbh->do(q{
|
||||
|
|
|
@ -2394,6 +2394,7 @@ tables:
|
|||
message_transport_type: print
|
||||
lang: default
|
||||
content:
|
||||
- "[%~ USE AuthorisedValues ~%]"
|
||||
- "[%~ SET train = train_item.train ~%]"
|
||||
- "[%~ SET item = train_item.catalogue_item ~%]"
|
||||
- "Train name: [% train.name %]"
|
||||
|
@ -2404,5 +2405,9 @@ tables:
|
|||
- "Item number #[% train_item.user_train_item_id %]"
|
||||
- ""
|
||||
- "[% FOREACH item_attribute IN train_item.attributes %]"
|
||||
- " [% item_attribute.processing_attribute.name %]: [% item_attribute.value %]"
|
||||
- " [%~ SET value = item_attribute.value ~%]"
|
||||
- " [%~ IF item_attribute.processing_attribute.type == 'authorised_value' ~%]"
|
||||
- " [%~ SET value = AuthorisedValues.GetByCode(item_attribute.processing_attribute.option_source, item_attribute.value) ~%]"
|
||||
- " [%~ END ~%]"
|
||||
- " [% item_attribute.processing_attribute.name %]: [% value %]"
|
||||
- "[% END %]"
|
||||
|
|
Loading…
Reference in a new issue