Bug 7513 Marc Import Hangs
On some record, the commit_biblio_file is creating wide character because as_xml is not used with correct parameter. This patch fixes that. To test on a UNIMARC Koha, stage attachment 7510 and then import. It hangs before the patch, it passes after. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
aba25db761
commit
ebaf505cbd
|
|
@ -1150,7 +1150,7 @@ sub _update_import_record_marc {
|
|||
my $dbh = C4::Context->dbh;
|
||||
my $sth = $dbh->prepare("UPDATE import_records SET marc = ?, marcxml = ?
|
||||
WHERE import_record_id = ?");
|
||||
$sth->execute($marc_record->as_usmarc(), $marc_record->as_xml(), $import_record_id);
|
||||
$sth->execute($marc_record->as_usmarc(), $marc_record->as_xml(C4::Context->preference('marcflavour')), $import_record_id);
|
||||
$sth->finish();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue