[followup](bug #4051) add borrower "title", and complete address in csv
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Wed, 20 Jan 2010 09:06:15 +0000 (10:06 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 27 Jan 2010 13:14:48 +0000 (14:14 +0100)
this add the borrower title, and the complete address.

circ/overdue.pl

index 0b2780b..2e22e6d 100755 (executable)
@@ -116,7 +116,8 @@ $bornamefilter =~s/\?/\_/g;
 my $strsth="SELECT date_due,
   surname,
   firstname,
-  borrowers.address,
+  borrowers.title as borrowertitle,
+  CONCAT(borrowers.address, '\n', borrowers.address2) as address,
   borrowers.city,
   borrowers.zipcode,
   borrowers.phone,
@@ -162,6 +163,7 @@ while (my $data=$sth->fetchrow_hashref) {
         duedate        => format_date($data->{date_due}),
         surname        => $data->{surname},
         firstname      => $data->{firstname},
+        borrowertitle  => $data->{borrowertitle},
         borrowernumber => $data->{borrowernumber},
         barcode        => $data->{barcode},
         itemnum        => $data->{itemnumber},