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

(-)a/reserve/placerequest.pl (-6 / +9 lines)
Lines 97-110 if ( $type eq 'str8' && $borrower ) { Link Here
97
97
98
        if ($multi_hold) {
98
        if ($multi_hold) {
99
            my $bibinfo = $bibinfos{$biblionumber};
99
            my $bibinfo = $bibinfos{$biblionumber};
100
            AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber],
100
            if ( CanBookBeReserved($borrower->{'borrowernumber'}, $biblionumber)->{status} eq 'OK' ) {
101
                       $bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found);
101
                AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber],
102
                           $bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found);
103
            }
102
        } else {
104
        } else {
103
            # place a request on 1st available
105
            # place a request on 1st available
104
            for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) {
106
            for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) {
105
                AddReserve( $branch, $borrower->{'borrowernumber'},
107
                if ( CanBookBeReserved($borrower->{'borrowernumber'}, $biblionumber)->{status} eq 'OK' ) {
106
                    $biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title,
108
                    AddReserve( $branch, $borrower->{'borrowernumber'},
107
                    $checkitem, $found, $itemtype );
109
                        $biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title,
110
                        $checkitem, $found, $itemtype );
111
                }
108
            }
112
            }
109
        }
113
        }
110
    }
114
    }
111
- 

Return to bug 17978