8 use C4::Circulation::Circ2;
11 use C4::Interface::CGI::Output;
15 my ($template, $borrowernumber, $cookie)
16 = get_template_and_user({template_name => "opac-userdetails.tmpl",
20 flagsrequired => {borrow => 1},
24 # get borrower information ....
25 my ($borr, $flags) = getpatroninformation(undef, $borrowernumber);
27 $borr->{'dateenrolled'} = format_date($borr->{'dateenrolled'});
28 $borr->{'expiry'} = format_date($borr->{'expiry'});
29 $borr->{'dateofbirth'} = format_date($borr->{'dateofbirth'});
30 $borr->{'ethnicity'} = fixEthnicity($borr->{'ethnicity'});
33 $template->param($borr);
35 output_html_with_http_headers $query, $cookie, $template->output;