+if ($src eq 'circ') { # if we were called from circulation, use the circulation menu and get data to populate it -fbcit
+ use C4::Members;
+ my $borrowernumber = $object;
+ my $data = GetMember('borrowernumber'=>$borrowernumber);
+ my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
+ $template->param( picture => 1 ) if $picture;
+ $template->param( menu => 1,
+ title => $data->{'title'},
+ initials => $data->{'initials'},
+ surname => $data->{'surname'},
+ borrowernumber => $borrowernumber,
+ firstname => $data->{'firstname'},
+ cardnumber => $data->{'cardnumber'},
+ categorycode => $data->{'categorycode'},
+ categoryname => $data->{'description'},
+ address => $data->{'address'},
+ address2 => $data->{'address2'},
+ city => $data->{'city'},
+ state => $data->{'state'},
+ zipcode => $data->{'zipcode'},
+ phone => $data->{'phone'},
+ phonepro => $data->{'phonepro'},
+ email => $data->{'email'},
+ branchcode => $data->{'branchcode'},
+ branchname => GetBranchName($data->{'branchcode'}),
+ );
+}
+
+$template->param(
+ DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
+ dateformat => C4::Dates->new()->format(),
+ debug => $debug,
+ C4::Search::enabled_staff_search_views,
+);
+