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

(-)a/reserve/request.pl (-5 / +7 lines)
Lines 428-441 foreach my $biblionumber (@biblionumbers) { Link Here
428
            }
428
            }
429
            
429
            
430
            if (IsAvailableForItemLevelRequest($itemnumber) and not $item->{cantreserve} and CanItemBeReserved($borrowerinfo->{borrowernumber}, $itemnumber) ) {
430
            if (IsAvailableForItemLevelRequest($itemnumber) and not $item->{cantreserve} and CanItemBeReserved($borrowerinfo->{borrowernumber}, $itemnumber) ) {
431
                if ( not $policy_holdallowed and C4::Context->preference( 'AllowHoldPolicyOverride' ) ) {
431
                if ( $policy_holdallowed ) {
432
                    $item->{override} = 1;
433
                    $num_override++;
434
                } elsif ( $policy_holdallowed ) {
435
                    $item->{available} = 1;
432
                    $item->{available} = 1;
436
                    $num_available++;
433
                    $num_available++;
437
                }
434
                }
438
            }
435
            }
436
            # If AllowHoldPolicyOverride is set, it should override EVERY restriction, not just branch item rules
437
            if (C4::Context->preference( 'AllowHoldPolicyOverride' ) ) {
438
                $item->{override} = 1;
439
                $num_override++;
440
            }   
441
439
            # If none of the conditions hold true, then neither override nor available is set and the item cannot be checked
442
            # If none of the conditions hold true, then neither override nor available is set and the item cannot be checked
440
            
443
            
441
            # FIXME: move this to a pm
444
            # FIXME: move this to a pm
442
- 

Return to bug 4449