|
Lines 131-136
sub get_items_that_can_fill {
Link Here
|
| 131 |
} |
131 |
} |
| 132 |
); |
132 |
); |
| 133 |
|
133 |
|
|
|
134 |
my @hold_not_allowed_itypes = Koha::CirculationRules->search( |
| 135 |
{ |
| 136 |
rule_name => 'holdallowed', |
| 137 |
branchcode => undef, |
| 138 |
categorycode => undef, |
| 139 |
rule_value => 0, |
| 140 |
} |
| 141 |
)->get_column('itemtype'); |
| 142 |
|
| 134 |
return Koha::Items->search( |
143 |
return Koha::Items->search( |
| 135 |
{ |
144 |
{ |
| 136 |
biblionumber => { in => \@biblionumbers }, |
145 |
biblionumber => { in => \@biblionumbers }, |
|
Lines 139-144
sub get_items_that_can_fill {
Link Here
|
| 139 |
notforloan => 0, |
148 |
notforloan => 0, |
| 140 |
onloan => undef, |
149 |
onloan => undef, |
| 141 |
itemnumber => { -not_in => [ @branchtransfers, @waiting_holds ] }, |
150 |
itemnumber => { -not_in => [ @branchtransfers, @waiting_holds ] }, |
|
|
151 |
itype => { -not_in => \@hold_not_allowed_itypes }, |
| 142 |
} |
152 |
} |
| 143 |
); |
153 |
); |
| 144 |
} |
154 |
} |
| 145 |
- |
|
|