Lines 511-517
if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold )
Link Here
|
511 |
# Send the pickup locations count to the UI, the pickup locations will be pulled using the API |
511 |
# Send the pickup locations count to the UI, the pickup locations will be pulled using the API |
512 |
my $pickup_locations = $item_object->pickup_locations({ patron => $patron }); |
512 |
my $pickup_locations = $item_object->pickup_locations({ patron => $patron }); |
513 |
$item->{pickup_locations_count} = $pickup_locations->count; |
513 |
$item->{pickup_locations_count} = $pickup_locations->count; |
514 |
if ( $item->{pickup_locations_count} > 0 ) { |
514 |
if ( $item->{pickup_locations_count} > 0 || C4::Context->preference('AllowHoldPolicyOverride') ) { |
515 |
$num_items_available++; |
515 |
$num_items_available++; |
516 |
$item->{available} = 1; |
516 |
$item->{available} = 1; |
517 |
# pass the holding branch for use as default |
517 |
# pass the holding branch for use as default |
Lines 533-539
if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold )
Link Here
|
533 |
my @pickup_locations = $item_object->pickup_locations({ patron => $patron })->as_list; |
533 |
my @pickup_locations = $item_object->pickup_locations({ patron => $patron })->as_list; |
534 |
$item->{pickup_locations_count} = scalar @pickup_locations; |
534 |
$item->{pickup_locations_count} = scalar @pickup_locations; |
535 |
|
535 |
|
536 |
if ( @pickup_locations ) { |
536 |
if ( @pickup_locations || C4::Context->preference('AllowHoldPolicyOverride') ) { |
537 |
$num_items_available++; |
537 |
$num_items_available++; |
538 |
$item->{override} = 1; |
538 |
$item->{override} = 1; |
539 |
|
539 |
|
540 |
- |
|
|