From 01c509f37d06a25aa4409ad2cd05cb67eee73f77 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 30 Sep 2014 10:34:57 -0400 Subject: [PATCH] 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. Signed-off-by: Tomas Cohen Arazi --- .../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 cc2a694e7f..b2477065d7 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 %] -- 2.39.5