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

(-)a/C4/Reserves.pm (-5 / +4 lines)
Lines 491-503 sub CanItemBeReserved { Link Here
491
    #         or something similar - need to be
491
    #         or something similar - need to be
492
    #         consolidated
492
    #         consolidated
493
    my $itemtype = $item->effective_itemtype;
493
    my $itemtype = $item->effective_itemtype;
494
    return { status => 'missing_itemtype' }
494
    return _cache { status => 'missing_itemtype' }
495
        unless defined $itemtype;
495
        unless defined $itemtype;
496
    my $notforloan_per_itemtype = Koha::ItemTypes->find($itemtype)->notforloan;
496
    my $notforloan_per_itemtype = Koha::ItemTypes->find($itemtype)->notforloan;
497
497
498
    return { status => 'notforloan' } if ( $item->notforloan > 0 || $notforloan_per_itemtype );
498
    return _cache { status => 'notforloan' } if ( $item->notforloan > 0 || $notforloan_per_itemtype );
499
    return { status => 'itemlost' }   if $item->itemlost;
499
    return _cache { status => 'itemlost' }   if $item->itemlost;
500
    return { status => 'withdrawn' }  if $item->withdrawn;
500
    return _cache { status => 'withdrawn' }  if $item->withdrawn;
501
501
502
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
502
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
503
    return _cache { status => 'damaged' }
503
    return _cache { status => 'damaged' }
504
- 

Return to bug 32702