Bug 37037: touch_all_biblios.pl triggers rebuilding holds for all affected records when RealTimeHoldsQueue is enabled

If RealTimeHoldsQueue is on, touch_all_biblios triggers a update_holds_queue_for_biblios background job for each affected record. This will result in a as many background jobs being queued up as records! It makes far more sense for this script to not do that which gives the administrator the option for running the holds queue builder if the changes would affect holdability, or to not run it at all.

Test Plan:
1) Run touch_all_biblios.pl
3) Note a update_holds_queue_for_biblios background job is queued for each record touched
4) Apply this patch
5) Merge touch_all_biblios.pl again
6) Note that no update_holds_queue_for_biblios jobs were queued

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Kyle Hall 2024-06-05 11:04:31 -04:00 committed by Martin Renvoize
parent 0ac23a6247
commit 45bfbd0e2d
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -79,7 +79,7 @@ while (my ($biblionumber, $frameworkcode) = $sth1->fetchrow_array){
my $biblio = Koha::Biblios->find($biblionumber);
my $record = $biblio->metadata->record;
my $modok = ModBiblio($record, $biblionumber, $frameworkcode);
my $modok = ModBiblio( $record, $biblionumber, $frameworkcode, { skip_holds_queue => 1 } );
if ($modok) {
$goodcount++;