Bugzilla – Attachment 190306 Details for
Bug 39156
Add plugin hooks for batch operations on authority, biblio and items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39156: Add batch action hooks to authority merge
Bug-39156-Add-batch-action-hooks-to-authority-merg.patch (text/plain), 1.20 KB, created by
Shi Yao Wang
on 2025-12-08 18:26:48 UTC
(
hide
)
Description:
Bug 39156: Add batch action hooks to authority merge
Filename:
MIME Type:
Creator:
Shi Yao Wang
Created:
2025-12-08 18:26:48 UTC
Size:
1.20 KB
patch
obsolete
>From 8fc4d96b82d92635ca2d3d33eb4ab6983be68725 Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39156
:
178274
|
178790
|
180079
|
180080
|
180081
|
180219
|
180220
|
180221
|
180422
|
180428
|
180429
|
180430
|
180431
|
182465
|
182466
|
182467
|
182468
|
185337
|
185338
|
185339
|
185340
|
190302
|
190303
|
190304
|
190305
| 190306