+ $template->param(
+ categoryname => $data->{'description'},
+ branchname => GetBranchName($data->{'branchcode'}),
+ RoutingSerials => C4::Context->preference('RoutingSerials'),
+ );
+
+ if (C4::Context->preference('ExtendedPatronAttributes')) {
+ my $attributes = GetBorrowerAttributes($borrowernumber);
+ $template->param(
+ ExtendedPatronAttributes => 1,
+ extendedattributes => $attributes
+ );
+ }
+
+ my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'});
+ $template->param( picture => 1 ) if $picture;
+
+ # Computes full borrower address
+ my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $data->{streettype} );
+ my $address = $data->{'streetnumber'} . " $roadtype " . $data->{'address'};
+