From c07015c9586b3e3d2822b15249c56d6177e9ea7a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 27 Jan 2025 19:57:37 +0000 Subject: [PATCH] Bug 37564: (follow-up) Skip holds queue for adding biblios Martin's patch added skip_holds_queue for ModBiblio, this patch adds it for AddBiblio as well Testing notes (using KTD): 1. Enable the real times hold queue: RealTimeHoldsQueue = Enable 2. Delete any background jobs: DELETE FROM background_jobs; 3. Check the number of holds queue jobs in the database: SELECT COUNT(*) FROM background_jobs WHERE type = update_holds_queue_for_biblios'; 4. Export a record with items as XML from Koha. 5. Delete the exported record from Koha 6. Import the record, using bulkmarcimport.pl: misc/migration_tools/bulkmarcimport.pl -b -v -m=MARCXML --file my_record.marcxml 7. Check the jobs in the database, there should be one per item imported. 8. Delete the imported record 9. Delete all background jobs (see step 2). 10. Apply the patch 11. Import the record again (see step 6) 12. Check the number of holds queue jobs in the database again - should be 0. 13. Import biblio and use matchign option to overlay previosu import 14. Check the number of holds queue jobs in the database again - should be 0. --- misc/migration_tools/bulkmarcimport.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index 08d4d3e924b..44ace2fbc2d 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -140,6 +140,7 @@ my $mod_biblio_options = { my $add_biblio_options = { disable_autolink => $using_elastic_search, skip_record_index => $using_elastic_search || $skip_indexing + skip_holds_queue => 1, }; my $mod_authority_options = { skip_record_index => $using_elastic_search || $skip_indexing }; my $add_authority_options = { skip_record_index => $using_elastic_search || $skip_indexing }; -- 2.39.5