Lines 250-255
if ( $data->{dateofbirth} ) {
Link Here
|
250 |
$template->param( age => Koha::Patron->new({ dateofbirth => $data->{dateofbirth} })->get_age ); |
250 |
$template->param( age => Koha::Patron->new({ dateofbirth => $data->{dateofbirth} })->get_age ); |
251 |
} |
251 |
} |
252 |
|
252 |
|
|
|
253 |
# Check patron's category against age |
254 |
my $borrowercategory = Koha::Patron::Categories->find($data->{ 'categorycode' }); |
255 |
my ($low,$high) = ($borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit); |
256 |
if (($high && ($age > $high)) or ($age < $low)) { |
257 |
$template->param( age_limitations => 1 ); |
258 |
$template->param( age_low => $low ); |
259 |
$template->param( age_high => $high ); |
260 |
} |
261 |
|
262 |
|
253 |
### ############################################################################### |
263 |
### ############################################################################### |
254 |
# BUILD HTML |
264 |
# BUILD HTML |
255 |
# show all reserves of this borrower, and the position of the reservation .... |
265 |
# show all reserves of this borrower, and the position of the reservation .... |
256 |
- |
|
|