oops... forgot to check in marcxml feed support
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 8 Mar 2006 13:33:46 +0000 (13:33 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 8 Mar 2006 13:33:46 +0000 (13:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3279 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm

index 6edae27..3d75b3d 100644 (file)
@@ -313,6 +313,31 @@ sub link {
 
 #----------------------------------------------------------
 
+package OpenILS::WWW::SuperCat::Feed::marcxml;
+use base 'OpenILS::WWW::SuperCat::Feed';
+
+sub new {
+       my $class = shift;
+       my $self = $class->SUPER::build('<marc:collection xmlns:marc="http://www.loc.gov/MARC21/slim"/>');
+       $self->{type} = 'marcxml';
+       $self->{item_xpath} = '/marc:collection';
+       return $self;
+}
+
+package OpenILS::WWW::SuperCat::Feed::marcxml::item;
+use base 'OpenILS::WWW::SuperCat::Feed::marcxml';
+
+sub new {
+       my $class = shift;
+       my $xml = shift;
+       my $self = $class->SUPER::build($xml);
+       $self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', 'marc');
+       $self->{type} = 'marc::item';
+       return $self;
+}
+
+#----------------------------------------------------------
+
 package OpenILS::WWW::SuperCat::Feed::html;
 use base 'OpenILS::WWW::SuperCat::Feed';