From da97c5eb79ddfacd663b29cf578ca7dbb390c0e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Tue, 7 Jul 2009 12:19:22 +0200 Subject: [PATCH] [3.0.x](bug #3349) Display full borrower address This patch fixes the truncated address in /circ/circulation.pl --- circ/circulation.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 40a48b1f77..fb4d013fd1 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -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'}, -- 2.20.1