Lines 1241-1248
sub IsAvailableForItemLevelRequest {
Link Here
|
1241 |
$item->withdrawn || |
1241 |
$item->withdrawn || |
1242 |
($item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems')); |
1242 |
($item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems')); |
1243 |
|
1243 |
|
1244 |
my $on_shelf_holds = Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => $patron } ); |
|
|
1245 |
|
1246 |
if ($pickup_branchcode) { |
1244 |
if ($pickup_branchcode) { |
1247 |
my $destination = Koha::Libraries->find($pickup_branchcode); |
1245 |
my $destination = Koha::Libraries->find($pickup_branchcode); |
1248 |
return 0 unless $destination; |
1246 |
return 0 unless $destination; |
Lines 1256-1261
sub IsAvailableForItemLevelRequest {
Link Here
|
1256 |
return 0 unless $branchitemrule->{hold_fulfillment_policy} ne 'holdgroup' || $home_library->validate_hold_sibling( {branchcode => $pickup_branchcode} ); |
1254 |
return 0 unless $branchitemrule->{hold_fulfillment_policy} ne 'holdgroup' || $home_library->validate_hold_sibling( {branchcode => $pickup_branchcode} ); |
1257 |
} |
1255 |
} |
1258 |
|
1256 |
|
|
|
1257 |
my $on_shelf_holds = Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => $patron } ); |
1258 |
|
1259 |
if ( $on_shelf_holds == 1 ) { |
1259 |
if ( $on_shelf_holds == 1 ) { |
1260 |
return 1; |
1260 |
return 1; |
1261 |
} elsif ( $on_shelf_holds == 2 ) { |
1261 |
} elsif ( $on_shelf_holds == 2 ) { |
1262 |
- |
|
|