|
Lines 349-357
sub GetItemsAvailableToFillHoldRequestsForBib {
Link Here
|
| 349 |
$sth->execute(@params); |
349 |
$sth->execute(@params); |
| 350 |
|
350 |
|
| 351 |
my $itm = $sth->fetchall_arrayref({}); |
351 |
my $itm = $sth->fetchall_arrayref({}); |
| 352 |
my @items = grep { ! scalar GetTransfers($_->{itemnumber}) } @$itm; |
352 |
my @items = grep { ! scalar C4::Circulation::GetTransfers($_->{itemnumber}) } @$itm; |
| 353 |
return [ grep { |
353 |
return [ grep { |
| 354 |
my $rule = GetBranchItemRule($_->{homebranch}, $_->{itype}); |
354 |
my $rule = C4::Circulation::GetBranchItemRule($_->{homebranch}, $_->{itype}); |
| 355 |
$_->{holdallowed} = $rule->{holdallowed}; |
355 |
$_->{holdallowed} = $rule->{holdallowed}; |
| 356 |
$_->{hold_fulfillment_policy} = $rule->{hold_fulfillment_policy}; |
356 |
$_->{hold_fulfillment_policy} = $rule->{hold_fulfillment_policy}; |
| 357 |
} @items ]; |
357 |
} @items ]; |
| 358 |
- |
|
|