Bugzilla – Attachment 157588 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), 3.17 KB, created by
Jonathan Druart
on 2023-10-21 06:22:33 UTC
(
hide
)
Description:
Bug 33547: Display AV descriptions instead of codes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-10-21 06:22:33 UTC
Size:
3.17 KB
patch
obsolete
>From b833c963cad86fe21974ddf273e2f0d5804223d1 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 > >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> >--- > 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 b9ac82e6215..a55ca0da083 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -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 %]" >-- >2.34.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