|
Lines 597-606
sub MapItemsToHoldRequests {
Link Here
|
| 597 |
my $holding_branch_items = $items_by_branch{$holdingbranch}; |
597 |
my $holding_branch_items = $items_by_branch{$holdingbranch}; |
| 598 |
foreach my $item (@$holding_branch_items) { |
598 |
foreach my $item (@$holding_branch_items) { |
| 599 |
next if $request->{borrowerbranch} ne $item->{$priority_branch}; |
599 |
next if $request->{borrowerbranch} ne $item->{$priority_branch}; |
| 600 |
next unless $items_by_itemnumber{ $item->{itemnumber} }->{_object}->can_be_transferred( { to => $libraries->{ $request->{branchcode} } } ); |
|
|
| 601 |
|
| 602 |
# Don't fill item level holds that contravene the hold pickup policy at this time |
| 603 |
next unless _checkHoldPolicy($item, $request); |
| 604 |
|
600 |
|
| 605 |
# If hold itemtype is set, item's itemtype must match |
601 |
# If hold itemtype is set, item's itemtype must match |
| 606 |
next unless ( !$request->{itemtype} |
602 |
next unless ( !$request->{itemtype} |
|
Lines 613-618
sub MapItemsToHoldRequests {
Link Here
|
| 613 |
&& $item->{_object}->item_group->id eq $request->{item_group_id} ) |
609 |
&& $item->{_object}->item_group->id eq $request->{item_group_id} ) |
| 614 |
); |
610 |
); |
| 615 |
|
611 |
|
|
|
612 |
# Don't fill a hold with a non-transferrable item |
| 613 |
next unless $items_by_itemnumber{ $item->{itemnumber} }->{_object}->can_be_transferred( { to => $libraries->{ $request->{branchcode} } } ); |
| 614 |
|
| 615 |
# Don't fill item level holds that contravene the hold pickup policy at this time |
| 616 |
next unless _checkHoldPolicy($item, $request); |
| 617 |
|
| 616 |
$itemnumber = $item->{itemnumber}; |
618 |
$itemnumber = $item->{itemnumber}; |
| 617 |
last; |
619 |
last; |
| 618 |
} |
620 |
} |
| 619 |
- |
|
|