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 112-126 if( $specific_item ) { Link Here
112
my @hiddenitems;
111
my @hiddenitems;
113
my $patron = Koha::Patrons->find( $borrowernumber );
112
my $patron = Koha::Patrons->find( $borrowernumber );
114
113
115
my $record = GetMarcBiblio({
114
my $biblio = Koha::Biblios->find( $biblionumber );
116
    biblionumber => $biblionumber,
115
my $record = $biblio ? $biblio->metadata->record : undef;
117
    opac         => 1 });
116
unless ( $biblio && $record ) {
118
if ( ! $record ) {
119
    print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
117
    print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
120
    exit;
118
    exit;
121
}
119
}
122
120
123
my $biblio = Koha::Biblios->find( $biblionumber );
124
unless ( $patron and $patron->category->override_hidden_items ) {
121
unless ( $patron and $patron->category->override_hidden_items ) {
125
    # only skip this check if there's a logged in user
122
    # only skip this check if there's a logged in user
126
    # and its category overrides OpacHiddenItems
123
    # and its category overrides OpacHiddenItems
127
- 

Return to bug 29697