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 38fc85ade9
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
57ca63cd00
commit
a0a03cb08b
2 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ use Try::Tiny;
|
|||
use base 'Koha::BackgroundJob';
|
||||
|
||||
use Koha::Database;
|
||||
use Koha::ImportBatches;
|
||||
use C4::Matcher;
|
||||
use C4::ImportBatch qw(
|
||||
RecordsFromMARCXMLFile
|
||||
|
|
|
@ -95,6 +95,7 @@ if ($fileID) {
|
|||
item_action => $item_action,
|
||||
basket_id => $basketno,
|
||||
vendor_id => $booksellerid,
|
||||
profile_id => $profile_id,
|
||||
};
|
||||
try {
|
||||
my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue( $params );
|
||||
|
|
Loading…
Reference in a new issue