From 8fc4d96b82d92635ca2d3d33eb4ab6983be68725 Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Mon, 8 Dec 2025 13:25:32 -0500 Subject: [PATCH] Bug 39156: Add batch action hooks to authority merge --- C4/AuthoritiesMarc.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index f0fe2c1325a..73847ec4f39 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -74,6 +74,7 @@ use Koha::RecordProcessor; use Koha::SearchEngine; use Koha::SearchEngine::Indexer; use Koha::SearchEngine::Search; +use Koha::BackgroundJob; =head1 NAME @@ -1680,6 +1681,7 @@ sub merge { my $counteditedbiblio = 0; my $biblios = Koha::Biblios->search( { biblionumber => { -in => \@biblionumbers } } ); + Koha::BackgroundJob->before_batch_action_hooks(); my $syspref_include_see_from = C4::Context->preference('IncludeSeeFromInSearches') @@ -1791,6 +1793,8 @@ sub merge { ModBiblio( $marcrecord, $biblio->biblionumber, $biblio->frameworkcode, { disable_autolink => 1 } ); $counteditedbiblio++; } + Koha::BackgroundJob->after_batch_action_hooks(); + return $counteditedbiblio; } -- 2.43.0