From 8cb06e89eefdf126cd468f6bccc7795e064627ce Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 17 Feb 2018 18:48:50 -0300 Subject: [PATCH] Bug 19467: Display description instead of code for itemtype and location On reports/itemslost.pl you must now see the descriptions instead of the code for itemtype and location --- koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt index 99026f3898..7412ef4027 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt @@ -2,6 +2,7 @@ [% USE Branches %] [% USE ColumnsSettings %] [% USE KohaDates %] +[% USE ItemTypes %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Reports › Lost items @@ -94,9 +95,9 @@ [% item.price %] [% item.replacementprice %] [% Branches.GetName(item.homebranch) %] - [% item.effective_itemtype %] + [% ItemTypes.GetDescription(item.effective_itemtype) %] [% Branches.GetName(item.holdingbranch) %] - [% item.location %] + [% AuthorisedValues.GetByCode( 'LOC', item.location )%] [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] [% item.itemnotes %] -- 2.11.0