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:
parent
60262720f0
commit
288b74cf3a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue