Hi,
PROBLEM :
* in MARC21, the encoding is defined by position 9 of the leader.
'a' means UTF-8
* in UNIMARC, this is an empty position ! the encoding is in
positions 26-27 and 28-29 of 100$a (<200 are all fixed coded fields
in unimarc : http://bibliotheque.bgp-fr.com/Unimarc_abrege.pdf, page
8 for 100$a)
BIG PROBLEM :
MARC::File::XML only checks for position 9, thinking the XML is
necessary a marc21 file.
I think (& joshua agrees) we will have to hack MARC::File::XML to
solve this problem.
We have 2 solutions :
* add a test to define wether we are UNIMARC or MARC21. In UNIMARC,
title is in 200, while 200 is empty in MARC21.
* add a parameter to ->new_as_xml($xml,'UTF-8','UNIMARC') to specify
we are sending the parser an unimarc file.
as a person that has write a Unimarc -> MARC21 converter, I prefer
the second solution.
Thanks for all
Bye
Zeno Tajoli
CILEA - Segrate (MI)
tajoliAT_SPAM_no_prendiATcilea.it
(Indirizzo mascherato anti-spam; sostituisci quanto tra AT con @)