Bug 7482: overdues report downloads without names
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 1 Apr 2012 16:20:05 +0000 (18:20 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 4 Apr 2012 15:39:36 +0000 (17:39 +0200)
This patch is an alternate patch for the bug. Instead of having
one column 'name' for a concatenated first and last name it
adds 2 separate columns to the exported csv file.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
circ/overdue.pl

index a4cfa7a..56e0941 100755 (executable)
@@ -425,7 +425,7 @@ sub build_csv {
     my @lines = ();
 
     # build header ...
-    my @keys = qw /duedate title author borrowertitle name phone barcode email address address2 zipcode city country
+    my @keys = qw /duedate title author borrowertitle firstname surname phone barcode email address address2 zipcode city country
                 branchcode itemcallnumber biblionumber borrowernumber itemnum issuedate replacementprice streetnumber streettype/;
     my $csv = Text::CSV_XS->new();
     $csv->combine(@keys);