@@ -, +, @@ GetMarcBiblio --> without patch you see the deleted record --> with patch you should see message "The record you requested does not --- C4/Biblio.pm | 4 ++++ 1 file changed, 4 insertions(+) --- a/C4/Biblio.pm +++ a/C4/Biblio.pm @@ -1173,6 +1173,10 @@ sub GetMarcBiblio { $sth->execute($biblionumber); my $row = $sth->fetchrow_hashref; my $biblioitemnumber = $row->{'biblioitemnumber'}; + + # When the record is not found or is deleted, then we should return + return unless $biblioitemnumber; + my $marcxml = GetXmlBiblio( $biblionumber ); $marcxml = StripNonXmlChars( $marcxml ); my $frameworkcode = GetFrameworkCode($biblionumber); --