[3.0.x](bug #3349) Display full borrower address
authorJean-André Santoni <jeanandre.santoni@biblibre.com>
Tue, 7 Jul 2009 10:19:22 +0000 (12:19 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 13 Jul 2009 10:43:40 +0000 (12:43 +0200)
This patch fixes the truncated address in /circ/circulation.pl

circ/circulation.pl

index 40a48b1..fb4d013 100755 (executable)
@@ -644,6 +644,10 @@ if ( C4::Context->preference("memberofinstitution") ) {
     );
 }
 
+# Computes full borrower address
+my (undef, $roadttype_hashref) = &GetRoadTypes();
+my $address = $borrower->{'streetnumber'}.' '.$roadttype_hashref->{$borrower->{'streettype'}}.' '.$borrower->{'address'};
+
 $template->param(
     issued_itemtypes_count_loop => \@issued_itemtypes_count_loop,
     findborrower                => $findborrower,
@@ -659,7 +663,7 @@ $template->param(
     expiry            => format_date($borrower->{'dateexpiry'}),
     categorycode      => $borrower->{'categorycode'},
     categoryname      => $borrower->{description},
-    address           => $borrower->{'address'},
+    address           => $address,
     address2          => $borrower->{'address2'},
     email             => $borrower->{'email'},
     emailpro          => $borrower->{'emailpro'},