View | Details | Raw Unified | Return to bug 12892
Collapse All | Expand All

(-)a/circ/circulation.pl (-3 / +27 lines)
Lines 390-397 if ($borrowernumber) { Link Here
390
    $template->param(
390
    $template->param(
391
        holds_count => Koha::Database->new()->schema()->resultset('Reserve')
391
        holds_count => Koha::Database->new()->schema()->resultset('Reserve')
392
          ->count( { borrowernumber => $borrowernumber } ) );
392
          ->count( { borrowernumber => $borrowernumber } ) );
393
393
    my @borrowerreserv = GetReservesFromBorrowernumber($borrowernumber);
394
    $template->param( adultborrower => 1 ) if ( $borrower->{'category_type'} eq 'A' );
394
395
    my @WaitingReserveLoop;
396
    foreach my $num_res (@borrowerreserv) {
397
        if ( $num_res->{'found'} && $num_res->{'found'} eq 'W' ) {
398
            my $getiteminfo  = GetBiblioFromItemNumber( $num_res->{'itemnumber'} );
399
            my $itemtypeinfo = getitemtypeinfo( (C4::Context->preference('item-level_itypes')) ? $getiteminfo->{'itype'} : $getiteminfo->{'itemtype'} );
400
            my %getWaitingReserveInfo;
401
            $getWaitingReserveInfo{title} = $getiteminfo->{'title'};
402
            $getWaitingReserveInfo{biblionumber} =
403
              $getiteminfo->{'biblionumber'};
404
            $getWaitingReserveInfo{itemtype} = $itemtypeinfo->{'description'};
405
            $getWaitingReserveInfo{author}   = $getiteminfo->{'author'};
406
            $getWaitingReserveInfo{itemcallnumber} =
407
              $getiteminfo->{'itemcallnumber'};
408
            $getWaitingReserveInfo{reservedate} =
409
              format_date( $num_res->{'reservedate'} );
410
            $getWaitingReserveInfo{waitingat} =
411
              GetBranchName( $num_res->{'branchcode'} );
412
            $getWaitingReserveInfo{waitinghere} = 1
413
              if $num_res->{'branchcode'} eq $branch;
414
            push( @WaitingReserveLoop, \%getWaitingReserveInfo );
415
        }
416
    }
417
    $template->param( WaitingReserveLoop => \@WaitingReserveLoop );
418
    $template->param( adultborrower => 1 )
419
      if ( $borrower->{'category_type'} eq 'A' );
395
}
420
}
396
421
397
my @values;
422
my @values;
398
- 

Return to bug 12892