LibreCat / Catmandu-MARC

Catmandu modules for working with MARC data
https://metacpan.org/release/Catmandu-MARC
Other
8 stars 10 forks source link

XML declaration and collection tag are not added when converting with CLI #11

Closed jorol closed 9 years ago

jorol commented 9 years ago

CLI:

$ catmandu convert MARC --type USMARC to MARC --type XML < ./t/camel.mrc

Result:

<marc:record>
  <marc:leader>00755cam  22002414a 4500</marc:leader>
  <marc:controlfield tag="001">fol05731351 </marc:controlfield>
  ...
</marc:record>
...
<marc:record>
  <marc:leader>00696nam  22002538a 4500</marc:leader>
  <marc:controlfield tag="001">fol05882032 </marc:controlfield>
  ...
</marc:record>
</marc:collection>

Error:

jorol commented 9 years ago

Not reproducible on a recent install.