|
Lines 33-39
use C4::Koha qw(
Link Here
|
| 33 |
); |
33 |
); |
| 34 |
use C4::Search qw( new_record_from_zebra searchResults getRecords ); |
34 |
use C4::Search qw( new_record_from_zebra searchResults getRecords ); |
| 35 |
use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); |
35 |
use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); |
| 36 |
use C4::Output qw( parametrized_url output_html_with_http_headers redirect_if_opac_suppressed ); |
36 |
use C4::Output qw( parametrized_url output_html_with_http_headers redirect_if_opac_hidden redirect_if_opac_suppressed ); |
| 37 |
use C4::Biblio qw( |
37 |
use C4::Biblio qw( |
| 38 |
CountItemsIssued |
38 |
CountItemsIssued |
| 39 |
GetBiblioData |
39 |
GetBiblioData |
|
Lines 127-136
unless ( $patron and $patron->category->override_hidden_items ) {
Link Here
|
| 127 |
|
127 |
|
| 128 |
# only skip this check if there's a logged in user |
128 |
# only skip this check if there's a logged in user |
| 129 |
# and its category overrides OpacHiddenItems |
129 |
# and its category overrides OpacHiddenItems |
| 130 |
if ( $biblio->hidden_in_opac( { rules => C4::Context->yaml_preference('OpacHiddenItems') } ) ) { |
130 |
redirect_if_opac_hidden( $query, $biblio, $patron ); |
| 131 |
print $query->redirect('/cgi-bin/koha/errors/404.pl'); # escape early |
|
|
| 132 |
exit; |
| 133 |
} |
| 134 |
if ( $items->count >= 1 ) { |
131 |
if ( $items->count >= 1 ) { |
| 135 |
$items = $items->filter_by_visible_in_opac( { patron => $patron } ); |
132 |
$items = $items->filter_by_visible_in_opac( { patron => $patron } ); |
| 136 |
} |
133 |
} |
| 137 |
- |
|
|