Lines 235-241
sub borrower_add_additional_fields {
Link Here
|
235 |
if ( $b_ref->{category_type} eq 'C' ) { |
235 |
if ( $b_ref->{category_type} eq 'C' ) { |
236 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
236 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
237 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
237 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
238 |
$template->param( 'catcode' => $patron_categories->next ) if $patron_categories->count == 1; |
238 |
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; |
239 |
} elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) { |
239 |
} elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) { |
240 |
$b_ref->{adultborrower} = 1; |
240 |
$b_ref->{adultborrower} = 1; |
241 |
} |
241 |
} |