}
}
-$borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} );
-$borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} );
-$borr->{'dateofbirth'} = format_date( $borr->{'dateofbirth'} );
$borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} );
$borr->{'branchname'} = GetBranchName($borr->{'branchcode'});
$borr->{"items_borrowed_$_"} = 1;
}
+if (C4::Context->preference('OPACpatronimages')) {
+ my ($image, $dberror) = GetPatronImage($borr->{'cardnumber'});
+ if ($image) {
+ $template->param(
+ display_patron_image => 1
+ );
+ }
+}
+
my @bordat;
$bordat[0] = $borr;