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