[open-ils-commits] r8532 - branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 29 16:58:45 EST 2008


Author: miker
Date: 2008-01-29 16:31:22 -0500 (Tue, 29 Jan 2008)
New Revision: 8532

Modified:
   branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm
Log:
use default namespaces ... easier to work with anyway, and newer libxmls avoid stripping them

Modified: branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm
===================================================================
--- branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm	2008-01-29 21:30:43 UTC (rev 8531)
+++ branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm	2008-01-29 21:31:22 UTC (rev 8532)
@@ -290,7 +290,7 @@
 	my $class = shift;
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
-	$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', 'atom');
+	$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', undef);
 	$self->{item_xpath} = '/atom:entry';
 	$self->{holdings_xpath} = '/atom:entry';
 	$self->{type} = 'application/xml';
@@ -389,7 +389,7 @@
 	my $class = shift;
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
-	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', 'mods');
+	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef);
 	$self->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/mods:mods';
 	return $self;
@@ -441,7 +441,7 @@
 	my $class = shift;
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
-	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', 'mods');
+	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef);
 	$self->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/mods:mods';
 	return $self;
@@ -509,7 +509,7 @@
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
 	return undef unless $self;
-	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', 'marc');
+	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', undef);
 	$self->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/marc:record';
 	return $self;



More information about the open-ils-commits mailing list