[open-ils-commits] r8788 -
trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 19 19:08:37 EST 2008
Author: erickson
Date: 2008-02-19 18:38:18 -0500 (Tue, 19 Feb 2008)
New Revision: 8788
Modified:
trunk/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: trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm 2008-02-19 23:38:08 UTC (rev 8787)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm 2008-02-19 23:38:18 UTC (rev 8788)
@@ -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