Bug 18935

Summary: MARC::Record->new_from_usmarc does not handle UNIMARC records
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: fridolin.somers, stephane.delaune
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18910
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 18533, 18910    
Bug Blocks:    

Description Baptiste Wojtkowski (bwoj) 2017-07-13 10:02:41 UTC
The problem related by Bug 18533 is also concerning all calls to MARC::Record->new_from_usmarc (this function uses MARC::Record->encoding).

All imported marc notice from z3950 with 18152 active (versions after 16.11) are not considered as UTF-8 anymore by MARC::Record->new_from_usmarc and are also false encoded when imported in Koha.

Example of problematic call:
cataloguing/addbiblio.pl 

85         my $record = MARC::Record->new_from_usmarc($marc);