Bug 40272: (QA follow-up) Only add a biblio test
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 <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
2c8ba37c0d
commit
c8d6da9635
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue