Bug 33755: Set profile_id and add missing import
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 31 Jul 2023 08:52:23 +0000 (08:52 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 15 Aug 2023 09:16:59 +0000 (12:16 +0300)
commit38fc85ade940b732b3565400a0ff41c06a382497
treeea115b137ceb5e1179e7da360578178082c37d40
parent37d5a0cb44d3d37bde91ef6d05e7af694acbee16
Bug 33755: Set profile_id and add missing import

This patch adds a missed parameter (profile_id) in stage-marc-import.pl and also adds a missing import in the background job for staging marc files. This means that the profile used when importing can now be shown in the import batches table and also in batch details

Test plan:
1) Stage a record for import and make sure to save the import profile you use
2) Import a record using that profile
3) Navigate to Cataloging > Manage staged MARC records
4) In the Profile column, no value will be shown for the staged record
5) Click on the batch, the profile will be missing in this screen as well
6) Apply patch
7) Restart_all
8) Repeat steps 2-5, the profile name should be visible in both places

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/BackgroundJob/StageMARCForImport.pm
tools/stage-marc-import.pl