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