From: erickson Date: Tue, 19 Feb 2008 23:38:18 +0000 (+0000) Subject: using explicit namespace in addition to default namespace to account for differences... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f0753bd3b88ed7193cf8c2d481357fd61fb199a6;p=Evergreen.git using explicit namespace in addition to default namespace to account for differences in libxml2 handling git-svn-id: svn://svn.open-ils.org/ILS/trunk@8788 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm index 12f7e7643f..92def65cf6 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm @@ -230,6 +230,7 @@ sub new { my $class = shift; my $self = $class->SUPER::build(''); $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 @@ sub new { 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 @@ sub new { 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 @@ sub new { 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 @@ sub new { 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;