Lines 397-402
sub MapItemsToHoldRequests {
Link Here
|
397 |
C4::Context->preference('LocalHoldsPriorityItemControl'); |
397 |
C4::Context->preference('LocalHoldsPriorityItemControl'); |
398 |
|
398 |
|
399 |
foreach my $request (@$hold_requests) { |
399 |
foreach my $request (@$hold_requests) { |
|
|
400 |
next if (defined($request->{itemnumber})); #skip item level holds in local priority checking |
400 |
last if $num_items_remaining == 0; |
401 |
last if $num_items_remaining == 0; |
401 |
|
402 |
|
402 |
my $local_hold_match; |
403 |
my $local_hold_match; |
Lines 435-440
sub MapItemsToHoldRequests {
Link Here
|
435 |
reservenotes => $request->{reservenotes}, |
436 |
reservenotes => $request->{reservenotes}, |
436 |
}; |
437 |
}; |
437 |
$allocated_items{ $item->{itemnumber} }++; |
438 |
$allocated_items{ $item->{itemnumber} }++; |
|
|
439 |
$request->{allocated} = 1; |
438 |
$num_items_remaining--; |
440 |
$num_items_remaining--; |
439 |
} |
441 |
} |
440 |
} |
442 |
} |
Lines 444-449
sub MapItemsToHoldRequests {
Link Here
|
444 |
|
446 |
|
445 |
foreach my $request (@$hold_requests) { |
447 |
foreach my $request (@$hold_requests) { |
446 |
last if $num_items_remaining == 0; |
448 |
last if $num_items_remaining == 0; |
|
|
449 |
next if $request->{allocated}; |
447 |
|
450 |
|
448 |
# is this an item-level request? |
451 |
# is this an item-level request? |
449 |
if (defined($request->{itemnumber})) { |
452 |
if (defined($request->{itemnumber})) { |
Lines 494-499
sub MapItemsToHoldRequests {
Link Here
|
494 |
my $pull_branches; |
497 |
my $pull_branches; |
495 |
foreach my $request (@$hold_requests) { |
498 |
foreach my $request (@$hold_requests) { |
496 |
last if $num_items_remaining == 0; |
499 |
last if $num_items_remaining == 0; |
|
|
500 |
next if $request->{allocated}; |
497 |
next if defined($request->{itemnumber}); # already handled these |
501 |
next if defined($request->{itemnumber}); # already handled these |
498 |
|
502 |
|
499 |
# look for local match first |
503 |
# look for local match first |
500 |
- |
|
|