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

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

Return to bug 20985