From 49aef7ef7a1c6f41c9e3ed9094cdd6ff9a76ab85 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 17 Feb 2016 18:47:52 -0500 Subject: [PATCH] [SIGNED-OFF] Bug 15672 - Show descriptions instead of codes on the hold ratios report This patch revises the hold ratios report so that it uses template plugins to display descriptions instead of codes for item holding branch, item home branch, item type, and library name. To test you should have multiple items on the hold ratio report (set the ratio to a small number to increase the number of results). It should include one or more items which have a shelving location set. View the hold ratios report and confirm that library names, shelving location descriptions, and item type descriptions are shown instead of codes. Signed-off-by: Nicole C Engard --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt index 67f4226..4ad8821 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt @@ -1,4 +1,7 @@ [% USE KohaDates %] +[% USE AuthorisedValues %] +[% USE Branches %] +[% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Hold ratios [% INCLUDE 'doc-head-close.inc' %] @@ -72,10 +75,10 @@

[% reserveloo.thisratio %]

[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %][% reserveloo.title |html %] [% IF ( reserveloo.subtitle ) %][% FOREACH subtitl IN reserveloo.subtitle %][% subtitl.subfield %][% END %][% END %][% IF ( reserveloo.author ) %] by [% reserveloo.author %][% END %] -

[% reserveloo.homebranch_list %]

-

[% reserveloo.holdingbranch_list %]

-

[% reserveloo.location %]

-

[% reserveloo.itype %]

+

[% Branches.GetName( reserveloo.homebranch_list ) %]

+

[% Branches.GetName( reserveloo.holdingbranch_list ) %]

+

[% AuthorisedValues.GetByCode( 'LOC', reserveloo.location )%]

+

[% ItemTypes.GetDescription( reserveloo.itype ) %]

[% reserveloo.listcall %]

[% IF ( reserveloo.thisratio_atleast1 ) %]

[% IF ( CAN_user_acquisition && basketno && booksellerid ) %][% END %][% reserveloo.ratiocalc %] to order[% IF ( CAN_user_acquisition && basketno && booksellerid ) %][% END %] [% IF ( reserveloo.pendingorders ) %]
[% reserveloo.pendingorders %] pending[% END %]

[% END %] -- 2.1.4