Lines 243-249
$template->param( age => $age );
Link Here
|
243 |
my $borrowercategory = Koha::Patron::Categories->find($data->{ 'categorycode' }); |
243 |
my $borrowercategory = Koha::Patron::Categories->find($data->{ 'categorycode' }); |
244 |
my ($low,$high) = ($borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit); |
244 |
my ($low,$high) = ($borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit); |
245 |
if (($high && ($age > $high)) or ($age < $low)) { |
245 |
if (($high && ($age > $high)) or ($age < $low)) { |
246 |
$template->param( flagged => 1 ); |
|
|
247 |
$template->param( age_limitations => 1 ); |
246 |
$template->param( age_limitations => 1 ); |
248 |
$template->param( age_low => $low ); |
247 |
$template->param( age_low => $low ); |
249 |
$template->param( age_high => $high ); |
248 |
$template->param( age_high => $high ); |
250 |
- |
|
|