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

(-)a/opac/opac-reserve.pl (-5 / +4 lines)
Lines 269-278 if ( $query->param('place_reserve') ) { Link Here
269
269
270
        my $rank = $biblioData->{rank};
270
        my $rank = $biblioData->{rank};
271
        if ( $itemNum ne '' ) {
271
        if ( $itemNum ne '' ) {
272
            $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum ) eq 'OK';
272
            $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum, $branch ) eq 'OK';
273
        }
273
        }
274
        else {
274
        else {
275
            $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum ) eq 'OK';
275
            $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum, $branch ) eq 'OK';
276
276
277
            # Inserts a null into the 'itemnumber' field of 'reserves' table.
277
            # Inserts a null into the 'itemnumber' field of 'reserves' table.
278
            $itemNum = undef;
278
            $itemNum = undef;
Lines 525-531 foreach my $biblioNum (@biblionumbers) { Link Here
525
        my $policy_holdallowed = !$itemLoopIter->{already_reserved};
525
        my $policy_holdallowed = !$itemLoopIter->{already_reserved};
526
        $policy_holdallowed &&=
526
        $policy_holdallowed &&=
527
            IsAvailableForItemLevelRequest($itemInfo,$patron_unblessed) &&
527
            IsAvailableForItemLevelRequest($itemInfo,$patron_unblessed) &&
528
            CanItemBeReserved($borrowernumber,$itemNum) eq 'OK';
528
            CanItemBeReserved( $borrowernumber, $itemNum, $branch ) eq 'OK';
529
529
530
        if ($policy_holdallowed) {
530
        if ($policy_holdallowed) {
531
            my $opac_hold_policy = Koha::IssuingRules->get_opacitemholds_policy( { item => $item, patron => $patron } );
531
            my $opac_hold_policy = Koha::IssuingRules->get_opacitemholds_policy( { item => $item, patron => $patron } );
Lines 585-591 foreach my $biblioNum (@biblionumbers) { Link Here
585
        }
585
        }
586
    }
586
    }
587
587
588
    $biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum) eq 'OK';
588
    $biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum,$branch) eq 'OK';
589
589
590
    # For multiple holds per record, if a patron has previously placed a hold,
590
    # For multiple holds per record, if a patron has previously placed a hold,
591
    # the patron can only place more holds of the same type. That is, if the
591
    # the patron can only place more holds of the same type. That is, if the
592
- 

Return to bug 7534