|
Lines 136-141
sub add_accounts_to_template {
Link Here
|
| 136 |
|
136 |
|
| 137 |
$template->param(%$borrower); |
137 |
$template->param(%$borrower); |
| 138 |
|
138 |
|
|
|
139 |
my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'}); |
| 140 |
$template->param( picture => 1 ) if $picture; |
| 139 |
$template->param( |
141 |
$template->param( |
| 140 |
accounts => $accounts, |
142 |
accounts => $accounts, |
| 141 |
borrower => $borrower, |
143 |
borrower => $borrower, |
|
Lines 224-233
sub borrower_add_additional_fields {
Link Here
|
| 224 |
} elsif ( $b_ref->{category_type} eq 'A' ) { |
226 |
} elsif ( $b_ref->{category_type} eq 'A' ) { |
| 225 |
$b_ref->{adultborrower} = 1; |
227 |
$b_ref->{adultborrower} = 1; |
| 226 |
} |
228 |
} |
| 227 |
my ( $picture, $dberror ) = GetPatronImage( $b_ref->{borrowernumber} ); |
|
|
| 228 |
if ($picture) { |
| 229 |
$b_ref->{has_picture} = 1; |
| 230 |
} |
| 231 |
my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $borrower->{streettype} ); |
229 |
my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $borrower->{streettype} ); |
| 232 |
$b_ref->{roadtype} = $roadtype; |
230 |
$b_ref->{roadtype} = $roadtype; |
| 233 |
|
231 |
|