[open-ils-commits] r8786 - 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 Feb 19 19:07:31 EST 2008


Author: erickson
Date: 2008-02-19 18:37:12 -0500 (Tue, 19 Feb 2008)
New Revision: 8786

Modified:
   branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm
Log:
using explicit namespace in addition to default namespace to account for differences in libxml2 handling

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-02-19 22:29:38 UTC (rev 8785)
+++ branches/rel_1_2_1/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm	2008-02-19 23:37:12 UTC (rev 8786)
@@ -230,6 +230,7 @@
 	my $class = shift;
 	my $self = $class->SUPER::build('<feed xmlns:atom="http://www.w3.org/2005/Atom"/>');
 	$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', undef);
+	$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', 'atom');
 	$self->{type} = 'application/xml';
 	$self->{item_xpath} = '/atom:feed';
 	return $self;
@@ -291,6 +292,7 @@
 	my $xml = shift;
 	my $self = $class->SUPER::build($xml);
 	$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', undef);
+	$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', 'atom');
 	$self->{item_xpath} = '/atom:entry';
 	$self->{holdings_xpath} = '/atom:entry';
 	$self->{type} = 'application/xml';
@@ -390,6 +392,7 @@
 	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->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/mods:mods';
 	return $self;
@@ -442,6 +445,7 @@
 	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->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/mods:mods';
 	return $self;
@@ -510,6 +514,7 @@
 	my $self = $class->SUPER::build($xml);
 	return undef unless $self;
 	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', undef);
+	$self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', 'marc');
 	$self->{type} = 'application/xml';
 	$self->{holdings_xpath} = '/marc:record';
 	return $self;



More information about the open-ils-commits mailing list