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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 17 Aug 2023 20:07:49 +0000 (10:07 -1000)
commita0a03cb08bcfb91cd7b12d473acdb16939b2fcd4
tree52bd6b26d746f0d592ad75dc78ebfe328a117aeb
parent57ca63cd00db408eea2f032b962be60c6e60e4d8
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>
(cherry picked from commit 38fc85ade940b732b3565400a0ff41c06a382497)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/BackgroundJob/StageMARCForImport.pm
tools/stage-marc-import.pl