Lines 421-427
foreach my $biblionumber (@biblionumbers) {
Link Here
|
421 |
( $biblioitem->{biblioitemnumber} => $biblioitem ) |
421 |
( $biblioitem->{biblioitemnumber} => $biblioitem ) |
422 |
} @{ Koha::Biblioitems->search( |
422 |
} @{ Koha::Biblioitems->search( |
423 |
{ biblioitemnumber => { -in => \@biblioitemnumbers } }, |
423 |
{ biblioitemnumber => { -in => \@biblioitemnumbers } }, |
424 |
{ select => ['biblioitemnumber', 'publicationyear', 'itemtype']} |
424 |
{ select => ['biblionumber', 'biblioitemnumber', 'publicationyear', 'itemtype']} |
425 |
)->unblessed |
425 |
)->unblessed |
426 |
} |
426 |
} |
427 |
}; |
427 |
}; |
Lines 459-465
foreach my $biblionumber (@biblionumbers) {
Link Here
|
459 |
# it's complicated logic to analyse. |
459 |
# it's complicated logic to analyse. |
460 |
# (before this loop was inside that sub loop so it was O(n^2) ) |
460 |
# (before this loop was inside that sub loop so it was O(n^2) ) |
461 |
my $items_any_available; |
461 |
my $items_any_available; |
462 |
|
|
|
463 |
$items_any_available = ItemsAnyAvailableAndNotRestricted( { biblionumber => $biblioitem->{biblionumber}, patron => $patron }) |
462 |
$items_any_available = ItemsAnyAvailableAndNotRestricted( { biblionumber => $biblioitem->{biblionumber}, patron => $patron }) |
464 |
if $patron; |
463 |
if $patron; |
465 |
|
464 |
|
466 |
- |
|
|