From 8c36815c80b76d3c92d67989c485c334e60c8850 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 14 Aug 2015 12:20:43 +0200 Subject: [PATCH] [SIGNED-OFF]Bug 3642 - New informations in overdues CSV export - add itemtype This patch adds record itemtype to overdues CSV export, from item or biblioitems depending on syspref "item-level_itypes" Test plan : - Go to overdues page : /cgi-bin/koha/circ/overdue.pl - Find some overdues - Click on "Download file of displayed overdues" - Open generated CSV => You see itemtype column with data Signed-off-by: Hector Castro Works as advertised. itemtype appered on CSV --- circ/overdue.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/circ/overdue.pl b/circ/overdue.pl index c8cf739..e3853da 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -270,6 +270,8 @@ if ($noreport) { items.barcode, items.homebranch, items.holdingbranch, + items.itype, + biblioitems.itemtype, biblio.title, biblio.author, borrowers.borrowernumber, @@ -371,6 +373,7 @@ if ($noreport) { replacementprice => $data->{replacementprice}, enumchron => $data->{enumchron}, patron_attr_value_loop => \@patron_attr_value_loop, + itemtype => C4::Context->preference('item-level_itypes') ? $data->{itype} : $data->{itemtype}, }; } @@ -441,6 +444,7 @@ sub build_csv { duedate title author + itemtype cardnumber borrowertitle firstname -- 1.7.10.4