Lines 457-465
if ($borrowernumber) {
Link Here
|
457 |
# show all reserves of this borrower, and the position of the reservation .... |
457 |
# show all reserves of this borrower, and the position of the reservation .... |
458 |
if ($borrowernumber) { |
458 |
if ($borrowernumber) { |
459 |
my $holds = Koha::Holds->search( { borrowernumber => $borrowernumber } ); |
459 |
my $holds = Koha::Holds->search( { borrowernumber => $borrowernumber } ); |
|
|
460 |
my $waiting_holds = $holds->waiting; |
460 |
$template->param( |
461 |
$template->param( |
461 |
holds_count => $holds->count(), |
462 |
holds_count => $holds->count(), |
462 |
WaitingHolds => scalar $holds->waiting(), |
463 |
WaitingHolds => $waiting_holds, |
463 |
); |
464 |
); |
464 |
|
465 |
|
465 |
$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' ); |
466 |
$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' ); |