[open-ils-commits] r7594 - trunk/Open-ILS/src/perlmods/OpenILS/WWW

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jul 27 12:54:27 EDT 2007


Author: miker
Date: 2007-07-27 12:53:11 -0400 (Fri, 27 Jul 2007)
New Revision: 7594

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm
Log:
remove extra xml declarations

Modified: trunk/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm	2007-07-27 16:45:16 UTC (rev 7593)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm	2007-07-27 16:53:11 UTC (rev 7594)
@@ -193,7 +193,9 @@
         		}
 
 			if (uc($format) eq 'XML') {
-				print $r->as_xml_record;
+				my $x = $r->as_xml_record;
+				$x =~ s/^<\?xml version="1.0" encoding="UTF-8"\?>//o;
+				print $x;
 			} elsif (uc($format) eq 'UNIMARC') {
 				print $r->as_unimarc
 			} elsif (uc($format) eq 'USMARC') {



More information about the open-ils-commits mailing list