[Koha-patches] [PATCH] [3.0.x](bug #3349) Display full borrower address

Jean-André Santoni jeanandre.santoni at biblibre.com
Tue Jul 7 12:21:44 CEST 2009


This patch fixes the truncated address in /circ/circulation.pl
---
 circ/circulation.pl |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/circ/circulation.pl b/circ/circulation.pl
index 986b10c..51a3a09 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -641,6 +641,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,
@@ -656,7 +660,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'},
-- 
1.6.0.4




More information about the Koha-patches mailing list