X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=members%2Fnotices.pl;h=f7e1f709c6164de644ecc141f8611309450e6932;hb=3ea6e78909112c4e636e6ad0bc7f593e60b9338a;hp=6861825a9ed63f35598b31213589eaf615f0a739;hpb=a6c9bd0eb55c32d5632625144775271f20aa15f7;p=koha.git diff --git a/members/notices.pl b/members/notices.pl index 6861825a9e..f7e1f709c6 100755 --- a/members/notices.pl +++ b/members/notices.pl @@ -29,7 +29,6 @@ use C4::Branch; use C4::Letters; use C4::Members::Attributes qw(GetBorrowerAttributes); -use C4::Dates qw/format_date/; my $input=new CGI; @@ -52,7 +51,6 @@ $template->param( picture => 1 ) if $picture; # Getting the messages my $queued_messages = C4::Letters::GetQueuedMessages({borrowernumber => $borrowernumber}); -$template->param( %{$borrower} ); if (C4::Context->preference('ExtendedPatronAttributes')) { my $attributes = GetBorrowerAttributes($borrowernumber); @@ -62,19 +60,16 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { ); } -# Computes full borrower address -my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $borrower->{'streettype'} ); -my $address = $borrower->{'streetnumber'} . " $roadtype " . $borrower->{'address'}; +$template->param(%$borrower); $template->param( - QUEUED_MESSAGES => $queued_messages, - borrowernumber => $borrowernumber, - sentnotices => 1, - branchname => GetBranchName($borrower->{'branchcode'}), - categoryname => $borrower->{'description'}, - address => $address, - activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), - RoutingSerials => C4::Context->preference('RoutingSerials'), + QUEUED_MESSAGES => $queued_messages, + borrowernumber => $borrowernumber, + sentnotices => 1, + branchname => GetBranchName($borrower->{'branchcode'}), + categoryname => $borrower->{'description'}, + activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), + RoutingSerials => C4::Context->preference('RoutingSerials'), ); output_html_with_http_headers $input, $cookie, $template->output;