From 99d057a87676958fc4ae279db116d520632dcd8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Wed, 26 Aug 2009 01:44:22 +0200 Subject: [PATCH] (bug #3349) Display full borrower address This patch fixes the truncated address in /circ/circulation.pl Signed-off-by: Galen Charlton --- circ/circulation.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 398fdd2309..00991ad846 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -659,6 +659,9 @@ if($lib_messages_loop){ $template->param(flagged => 1 ); } my $bor_messages_loop = GetMessages( $borrowernumber, 'B', $branch ); if($bor_messages_loop){ $template->param(flagged => 1 ); } +# 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, @@ -678,7 +681,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.39.5