From 74084a5f3184a5a72ff0d7e276c29e0b4b0d9f24 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 --- 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 52decadac7e..ac64a33b709 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 417b6b27c6f..06e074a9a3d 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.40.0