Bug 29440: Replace removed syspref BiblioAddsAuthorities with AutoLinkBiblios

Signed-off-by: Michał Kula <148193449+mkibp@users.noreply.github.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
David Gustafsson 2022-11-07 17:56:23 +01:00 committed by Katrin Fischer
parent 6b92516214
commit 188ea40db1
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ sub AddBiblio {
# update MARC subfield that stores biblioitems.cn_sort
_koha_marc_update_biblioitem_cn_sort( $record, $olddata, $frameworkcode );
if (!$disable_autolink && C4::Context->preference('BiblioAddsAuthorities')) {
if (!$disable_autolink && C4::Context->preference('AutoLinkBiblios')) {
BiblioAutoLink( $record, $frameworkcode );
}

View File

@ -647,7 +647,7 @@ RECORD: foreach my $record (@{$marc_records}) {
$schema->txn_begin;
if ($indexer) {
$indexer->update_index(\@search_engine_record_ids, \@search_engine_records);
if (C4::Context->preference('BiblioAddsAuthorities')) {
if (C4::Context->preference('AutoLinkBiblios')) {
foreach my $record (@search_engine_records) {
BiblioAutoLink($record, $framework);
}