Lines 195-202
sub borrower_add_additional_fields {
Link Here
|
195 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
195 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
196 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
196 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
197 |
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; |
197 |
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; |
198 |
} elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) { |
|
|
199 |
$b_ref->{adultborrower} = 1; |
200 |
} |
198 |
} |
201 |
|
199 |
|
202 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
200 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
203 |
- |
|
|