From fe8a2bbd23b826357c6c8b2760123520774b54c8 Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 18 May 2008 21:52:31 +0000 Subject: [PATCH] similar to the supercat feeds, we have to both define the marc namespace as well as set the namespace of the documentElement at bib create time so it can be parsed properly later git-svn-id: svn://svn.open-ils.org/ILS/trunk@9634 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Cat.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm index f2a16f529c..80ec094a13 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm @@ -320,6 +320,7 @@ sub __make_marc_doc { my $marcxml = XML::LibXML->new->parse_string( $xml ); $marcxml->documentElement->setNamespace( "http://www.loc.gov/MARC21/slim", "marc", 1 ); + $marcxml->documentElement->setNamespace("http://www.loc.gov/MARC21/slim"); return $marcxml; } -- 2.11.0