use C4::Debug;
use Koha::DateUtils;
+use Koha::Patrons;
use Koha::Patron::Files;
-use Koha::Patron::Images;
my $cgi = CGI->new;
print $file->{'file_content'};
}
else {
- my $data = GetMember( borrowernumber => $borrowernumber );
- $template->param(%$data);
+ my $patron = Koha::Patrons->find( $borrowernumber );
+ $template->param(%{ $patron->unblessed});
my %errors;
}
$template->param(
- categoryname => $data->{'description'},
+ categoryname => $patron->category->description,
RoutingSerials => C4::Context->preference('RoutingSerials'),
);
);
}
- my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
- $template->param( picture => 1 ) if $patron_image;
+ $template->param( picture => 1 ) if $patron->image;
$template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' || $data->{category_type} eq 'I' );
$template->param(