From af8aa1fd0e7db44db8a9583a31d08b19c6e43748 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 14 Aug 2015 12:20:43 +0200 Subject: [PATCH] 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 --- 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 -- 2.1.0