[Koha-patches] [PATCH] Bug Fixing : Forcing USMARC format for xml
Henri-Damien LAURENT
henridamien at koha-fr.org
Fri Apr 11 15:09:59 CEST 2008
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.
---
C4/Items.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Items.pm b/C4/Items.pm
index ba1d170..427e21f 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;
--
1.5.3.2
More information about the Koha-patches
mailing list