Lines 84-93
if ( C4::Context->config('enable_plugins') ) {
Link Here
|
84 |
|
84 |
|
85 |
my $biblionumber = $query->param('biblionumber'); |
85 |
my $biblionumber = $query->param('biblionumber'); |
86 |
$biblionumber = HTML::Entities::encode($biblionumber); |
86 |
$biblionumber = HTML::Entities::encode($biblionumber); |
87 |
my $record = GetMarcBiblio({ biblionumber => $biblionumber }); |
|
|
88 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
87 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
89 |
$template->param( 'biblio', $biblio ); |
88 |
$template->param( 'biblio', $biblio ); |
90 |
|
89 |
|
|
|
90 |
my $record = eval { $biblio->metadata->record }; |
91 |
$template->param( decoding_error => $@ ); |
92 |
|
91 |
if ( not defined $record ) { |
93 |
if ( not defined $record ) { |
92 |
# biblionumber invalid -> report and exit |
94 |
# biblionumber invalid -> report and exit |
93 |
$template->param( unknownbiblionumber => 1, |
95 |
$template->param( unknownbiblionumber => 1, |
94 |
- |
|
|