Lines 72-82
for ( C4::Context->preference("OPACShowHoldQueueDetails") ) {
Link Here
|
72 |
|
72 |
|
73 |
my $patron = Koha::Patrons->find( $borrowernumber, { prefetch => ['categorycode'] } ); |
73 |
my $patron = Koha::Patrons->find( $borrowernumber, { prefetch => ['categorycode'] } ); |
74 |
my $category = $patron->category; |
74 |
my $category = $patron->category; |
75 |
# no OpacHiddenItems rules used if category is excepted |
|
|
76 |
my $item_hide_rules = |
77 |
( $category->override_hidden_items ) |
78 |
? {} |
79 |
: C4::Context->yaml_preference('OpacHiddenItems'); |
80 |
|
75 |
|
81 |
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup'); |
76 |
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup'); |
82 |
unless ( $can_place_hold_if_available_at_pickup ) { |
77 |
unless ( $can_place_hold_if_available_at_pickup ) { |
Lines 467-473
foreach my $biblioNum (@biblionumbers) {
Link Here
|
467 |
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 }); |
468 |
my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; |
463 |
my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; |
469 |
|
464 |
|
470 |
my $visible_items = { map { $_->itemnumber => 1 } $biblio->items->filter_by_visible_in_opac( { rules => $item_hide_rules } ) }; |
465 |
my $visible_items = { map { $_->itemnumber => 1 } $biblio->items->filter_by_visible_in_opac( { patron => $patron } ) }; |
471 |
|
466 |
|
472 |
# 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) |
473 |
# 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 |
474 |
- |
|
|