From 6e45e86ec88f7d0d528c0524224b2c10371619e8 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 29 Jan 2008 21:13:32 +0000 Subject: [PATCH] make double extra sure that the namespace attribute is there! git-svn-id: svn://svn.open-ils.org/ILS/trunk@8529 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm index 76f8a6a09f..aafed66505 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm @@ -291,6 +291,7 @@ sub new { 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', 'atom', 0); $self->{item_xpath} = '/atom:entry'; $self->{holdings_xpath} = '/atom:entry'; $self->{type} = 'application/xml'; @@ -390,6 +391,7 @@ sub new { 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/', 'mods', 0); $self->{type} = 'application/xml'; $self->{holdings_xpath} = '/mods:mods'; return $self; @@ -442,6 +444,7 @@ sub new { 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', 'mods', 0); $self->{type} = 'application/xml'; $self->{holdings_xpath} = '/mods:mods'; return $self; @@ -510,6 +513,7 @@ sub new { 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', 'marc', 0); $self->{type} = 'application/xml'; $self->{holdings_xpath} = '/marc:record'; return $self; -- 2.43.2