Bugzilla – Attachment 160157 Details for
Bug 29440
Refactor/clean up bulkmarcimport.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29440: Fix AddBiblio/ModBiblio options args
file_29440.txt (text/plain), 1.80 KB, created by
Michał
on 2023-12-20 18:30:01 UTC
(
hide
)
Description:
Bug 29440: Fix AddBiblio/ModBiblio options args
Filename:
MIME Type:
Creator:
Michał
Created:
2023-12-20 18:30:01 UTC
Size:
1.80 KB
patch
obsolete
>From dc35e2160855a6a351be04099f8e3feef9c24bab Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Wed, 25 Oct 2023 14:43:21 +0200 >Subject: [PATCH] Bug 29440: Fix AddBiblio/ModBiblio options args > >Signed-off-by: =?UTF-8?q?Micha=C5=82=20Kula?= > <148193449+mkibp@users.noreply.github.com> >--- > 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 06e074a9a3d..36ac449b31b 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.42.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29440
:
127479
|
127480
|
127481
|
127485
|
127486
|
127508
|
127509
|
127651
|
127652
|
127791
|
127792
|
127795
|
127796
|
127959
|
127960
|
127961
|
127963
|
128086
|
128087
|
128362
|
128890
|
128891
|
131176
|
131177
|
131180
|
131181
|
132942
|
140822
|
140823
|
140903
|
140904
|
140905
|
140906
|
140924
|
140925
|
140926
|
140927
|
140928
|
140987
|
140988
|
140989
|
143375
|
151293
|
151294
|
151295
|
151296
|
151297
|
151298
|
151299
|
151300
|
151301
|
157798
|
160148
|
160149
|
160150
|
160151
|
160152
|
160153
|
160154
|
160155
|
160156
|
160157
|
160477
|
160478
|
160479
|
160480
|
160481
|
160482
|
160483
|
160484
|
160485
|
160486
|
160487