|
Lines 3269-3277
sub CanBookBeRenewed {
Link Here
|
| 3269 |
} |
3269 |
} |
| 3270 |
|
3270 |
|
| 3271 |
# There is an item level hold on this item, no other item can fill the hold |
3271 |
# There is an item level hold on this item, no other item can fill the hold |
| 3272 |
# The flag skip_future_holds may be removed in the future. See bug 40435. |
3272 |
# The flag skip_future_holds is set when preference FutureHoldsBlockRenewals is not set (default). |
|
|
3273 |
# (Historically, Koha does not block renewals for future holds. Could be argued.) |
| 3274 |
my $skip = C4::Context->preference('FutureHoldsBlockRenewals') ? 0 : 1; |
| 3273 |
return ( 0, "on_reserve" ) |
3275 |
return ( 0, "on_reserve" ) |
| 3274 |
if ( $item->current_holds( { skip_future_holds => 1 } )->search( { non_priority => 0 } )->count ); |
3276 |
if ( $item->current_holds( { skip_future_holds => $skip } )->search( { non_priority => 0 } )->count ); |
| 3275 |
|
3277 |
|
| 3276 |
my ( $status, $matched_reserve, $possible_holds ) = C4::Reserves::CheckReserves($item); |
3278 |
my ( $status, $matched_reserve, $possible_holds ) = C4::Reserves::CheckReserves($item); |
| 3277 |
my @fillable_holds = (); |
3279 |
my @fillable_holds = (); |