Bugzilla – Attachment 152259 Details for
Bug 33547
Print slips from the preservation module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33547: Display AV descriptions instead of codes
Bug-33547-Display-AV-descriptions-instead-of-codes.patch (text/plain), 2.92 KB, created by
Jonathan Druart
on 2023-06-09 15:21:50 UTC
(
hide
)
Description:
Bug 33547: Display AV descriptions instead of codes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-09 15:21:50 UTC
Size:
2.92 KB
patch
obsolete
>From 4dee997544a537d17cd855beb020940c4bf53811 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 Jun 2023 15:56:46 +0200 >Subject: [PATCH] Bug 33547: Display AV descriptions instead of codes > >--- > installer/data/mysql/atomicupdate/bug_33547.pl | 9 +++++++-- > installer/data/mysql/en/mandatory/sample_notices.yml | 7 ++++++- > 2 files changed, 13 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_33547.pl b/installer/data/mysql/atomicupdate/bug_33547.pl >index 980153fe305..dafd77ab889 100755 >--- a/installer/data/mysql/atomicupdate/bug_33547.pl >+++ b/installer/data/mysql/atomicupdate/bug_33547.pl >@@ -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{ >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 213e622ee25..86f24e88c0e 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -2371,6 +2371,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 %]" >@@ -2381,5 +2382,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 %]" >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33547
:
149774
|
149775
|
152048
|
152257
|
152258
|
152259
|
152260
|
152971
|
152972
|
152973
|
152974
|
154204
|
154205
|
154206
|
154207
|
156892
|
156893
|
156894
|
156895
|
156966
|
156967
|
156968
|
156969
|
156970
|
157586
|
157587
|
157588
|
157589
|
157590