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

(-)a/C4/Reserves.pm (-2 / +7 lines)
Lines 391-396 sub CanBookBeReserved{ Link Here
391
         cannotReserveFromOtherBranches, if syspref 'canreservefromotherbranches' is OK.
391
         cannotReserveFromOtherBranches, if syspref 'canreservefromotherbranches' is OK.
392
         tooManyReserves, if the borrower has exceeded his maximum reserve amount.
392
         tooManyReserves, if the borrower has exceeded his maximum reserve amount.
393
         notReservable,   if holds on this item are not allowed
393
         notReservable,   if holds on this item are not allowed
394
         expired,         if patron is expired and expired patrons are not allowed to place holds
394
395
395
=cut
396
=cut
396
397
Lines 406-412 sub CanItemBeReserved { Link Here
406
    # item->{itype} will come for biblioitems if necessery
407
    # item->{itype} will come for biblioitems if necessery
407
    my $item       = GetItem($itemnumber);
408
    my $item       = GetItem($itemnumber);
408
    my $biblioData = C4::Biblio::GetBiblioData( $item->{biblionumber} );
409
    my $biblioData = C4::Biblio::GetBiblioData( $item->{biblionumber} );
409
    my $borrower   = C4::Members::GetMember( 'borrowernumber' => $borrowernumber );
410
    my $patron = Koha::Patrons->find($borrowernumber);
411
    my $borrower = $patron->unblessed;
412
413
    if ($patron->category->effective_BlockExpiredPatronOpacActions && $patron->is_expired) {
414
        return 'expired';
415
    }
410
416
411
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
417
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
412
    return 'damaged'
418
    return 'damaged'
413
- 

Return to bug 17229