Lines 578-587
foreach my $biblionumber (@biblionumbers) {
Link Here
|
578 |
) |
578 |
) |
579 |
{ |
579 |
{ |
580 |
# Send the pickup locations count to the UI, the pickup locations will be pulled using the API |
580 |
# Send the pickup locations count to the UI, the pickup locations will be pulled using the API |
581 |
$item->{pickup_locations_count} = $item_object->pickup_locations({ patron => $patron })->count; |
581 |
my $pickup_locations = $item_object->pickup_locations({ patron => $patron }); |
|
|
582 |
$item->{pickup_locations_count} = $pickup_locations->count; |
582 |
if ( $item->{pickup_locations_count} > 0 ) { |
583 |
if ( $item->{pickup_locations_count} > 0 ) { |
583 |
$num_available++; |
584 |
$num_available++; |
584 |
$item->{available} = 1; |
585 |
$item->{available} = 1; |
|
|
586 |
# pass the holding branch for use as default |
587 |
my $default_pickup_location = $pickup_locations->search({ branchcode => $item->{holdingbranch} })->next; |
588 |
$item->{default_pickup_location} = $default_pickup_location; |
585 |
} |
589 |
} |
586 |
else { |
590 |
else { |
587 |
$item->{available} = 0; |
591 |
$item->{available} = 0; |
588 |
- |
|
|