[Koha-patches] [PATCH] [3.0.x](bug #3349) Display full borrower address
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Wed Aug 26 01:44:22 CEST 2009
From: Jean-André Santoni <jeanandre.santoni at biblibre.com>
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 6d79124..bd68ebf 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -645,6 +645,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,
@@ -660,7 +664,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