From 05c13f12370df3b162064f487300944a34d5af81 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 4 Apr 2013 12:09:37 +0200 Subject: [PATCH] Bug 10090: display item type description instead of code on acq ordered and spent pages On ordered.pl and spent.pl, the itemtype codes are displayed, instead of descriptions. Links for the ordernumber should be changed. In ordered.pl, we are redirected to the receive page. In spent.pl, the links are deleted. Signed-off-by: Broust Revisited patch: The link to orderreceive was broken, so I undo the changes. Signed-off-by: Katrin Fischer Works alright, itemtype descriptions are shown. The removed link was potentially 'dangerous' as you shouldn't get to the receive page for an order, without providing an invoicenumber first. Passes all tests and QA script. Signed-off-by: Galen Charlton (cherry picked from commit 378bffa0ddbe793dff75a828e2bf5b03ad666b57) Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit da6b078cf415eb2164910b5392848004c41b1d62) --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt index 23441f885c..858ef5b0cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt @@ -1,4 +1,5 @@ [% USE KohaDates %] +[% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Ordered @@ -68,7 +69,7 @@ [% order.booksellerid %] - [% order.itype %] + [% ItemTypes.GetDescription( order.itype ) %] [% order.left %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt index d6a6b21b1e..842d934fa1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt @@ -1,4 +1,5 @@ [% USE KohaDates %] +[% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Spent @@ -62,7 +63,7 @@ [% order.title %] - [% order.ordernumber %] + [% order.ordernumber %] [% order.booksellerid %] @@ -71,7 +72,7 @@ [% order.invoicenumber %] - [% order.itype %] + [% ItemTypes.GetDescription( order.itype ) %] [% order.quantityreceived %] -- 2.39.5