From 3e1fa0fe1c1a423050c5a9df9de0a56ec73599db Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 16 Oct 2025 11:09:39 +0200 Subject: [PATCH] Bug 40272: (QA follow-up) Only add a biblio test Content-Type: text/plain; charset=utf-8 And move the comment where it belongs. More changes on 41031. Test plan: Add a new biblio record with basic editor. Signed-off-by: Marcel de Rooy --- cataloguing/addbiblio.pl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index d7ec674e6e..a8e2720b5c 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -831,16 +831,14 @@ if ( $op eq "cud-addbiblio" ) { } else { - #---------------------------------------------------------------------------- - # If we're in a duplication case, we have to set to "" the biblionumber - # as we'll save the biblio as a new one. - - if ( C4::Context->preference('marcflavour') eq 'MARC21' ) { + if ( $biblio && C4::Context->preference('marcflavour') eq 'MARC21' ) { my $fixed_length_info = - Koha::Biblio::Metadata::Extractor::MARC::MARC21->new( { biblio => $biblio } )->check_fixed_length; + Koha::Biblio::Metadata::Extractor::MARC->new( { biblio => $biblio } )->check_fixed_length; $template->param( marc21_fixlen => $fixed_length_info ) if @{ $fixed_length_info->{failed} }; } + # If we're in a duplication case, we have to set to "" the biblionumber + # as we'll save the biblio as a new one. $template->param( biblionumberdata => $biblionumber, op => $op, -- 2.39.5