From cf4ac7a34e96a62871df6963fc5bef6b81a3206e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 30 Sep 2014 10:34:57 -0400 Subject: [PATCH] [PASSED QA] Bug 10960 - Holds Queue Report display loc code not description The holds queue report shows codes for item shelving location and for library transfer location. This patch adds template plugin handling of both these fields to display their full description. To test, make sure you have one or more items in your holds queue which have a shelving location. Rebuild your holds queue if necessary and view it. Items which have a shelving location should show the description instead of the code. The "send to" column should show the library name instead of code. Signed-off-by: Chris Signed-off-by: Katrin Fischer Works as described, making use of the TT plugins. --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt index cc2a694..b247706 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ -1,5 +1,6 @@ [% USE KohaDates %] [% USE ItemTypes %] +[% USE Branches %] [% USE AuthorisedValues %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Holds queue @@ -77,7 +78,7 @@ $(document).ready(function() { [% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %] [% ItemTypes.GetDescription( itemsloo.itype ) %] - [% itemsloo.location %] [% itemsloo.itemcallnumber %] + [% IF ( itemsloo.location ) %][% AuthorisedValues.GetByCode( 'LOC', itemsloo.location ) %] [% END %][% itemsloo.itemcallnumber %] [% itemsloo.copynumber %] [% itemsloo.enumchron %] @@ -88,7 +89,7 @@ $(document).ready(function() { [% END %]

[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])

[% itemsloo.phone %]

- [% itemsloo.pickbranch %] + [% Branches.GetName( itemsloo.pickbranch ) %] [% itemsloo.reservedate | $KohaDates %] [% itemsloo.notes %] -- 1.9.1