From 70de25b4392b98b3850ded2d1391c8b0809755b8 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Wed, 25 Oct 2023 14:43:21 +0200 Subject: [PATCH] Bug 29440: Fix AddBiblio/ModBiblio options args MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Kula <148193449+mkibp@users.noreply.github.com> Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- misc/migration_tools/bulkmarcimport.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index 06e074a9a3..36ac449b31 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -126,9 +126,13 @@ if ($all) { my $using_elastic_search = (C4::Context->preference('SearchEngine') eq 'Elasticsearch'); my $mod_biblio_options = { disable_autolink => $using_elastic_search, - defer_search_engine_indexing => $using_elastic_search, + skip_record_index => $using_elastic_search, overlay_context => { source => 'bulkmarcimport' } }; +my $add_biblio_options = { + disable_autolink => $using_elastic_search, + skip_record_index => $using_elastic_search +}; my @search_engine_record_ids; my @search_engine_records; @@ -542,7 +546,7 @@ RECORD: foreach my $record (@{$marc_records}) { } } elsif ($insert) { - eval { ($record_id, $biblioitemnumber) = AddBiblio($record, $framework, { disable_autolink => 1, defer_marc_save => 1 }) }; + eval { ($record_id, $biblioitemnumber) = AddBiblio($record, $framework, $add_biblio_options) }; if ($@) { warn "ERROR: Insert biblio $originalid failed: $@\n"; printlog( { id => $originalid, op => "insert", status => "ERROR" } ) if ($logfile); -- 2.39.5