Bug 12152: Holds to pull report - Display location descriptions
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 25 Nov 2015 16:40:37 +0000 (16:40 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 4 Dec 2015 16:15:03 +0000 (16:15 +0000)
...instead of their code

Test plan:
Same as before, confirm the the location codes are replaced with their
descriptions.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt

index 8e11dc6..662926d 100644 (file)
@@ -1,4 +1,5 @@
 [% USE KohaDates %]
+[% USE AuthorisedValues %]
 [%- USE Branches -%]
 [%- USE ItemTypes -%]
 [% INCLUDE 'doc-head-open.inc' %]
@@ -130,7 +131,7 @@ $(document).ready(function() {
         <td><p>[% reserveloo.copyno %]</p></td>
         <td><p>[% reserveloo.enumchron %]</p></td>
         <td>[% ItemTypes.GetDescription( reserveloo.itype ) %]</td>
-        <td>[% reserveloo.location %]</td>
+        <td>[% AuthorisedValues.GetByCode('LOC', reserveloo.location) %]</td>
         <td>
             <span title="[% reserveloo.reservedate %]">[% reserveloo.reservedate | $KohaDates %] in [% Branches.GetName ( reserveloo.branch ) %]</span>
             [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]