Bugzilla – Attachment 134902 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.46 KB, created by
Martin Renvoize (ashimema)
on 2022-05-11 16:01:06 UTC
(
hide
)
Description:
Bug 30520: Allow BatchImport to be used by command line tools.
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-05-11 16:01:06 UTC
Size:
1.46 KB
patch
obsolete
>From 2c94c777ea4b9cc6e63f1deb790b419e912c054d 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. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/ImportBatch.pm | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 47eeae5880..845caa3b58 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.20.1
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