Lines 406-416
sub MapItemsToHoldRequests {
Link Here
|
406 |
return unless scalar(@$hold_requests) > 0; |
406 |
return unless scalar(@$hold_requests) > 0; |
407 |
return unless scalar(@$available_items) > 0; |
407 |
return unless scalar(@$available_items) > 0; |
408 |
|
408 |
|
409 |
# identify item-level requests |
|
|
410 |
my %specific_items_requested = map { $_->{itemnumber} => 1 } |
411 |
grep { defined($_->{itemnumber}) } |
412 |
@$hold_requests; |
413 |
|
414 |
map { $_->{_object} = Koha::Items->find( $_->{itemnumber} ) } @$available_items; |
409 |
map { $_->{_object} = Koha::Items->find( $_->{itemnumber} ) } @$available_items; |
415 |
my $libraries = {}; |
410 |
my $libraries = {}; |
416 |
map { $libraries->{$_->id} = $_ } Koha::Libraries->search->as_list; |
411 |
map { $libraries->{$_->id} = $_ } Koha::Libraries->search->as_list; |
417 |
- |
|
|