From: dbs Date: Mon, 28 Sep 2009 18:37:33 +0000 (+0000) Subject: Make MODS v3 variants inherit from mods3 rather than mods (version 2). X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=89a35bd0b43e7f9bf34ab6292c13f42c1307bc36;p=contrib%2FConifer.git Make MODS v3 variants inherit from mods3 rather than mods (version 2). Results in the correct namespace being applied to MODS v3[123] and makes Zotero happy. git-svn-id: svn://svn.open-ils.org/ILS/trunk@14178 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm index 9b95d4a98b..bee64aa3d6 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm @@ -471,39 +471,6 @@ sub link { } } - -#---------------------------------------------------------- - -package OpenILS::WWW::SuperCat::Feed::mods32; -use base 'OpenILS::WWW::SuperCat::Feed::mods'; - -sub new { - my $class = shift; - my $self = $class->SUPER::build(''); - $self->{type} = 'application/xml'; - $self->{item_xpath} = '/mods:modsCollection'; - return $self; -} - -package OpenILS::WWW::SuperCat::Feed::mods32::item; -use base 'OpenILS::WWW::SuperCat::Feed::mods::item'; - -#---------------------------------------------------------- - -package OpenILS::WWW::SuperCat::Feed::mods33; -use base 'OpenILS::WWW::SuperCat::Feed::mods'; - -sub new { - my $class = shift; - my $self = $class->SUPER::build(''); - $self->{type} = 'application/xml'; - $self->{item_xpath} = '/mods:modsCollection'; - return $self; -} - -package OpenILS::WWW::SuperCat::Feed::mods33::item; -use base 'OpenILS::WWW::SuperCat::Feed::mods::item'; - #---------------------------------------------------------- package OpenILS::WWW::SuperCat::Feed::mods3; @@ -557,6 +524,39 @@ sub link { #---------------------------------------------------------- +package OpenILS::WWW::SuperCat::Feed::mods32; +use base 'OpenILS::WWW::SuperCat::Feed::mods3'; + +sub new { + my $class = shift; + my $self = $class->SUPER::build(''); + $self->{type} = 'application/xml'; + $self->{item_xpath} = '/mods:modsCollection'; + return $self; +} + +package OpenILS::WWW::SuperCat::Feed::mods32::item; +use base 'OpenILS::WWW::SuperCat::Feed::mods3::item'; + +#---------------------------------------------------------- + +package OpenILS::WWW::SuperCat::Feed::mods33; +use base 'OpenILS::WWW::SuperCat::Feed::mods3'; + +sub new { + my $class = shift; + my $self = $class->SUPER::build(''); + $self->{type} = 'application/xml'; + $self->{item_xpath} = '/mods:modsCollection'; + return $self; +} + +package OpenILS::WWW::SuperCat::Feed::mods33::item; +use base 'OpenILS::WWW::SuperCat::Feed::mods3::item'; + + +#---------------------------------------------------------- + package OpenILS::WWW::SuperCat::Feed::marcxml; use base 'OpenILS::WWW::SuperCat::Feed';