Browse Source

Bug 30520: Allow BatchImport to be used by command line tools.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
master
Andreas Jonsson 1 month ago
committed by Fridolin Somers
parent
commit
a45154e34a
  1. 12
      C4/ImportBatch.pm

12
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

Loading…
Cancel
Save