From 4107444c03ba54078cf6b167b70cfff31d13b0f0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 16 Jul 2014 16:06:40 -0400 Subject: [PATCH] Bug 12589 - Manage label batch view should show item type description instead of code When viewing the list of items in an existing label batch the item type code is shown. This patch modifies the template to show the item type description instead. To test, go to Tools -> Labels -> Manage batches. If necessary, create a batch with multiple items of different item types. Edit the batch and confirm that the table of items shows item type description instead of code. Signed-off-by: Robert Higgins Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/labels/label-edit-batch.tt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt index 85bbb4eeb2..666653771d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt @@ -1,3 +1,4 @@ +[% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Labels › Manage label batches [% INCLUDE 'doc-head-close.inc' %] @@ -242,7 +243,13 @@ [% IF ( text_field.select_field ) %] [% ELSE %] - [% text_field.field_value %] + + [% IF ( text_field.field_name == '_item_type_tbl' ) %] + [% ItemTypes.GetDescription( text_field.field_value ) %] + [% ELSE %] + [% text_field.field_value %] + [% END %] + [% END %] [% END %] -- 2.39.2