Merged revisions 9634 via svnmerge from
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 18 May 2008 21:53:59 +0000 (21:53 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 18 May 2008 21:53:59 +0000 (21:53 +0000)
svn://svn.open-ils.org/ILS/trunk

........
  r9634 | erickson | 2008-05-18 17:52:31 -0400 (Sun, 18 May 2008) | 1 line

  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/branches/acq-experiment@9635 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Cat.pm

index f2a16f5..80ec094 100644 (file)
@@ -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;
 }