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