From 288b74cf3a5accace7e85b59ac54324242bf7bf0 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 11 Apr 2008 15:09:59 +0200 Subject: [PATCH] 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 --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index ba1d170381..427e21f08a 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -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; -- 2.39.5