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

(-)a/opac/opac-reserve.pl (-5 / +4 lines)
Lines 264-270 if ( $query->param('place_reserve') ) { Link Here
264
      # holdingbranch, force the value $rank and $found.
264
      # holdingbranch, force the value $rank and $found.
265
        my $rank = $biblioData->{rank};
265
        my $rank = $biblioData->{rank};
266
        if ( $itemNum ne '' ) {
266
        if ( $itemNum ne '' ) {
267
            $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum ) eq 'OK';
267
            $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum, $branch ) eq 'OK';
268
            $rank = '0' unless C4::Context->preference('ReservesNeedReturns');
268
            $rank = '0' unless C4::Context->preference('ReservesNeedReturns');
269
            my $item = GetItem($itemNum);
269
            my $item = GetItem($itemNum);
270
            if ( $item->{'holdingbranch'} eq $branch ) {
270
            if ( $item->{'holdingbranch'} eq $branch ) {
Lines 273-279 if ( $query->param('place_reserve') ) { Link Here
273
            }
273
            }
274
        }
274
        }
275
        else {
275
        else {
276
            $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum ) eq 'OK';
276
            $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum, $branch ) eq 'OK';
277
277
278
            # Inserts a null into the 'itemnumber' field of 'reserves' table.
278
            # Inserts a null into the 'itemnumber' field of 'reserves' table.
279
            $itemNum = undef;
279
            $itemNum = undef;
Lines 529-535 foreach my $biblioNum (@biblionumbers) { Link Here
529
        my $policy_holdallowed = !$itemLoopIter->{already_reserved};
529
        my $policy_holdallowed = !$itemLoopIter->{already_reserved};
530
        $policy_holdallowed &&=
530
        $policy_holdallowed &&=
531
            IsAvailableForItemLevelRequest($itemInfo,$borr) &&
531
            IsAvailableForItemLevelRequest($itemInfo,$borr) &&
532
            CanItemBeReserved($borrowernumber,$itemNum) eq 'OK';
532
            CanItemBeReserved($borrowernumber,$itemNum,$branch) eq 'OK';
533
533
534
        if ($policy_holdallowed) {
534
        if ($policy_holdallowed) {
535
            if ( my $hold_allowed = OPACItemHoldsAllowed( $itemInfo, $borr ) ) {
535
            if ( my $hold_allowed = OPACItemHoldsAllowed( $itemInfo, $borr ) ) {
Lines 588-594 foreach my $biblioNum (@biblionumbers) { Link Here
588
        }
588
        }
589
    }
589
    }
590
590
591
    $biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum) eq 'OK';
591
    $biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum,$branch) eq 'OK';
592
592
593
    # For multiple holds per record, if a patron has previously placed a hold,
593
    # For multiple holds per record, if a patron has previously placed a hold,
594
    # the patron can only place more holds of the same type. That is, if the
594
    # the patron can only place more holds of the same type. That is, if the
595
- 

Return to bug 7614