print <<FORMATS;
<formats id='$id'>
<format name="holdings_xml" type="application/xml"/>
-<format name="marcxml" type="application/xml" namespace_uri="http://www.loc.gov/MARC21/slim" docs="http://www.loc.gov/marcxml/" schema_location="http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"/>
-<format name="mods32" type="application/xml" namespace_uri="http://www.loc.gov/mods/v3" docs="http://www.loc.gov/mods/" schema_location="http://www.loc.gov/standards/mods/v3/mods-3-2.xsd"/>
+<format name="marcxml" type="application/marcxml" namespace_uri="http://www.loc.gov/MARC21/slim" docs="http://www.loc.gov/marcxml/" schema_location="http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"/>
+<format name="mods32" type="application/mods+xml" namespace_uri="http://www.loc.gov/mods/v3" docs="http://www.loc.gov/mods/" schema_location="http://www.loc.gov/standards/mods/v3/mods-3-2.xsd"/>
</formats>
FORMATS
} else {
</format>
<format>
<name>ris</name>
- <type>text/plain</type>
+ <type>application/x-research-info-systems</type>
</format>";
}
</format>
<format>
<name>ris</name>
- <type>text/plain</type>
+ <type>application/x-research-info-systems</type>
</format>";
for my $h (@$list) {
sub new {
my $class = shift;
my $self = $class->SUPER::build('<modsCollection version="3.0" xmlns="http://www.loc.gov/mods/" xmlns:mods="http://www.loc.gov/mods/"/>');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/xml+mods';
$self->{item_xpath} = '/mods:modsCollection';
return $self;
}
my $self = $class->SUPER::build($xml);
$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', 'mods');
$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef, 1);
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/xml+mods';
$self->{holdings_xpath} = '/mods:mods';
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::build('<modsCollection version="3.0" xmlns="http://www.loc.gov/mods/v3" xmlns:mods="http://www.loc.gov/mods/v3"/>');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/xml+mods';
$self->{item_xpath} = '/mods:modsCollection';
return $self;
}
my $self = $class->SUPER::build($xml);
$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', 'mods');
$self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef, 1);
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/xml+mods';
$self->{holdings_xpath} = '/mods:mods';
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::build('<modsCollection version="3.2" xmlns="http://www.loc.gov/mods/v3" xmlns:mods="http://www.loc.gov/mods/v3"/>');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/xml+mods';
$self->{item_xpath} = '/mods:modsCollection';
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::build('<modsCollection version="3.3" xmlns="http://www.loc.gov/mods/v3" xmlns:mods="http://www.loc.gov/mods/v3"/>');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/xml+mods';
$self->{item_xpath} = '/mods:modsCollection';
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::build('<collection xmlns="http://www.loc.gov/MARC21/slim" xmlns:marc="http://www.loc.gov/MARC21/slim"/>');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/marcxml';
$self->{item_xpath} = '/marc:collection';
return $self;
}
my $self = $class->SUPER::build($xml);
return undef unless $self;
$self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', undef);
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/marcxml';
$self->{holdings_xpath} = '/*[local-name()="record"]';
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::new;
- $self->{type} = 'text/plain';
+ $self->{type} = 'application/x-research-info-systems';
$self->{xsl} = "/MARC21slim2RIS.xsl";
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::new;
- $self->{type} = 'application/octet-stream';
+ $self->{type} = 'application/marc';
return $self;
}