From aec69c29ec2395ff2f92e5aba9a850c85fd0c579 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 11 Jul 2018 13:35:28 -0300 Subject: [PATCH] Bug 20927: Shortcut moredetail.pl on nonexistent biblionumber --- catalogue/moredetail.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 3d6bd4ab6c..ba599370e3 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -99,6 +99,9 @@ for my $itm (@all_items) { my $record=GetMarcBiblio({ biblionumber => $biblionumber }); +output_and_exit( $query, $cookie, $template, 'unknown_biblio') + unless $record; + my $hostrecords; # adding items linked via host biblios my @hostitems = GetHostItemsInfo($record); -- 2.11.0