+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->{'borrowernumber'});
+ $template->param( picture => 1 ) if $picture;
+
+ $template->param( menu => 1,
+ title => $data->{'title'},
+ initials => $data->{'initials'},
+ surname => $data->{'surname'},
+ othernames => $data->{'othernames'},
+ borrowernumber => $borrowernumber,
+ firstname => $data->{'firstname'},
+ cardnumber => $data->{'cardnumber'},
+ categorycode => $data->{'categorycode'},
+ category_type => $data->{'category_type'},
+ 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'}),
+ RoutingSerials => C4::Context->preference('RoutingSerials'),
+ );
+}
+
+$template->param(
+ debug => $debug,
+ C4::Search::enabled_staff_search_views,
+);
+