Bugzilla – Attachment 154107 Details for
Bug 33755
Profile used is not saved when importing records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33755: Set profile_id and add missing import
Bug-33755-Set-profileid-and-add-missing-import.patch (text/plain), 2.00 KB, created by
Sam Lau
on 2023-07-31 18:11:40 UTC
(
hide
)
Description:
Bug 33755: Set profile_id and add missing import
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-07-31 18:11:40 UTC
Size:
2.00 KB
patch
obsolete
>From 257bf8acd37b7511d2ae9980c3c575f5a656d29f Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Mon, 31 Jul 2023 08:52:23 +0000 >Subject: [PATCH] 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> >--- > Koha/BackgroundJob/StageMARCForImport.pm | 1 + > tools/stage-marc-import.pl | 1 + > 2 files changed, 2 insertions(+) > >diff --git a/Koha/BackgroundJob/StageMARCForImport.pm b/Koha/BackgroundJob/StageMARCForImport.pm >index 7858eae7a0..1272378279 100644 >--- a/Koha/BackgroundJob/StageMARCForImport.pm >+++ b/Koha/BackgroundJob/StageMARCForImport.pm >@@ -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 >diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl >index 2fe21b1a23..e60ed7c5a6 100755 >--- a/tools/stage-marc-import.pl >+++ b/tools/stage-marc-import.pl >@@ -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 ); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33755
:
154083
|
154107
|
154108
|
154111