Bugzilla – Attachment 133232 Details for
Bug 30520
Command line stage and import broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30520: Allow BatchImport to be used by command line tools.
Bug-30520-Allow-BatchImport-to-be-used-by-command-.patch (text/plain), 1.40 KB, created by
Andreas Jonsson
on 2022-04-13 07:23:55 UTC
(
hide
)
Description:
Bug 30520: Allow BatchImport to be used by command line tools.
Filename:
MIME Type:
Creator:
Andreas Jonsson
Created:
2022-04-13 07:23:55 UTC
Size:
1.40 KB
patch
obsolete
>From 9acf7964297fce9a403af014e5a211f7f7a5bb3d Mon Sep 17 00:00:00 2001 >From: Andreas Jonsson <andreas.jonsson@kreablo.se> >Date: Wed, 13 Apr 2022 09:20:42 +0200 >Subject: [PATCH] Bug 30520: Allow BatchImport to be used by command line > tools. > >--- > C4/ImportBatch.pm | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 6ae148d6d2..77bb42683b 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -679,12 +679,14 @@ sub BatchCommitRecords { > } > $oldxml = $old_marc->as_xml($marc_type); > >+ my $context = { source => 'batchimport' }; >+ if ($logged_in_patron) { >+ $context->{categorycode} = $logged_in_patron->categorycode; >+ $context->{userid} = $logged_in_patron->userid; >+ } >+ > ModBiblio($marc_record, $recordid, $oldbiblio->frameworkcode, { >- overlay_context => { >- source => 'batchimport', >- categorycode => $logged_in_patron->categorycode, >- userid => $logged_in_patron->userid >- }, >+ overlay_context => $context > }); > $query = "UPDATE import_biblios SET matched_biblionumber = ? WHERE import_record_id = ?"; # FIXME call SetMatchedBiblionumber instead > >-- >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 30520
:
133232
|
134902
|
134943