|
Lines 462-468
foreach my $biblioNum (@biblionumbers) {
Link Here
|
| 462 |
my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode }); |
462 |
my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode }); |
| 463 |
my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; |
463 |
my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; |
| 464 |
|
464 |
|
| 465 |
my $visible_items = { map { $_->itemnumber => 1 } $biblio->items->filter_by_visible_in_opac( { patron => $patron } ) }; |
465 |
my $visible_items = { map { $_->itemnumber => 1 } $biblio->items->filter_by_visible_in_opac( { patron => $patron } )->as_list }; |
| 466 |
|
466 |
|
| 467 |
# Only keep the items that are visible in the opac (i.e. those in %visible_items) |
467 |
# Only keep the items that are visible in the opac (i.e. those in %visible_items) |
| 468 |
# FIXME: We should get rid of itemInfos altogether and use $visible_items |
468 |
# FIXME: We should get rid of itemInfos altogether and use $visible_items |
| 469 |
- |
|
|