Lines 126-134
if ($all) {
Link Here
|
126 |
my $using_elastic_search = (C4::Context->preference('SearchEngine') eq 'Elasticsearch'); |
126 |
my $using_elastic_search = (C4::Context->preference('SearchEngine') eq 'Elasticsearch'); |
127 |
my $mod_biblio_options = { |
127 |
my $mod_biblio_options = { |
128 |
disable_autolink => $using_elastic_search, |
128 |
disable_autolink => $using_elastic_search, |
129 |
defer_search_engine_indexing => $using_elastic_search, |
129 |
skip_record_index => $using_elastic_search, |
130 |
overlay_context => { source => 'bulkmarcimport' } |
130 |
overlay_context => { source => 'bulkmarcimport' } |
131 |
}; |
131 |
}; |
|
|
132 |
my $add_biblio_options = { |
133 |
disable_autolink => $using_elastic_search, |
134 |
skip_record_index => $using_elastic_search |
135 |
}; |
132 |
|
136 |
|
133 |
my @search_engine_record_ids; |
137 |
my @search_engine_record_ids; |
134 |
my @search_engine_records; |
138 |
my @search_engine_records; |
Lines 542-548
RECORD: foreach my $record (@{$marc_records}) {
Link Here
|
542 |
} |
546 |
} |
543 |
} |
547 |
} |
544 |
elsif ($insert) { |
548 |
elsif ($insert) { |
545 |
eval { ($record_id, $biblioitemnumber) = AddBiblio($record, $framework, { disable_autolink => 1, defer_marc_save => 1 }) }; |
549 |
eval { ($record_id, $biblioitemnumber) = AddBiblio($record, $framework, $add_biblio_options) }; |
546 |
if ($@) { |
550 |
if ($@) { |
547 |
warn "ERROR: Insert biblio $originalid failed: $@\n"; |
551 |
warn "ERROR: Insert biblio $originalid failed: $@\n"; |
548 |
printlog( { id => $originalid, op => "insert", status => "ERROR" } ) if ($logfile); |
552 |
printlog( { id => $originalid, op => "insert", status => "ERROR" } ) if ($logfile); |
549 |
- |
|
|