View | Details | Raw Unified | Return to bug 29697
Collapse All | Expand All

(-)a/opac/opac-detail.pl (-7 / +3 lines)
Lines 38-44 use C4::Output qw( parametrized_url output_html_with_http_headers ); Link Here
38
use C4::Biblio qw(
38
use C4::Biblio qw(
39
    CountItemsIssued
39
    CountItemsIssued
40
    GetBiblioData
40
    GetBiblioData
41
    GetMarcBiblio
42
    GetMarcControlnumber
41
    GetMarcControlnumber
43
    GetMarcISBN
42
    GetMarcISBN
44
    GetMarcISSN
43
    GetMarcISSN
Lines 113-127 if( $specific_item ) { Link Here
113
my @hiddenitems;
112
my @hiddenitems;
114
my $patron = Koha::Patrons->find( $borrowernumber );
113
my $patron = Koha::Patrons->find( $borrowernumber );
115
114
116
my $record = GetMarcBiblio({
115
my $biblio = Koha::Biblios->find( $biblionumber );
117
    biblionumber => $biblionumber,
116
my $record = $biblio ? $biblio->metadata->record : undef;
118
    opac         => 1 });
117
unless ( $biblio && $record ) {
119
if ( ! $record ) {
120
    print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
118
    print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
121
    exit;
119
    exit;
122
}
120
}
123
121
124
my $biblio = Koha::Biblios->find( $biblionumber );
125
unless ( $patron and $patron->category->override_hidden_items ) {
122
unless ( $patron and $patron->category->override_hidden_items ) {
126
    # only skip this check if there's a logged in user
123
    # only skip this check if there's a logged in user
127
    # and its category overrides OpacHiddenItems
124
    # and its category overrides OpacHiddenItems
128
- 

Return to bug 29697