From d2cff3c68cb06ffb9597c37766ef8490294ef737 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 11 Jul 2018 13:35:28 -0300 Subject: [PATCH] Bug 21125: Shortcut moredetail.pl on nonexistent biblionumber This replaces the solution for 17.11 on bug 20927. Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens (cherry picked from commit 13cc5d3161b2630027a2c04cbc11414e83a4842b) Signed-off-by: Martin Renvoize --- 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.39.5