Lines 107-120
if ( $type eq 'str8' && $borrower ) {
Link Here
|
107 |
|
107 |
|
108 |
if ($multi_hold) { |
108 |
if ($multi_hold) { |
109 |
my $bibinfo = $bibinfos{$biblionumber}; |
109 |
my $bibinfo = $bibinfos{$biblionumber}; |
110 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber], |
110 |
my $hold_id = AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber], |
111 |
$bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found); |
111 |
$bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found); |
|
|
112 |
Koha::Holds->find( $hold_id )->set_waiting if $found eq 'W'; |
112 |
} else { |
113 |
} else { |
113 |
# place a request on 1st available |
114 |
# place a request on 1st available |
114 |
for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) { |
115 |
for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) { |
115 |
AddReserve( $branch, $borrower->{'borrowernumber'}, |
116 |
my $hold_id = AddReserve( $branch, $borrower->{'borrowernumber'}, |
116 |
$biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title, |
117 |
$biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title, |
117 |
$checkitem, $found, $itemtype ); |
118 |
$checkitem, $found, $itemtype ); |
|
|
119 |
Koha::Holds->find( $hold_id )->set_waiting if $found eq 'W'; |
118 |
} |
120 |
} |
119 |
} |
121 |
} |
120 |
} |
122 |
} |
121 |
- |
|
|