[open-ils-commits] r9634 - trunk/Open-ILS/src/perlmods/OpenILS/Application

svn at svn.open-ils.org svn at svn.open-ils.org
Sun May 18 17:52:35 EDT 2008


Author: erickson
Date: 2008-05-18 17:52:31 -0400 (Sun, 18 May 2008)
New Revision: 9634

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm
Log:
similar to the supercat feeds, we have to both define the marc namespace as well as set the namespace of the documentElement at bib create time so it can be parsed properly later

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm	2008-05-18 16:28:51 UTC (rev 9633)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm	2008-05-18 21:52:31 UTC (rev 9634)
@@ -320,6 +320,7 @@
 	my $marcxml = XML::LibXML->new->parse_string( $xml );
 	$marcxml->documentElement->setNamespace( 
 		"http://www.loc.gov/MARC21/slim", "marc", 1 );
+	$marcxml->documentElement->setNamespace("http://www.loc.gov/MARC21/slim");
 	return $marcxml;
 }
 



More information about the open-ils-commits mailing list