[open-ils-commits] r16924 - trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 13 16:27:50 EDT 2010


Author: miker
Date: 2010-07-13 16:27:45 -0400 (Tue, 13 Jul 2010)
New Revision: 16924

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm
Log:
remove even more namespace prefixes ... take THAT, IE!

Modified: trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm	2010-07-13 20:12:14 UTC (rev 16923)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm	2010-07-13 20:27:45 UTC (rev 16924)
@@ -439,8 +439,8 @@
 	my $class = shift;
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
-	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef);
 	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', 'mods');
+	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef, 1);
 	$self->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/mods:mods';
 	return $self;
@@ -491,8 +491,8 @@
 	my $class = shift;
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
-	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef);
 	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', 'mods');
+	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef, 1);
 	$self->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/mods:mods';
 	return $self;



More information about the open-ils-commits mailing list