From 2d333079a9f8e74c8a110e08f7637c5351e56a5c Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 4 Jun 2008 04:14:47 +0000 Subject: [PATCH] fix the marcxml feed to use default namespace on the record element git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9765 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm index 7bf6a70f4b..6d382a37d1 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm @@ -514,9 +514,8 @@ 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'; + $self->{holdings_xpath} = '/*[local-name()="record"]'; return $self; } @@ -527,7 +526,7 @@ sub link { if ($type eq 'opac') { $self->_create_node( - 'marc:record', + '*[local-name()="record"]', 'http://www.w3.org/1999/xhtml', 'xhtml:link', undef, @@ -536,7 +535,7 @@ sub link { $linkid++; } elsif ($type eq 'unapi-id') { $self->_create_node( - 'marc:record', + '*[local-name()="record"]', 'http://www.w3.org/1999/xhtml', 'xhtml:abbr', undef, -- 2.11.0