Bug 19467: Display description instead of code for itemtype and location
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 17 Feb 2018 21:48:50 +0000 (18:48 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 20:31:13 +0000 (17:31 -0300)
On reports/itemslost.pl you must now see the descriptions instead of the
code for itemtype and location

Signed-off-by: delaye <stephane.delaye@biblibre.com>
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt

index 99026f3..7412ef4 100644 (file)
@@ -2,6 +2,7 @@
 [% USE Branches %]
 [% USE ColumnsSettings %]
 [% USE KohaDates %]
+[% USE ItemTypes %]
 [% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Reports &rsaquo; Lost items</title>
@@ -94,9 +95,9 @@
                         <td>[% item.price %]</td>
                         <td>[% item.replacementprice %]</td>
                         <td>[% Branches.GetName(item.homebranch) %]</td>
-                        <td>[% item.effective_itemtype %]</td>
+                        <td>[% ItemTypes.GetDescription(item.effective_itemtype) %]</td>
                         <td>[% Branches.GetName(item.holdingbranch) %]</td>
-                        <td>[% item.location %]</td>
+                        <td>[% AuthorisedValues.GetByCode( 'LOC', item.location )%]</td>
                         <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
                         <td>[% item.itemnotes %]</td>
                     </tr>