gbv / Catmandu-PICA

Catmandu modules for working with PICA+ data
https://metacpan.org/release/Catmandu-PICA
Other
4 stars 4 forks source link

Replacement of angle brackets #53

Closed Phu2 closed 6 years ago

Phu2 commented 6 years ago

When converting from plain pica to pica xml, Catmandu replaces < with &amp;lt;; i think it should be &lt; instead.

Example file (one record in plain pica format) angle-bracket.txt

Command catmandu convert PICA --type binary to PICA --type XML < angle-bracket.txt > angle-bracket.xml

The resulting xml is not valid according to xmllint, see field 021A subfield a. xmllint angle-bracket.xml

jorol commented 6 years ago

Fixed in https://github.com/gbv/PICA-Data/releases/tag/0.34

Install new version:

$ cpanm PICA::Data