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

(-)a/C4/Reserves.pm (-1 / +5 lines)
Lines 298-303 sub CanBookBeReserved{ Link Here
298
  if ($canReserve->{status} eq 'OK') { #We can reserve this Item! }
298
  if ($canReserve->{status} eq 'OK') { #We can reserve this Item! }
299
299
300
@RETURNS { status => OK },              if the Item can be reserved.
300
@RETURNS { status => OK },              if the Item can be reserved.
301
         { status => onShelfHoldsNotAllowed },  if onShelfHoldsAllowed parameter and item availability combination doesn't allow holds.
301
         { status => ageRestricted },   if the Item is age restricted for this borrower.
302
         { status => ageRestricted },   if the Item is age restricted for this borrower.
302
         { status => damaged },         if the Item is damaged.
303
         { status => damaged },         if the Item is damaged.
303
         { status => cannotReserveFromOtherBranches }, if syspref 'canreservefromotherbranches' is OK.
304
         { status => cannotReserveFromOtherBranches }, if syspref 'canreservefromotherbranches' is OK.
Lines 330-335 sub CanItemBeReserved { Link Here
330
      if ( $item->{damaged}
331
      if ( $item->{damaged}
331
        && !C4::Context->preference('AllowHoldsOnDamagedItems') );
332
        && !C4::Context->preference('AllowHoldsOnDamagedItems') );
332
333
334
    # Check for item on shelves and OnShelfHoldsAllowed
335
    return { status => 'onShelfHoldsNotAllowed' }
336
      unless ( IsAvailableForItemLevelRequest($item,$borrower) );
337
333
    # Check for the age restriction
338
    # Check for the age restriction
334
    my ( $ageRestriction, $daysToAgeRestriction ) =
339
    my ( $ageRestriction, $daysToAgeRestriction ) =
335
      C4::Circulation::GetAgeRestriction( $biblio->biblioitem->agerestriction, $borrower );
340
      C4::Circulation::GetAgeRestriction( $biblio->biblioitem->agerestriction, $borrower );
336
- 

Return to bug 20985