From 188ea40db1ed6a47936c5adbec12a30a100a0ebe Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Mon, 7 Nov 2022 17:56:23 +0100 Subject: [PATCH] Bug 29440: Replace removed syspref BiblioAddsAuthorities with AutoLinkBiblios 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 --- C4/Biblio.pm | 2 +- misc/migration_tools/bulkmarcimport.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 53b0fa5a03..14fbf3d8f2 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -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 ); } diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index 417b6b27c6..06e074a9a3 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -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); } -- 2.39.5