Lines 106-113
if ($add){
Link Here
|
106 |
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' ); |
106 |
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' ); |
107 |
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); |
107 |
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); |
108 |
$template->param( picture => 1 ) if $picture; |
108 |
$template->param( picture => 1 ) if $picture; |
109 |
my $attributes = GetBorrowerAttributes($borrowernumber); |
|
|
110 |
|
109 |
|
|
|
110 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
111 |
my $attributes = GetBorrowerAttributes($borrowernumber); |
112 |
$template->param( |
113 |
ExtendedPatronAttributes => 1, |
114 |
extendedattributes => $attributes |
115 |
); |
116 |
} |
111 |
$template->param( |
117 |
$template->param( |
112 |
borrowernumber => $borrowernumber, |
118 |
borrowernumber => $borrowernumber, |
113 |
firstname => $data->{'firstname'}, |
119 |
firstname => $data->{'firstname'}, |
Lines 127-133
if ($add){
Link Here
|
127 |
branchcode => $data->{'branchcode'}, |
133 |
branchcode => $data->{'branchcode'}, |
128 |
branchname => GetBranchName($data->{'branchcode'}), |
134 |
branchname => GetBranchName($data->{'branchcode'}), |
129 |
is_child => ($data->{'category_type'} eq 'C'), |
135 |
is_child => ($data->{'category_type'} eq 'C'), |
130 |
extendedattributes => $attributes, |
|
|
131 |
); |
136 |
); |
132 |
output_html_with_http_headers $input, $cookie, $template->output; |
137 |
output_html_with_http_headers $input, $cookie, $template->output; |
133 |
} |
138 |
} |