|
Lines 70-80
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
| 70 |
|
70 |
|
| 71 |
if ($src eq 'circ') { # if we were called from circulation, use the circulation menu and get data to populate it -fbcit |
71 |
if ($src eq 'circ') { # if we were called from circulation, use the circulation menu and get data to populate it -fbcit |
| 72 |
use C4::Members; |
72 |
use C4::Members; |
|
|
73 |
use C4::Members::Attributes qw(GetBorrowerAttributes); |
| 73 |
my $borrowernumber = $object; |
74 |
my $borrowernumber = $object; |
| 74 |
my $data = GetMember('borrowernumber'=>$borrowernumber); |
75 |
my $data = GetMember('borrowernumber'=>$borrowernumber); |
| 75 |
my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'}); |
76 |
my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'}); |
| 76 |
$template->param( picture => 1 ) if $picture; |
77 |
$template->param( picture => 1 ) if $picture; |
| 77 |
|
78 |
|
|
|
79 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
| 80 |
my $attributes = GetBorrowerAttributes($data->{'borrowernumber'}); |
| 81 |
$template->param( |
| 82 |
ExtendedPatronAttributes => 1, |
| 83 |
extendedattributes => $attributes |
| 84 |
); |
| 85 |
} |
| 86 |
|
| 87 |
# Computes full borrower address |
| 88 |
my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $data->{streettype} ); |
| 89 |
my $address = $data->{'streetnumber'} . " $roadtype " . $data->{'address'}; |
| 90 |
|
| 78 |
$template->param( menu => 1, |
91 |
$template->param( menu => 1, |
| 79 |
title => $data->{'title'}, |
92 |
title => $data->{'title'}, |
| 80 |
initials => $data->{'initials'}, |
93 |
initials => $data->{'initials'}, |
|
Lines 86-99
if ($src eq 'circ') { # if we were called from circulation, use the circulatio
Link Here
|
| 86 |
categorycode => $data->{'categorycode'}, |
99 |
categorycode => $data->{'categorycode'}, |
| 87 |
category_type => $data->{'category_type'}, |
100 |
category_type => $data->{'category_type'}, |
| 88 |
categoryname => $data->{'description'}, |
101 |
categoryname => $data->{'description'}, |
| 89 |
address => $data->{'address'}, |
102 |
address => $address, |
| 90 |
address2 => $data->{'address2'}, |
103 |
address2 => $data->{'address2'}, |
| 91 |
city => $data->{'city'}, |
104 |
city => $data->{'city'}, |
| 92 |
state => $data->{'state'}, |
105 |
state => $data->{'state'}, |
| 93 |
zipcode => $data->{'zipcode'}, |
106 |
zipcode => $data->{'zipcode'}, |
|
|
107 |
country => $data->{'country'}, |
| 94 |
phone => $data->{'phone'}, |
108 |
phone => $data->{'phone'}, |
| 95 |
phonepro => $data->{'phonepro'}, |
109 |
phonepro => $data->{'phonepro'}, |
|
|
110 |
mobile => $data->{'mobile'}, |
| 96 |
email => $data->{'email'}, |
111 |
email => $data->{'email'}, |
|
|
112 |
emailpro => $data->{'emailpro'}, |
| 97 |
branchcode => $data->{'branchcode'}, |
113 |
branchcode => $data->{'branchcode'}, |
| 98 |
branchname => GetBranchName($data->{'branchcode'}), |
114 |
branchname => GetBranchName($data->{'branchcode'}), |
| 99 |
RoutingSerials => C4::Context->preference('RoutingSerials'), |
115 |
RoutingSerials => C4::Context->preference('RoutingSerials'), |
| 100 |
- |
|
|