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