Bug Fixing : Forcing USMARC format for xml

using as_xml uses default MARC::File::XML format which is UNIMARC for marcflavour UNIMARC
And thus, causing a problem when encoding simple items marc records.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2008-04-11 15:09:59 +02:00 committed by Joshua Ferraro
parent 60262720f0
commit 288b74cf3a

View file

@ -1997,7 +1997,7 @@ sub _get_unlinked_subfields_xml {
# used in the framework
$marc->append_fields(MARC::Field->new('999', ' ', ' ', @$unlinked_item_subfields));
$marc->encoding("UTF-8");
$xml = $marc->as_xml();
$xml = $marc->as_xml("USMARC");
}
return $xml;