Bug 11312: make facets selectable using an ID [staff]
[koha.git] / opac / opac-showmarc.pl
index 71fb804..27ab61c 100755 (executable)
@@ -54,6 +54,10 @@ if ($importid) {
 else {
     $record =GetMarcBiblio($biblionumber);
 }
+if(!ref $record) {
+    print $input->redirect("/cgi-bin/koha/errors/404.pl");
+    exit;
+}
 
 if ($view eq 'card' || $view eq 'html') {
     my $xmlrecord= $importid? $record->as_xml(): GetXmlBiblio($biblionumber);