Bug 7513

Summary: MARC Import Hangs
Product: Koha Reporter: laurenthdl <henridamien.laurent>
Component: ToolsAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Ian Walls <koha.sekjal>
Severity: critical    
Priority: P1 - high CC: chris, jcamins, katrin.fischer, paul.poulain
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: proposed patch
proposed patch
Bug 7513 Marc Import Hangs

Description laurenthdl 2012-02-08 17:44:00 UTC
When commiting biblio file from file 7510 (UNIMARC), the commit biblio file hangs because of a  Wide Character.
In fact, using the commit_biblios_file.pl in command line, the script dies.
This patch is using C4::Context->preference('marcflavour') in as_xml
It should be tested on a MARC21 installation in order to validate that patch.
Comment 1 laurenthdl 2012-02-08 17:47:27 UTC Comment hidden (obsolete)
Comment 2 laurenthdl 2012-02-09 09:19:19 UTC Comment hidden (obsolete)
Comment 3 Chris Cormack 2012-02-18 07:22:02 UTC
Created attachment 7746 [details] [review]
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 [details] and
then import.
It hangs before the patch, it passes after.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Comment 4 Paul Poulain 2012-02-21 16:00:12 UTC
QA comment:
* tiny patch (2 lines)
* fixes a critical problem for UNIMARC users, updating severity
Comment 5 Jared Camins-Esakov 2012-05-23 23:24:07 UTC
This patch will be included in the forthcoming 3.6.5 release (no string changes).
Comment 6 Katrin Fischer 2012-09-01 05:47:49 UTC
Looking at the patch - wonder if it should go into 3.8.x too?
Comment 7 Chris Cormack 2012-09-01 07:14:09 UTC
It already is, it was pushed to master before 3.8.0 was released