$feed->creator($host);
$feed->update_ts(gmtime_ISO8601());
- $feed->link(rss => $base . "/rss2-full/$id" => 'application/rss+xml');
- $feed->link(alternate => $base . "/atom-full/$id" => 'application/atom+xml');
+ $feed->link(alternate => $base . "/rss2-full/$id" => 'application/rss+xml');
+ $feed->link(atom => $base . "/atom-full/$id" => 'application/atom+xml');
$feed->link(html => $base . "/html-full/$id" => 'text/html');
$feed->link(unapi => $unapi);
my $url = $cgi->url(-path_info=>$add_path);
my $root = (split 'feed', $url)[0];
- my $base = (split 'freshmeat', $url)[0] . 'freshmeat';
+ my $base = (split 'freshmeat', $url)[0] . '/freshmeat';
my $unapi = (split 'feed', $url)[0] . 'unapi';
my $path = $cgi->path_info;
$feed->creator($host);
$feed->update_ts(gmtime_ISO8601());
- $feed->link(rss => $base . "/rss2-full/$rtype/$axis/$limit/$date" => 'application/rss+xml');
- $feed->link(alternate => $base . "/atom-full/$rtype/$axis/$limit/$date" => 'application/atom+xml');
+ $feed->link(alternate => $base . "/rss2-full/$rtype/$axis/$limit/$date" => 'application/rss+xml');
+ $feed->link(atom => $base . "/atom-full/$rtype/$axis/$limit/$date" => 'application/atom+xml');
$feed->link(html => $base . "/html-full/$rtype/$axis/$limit/$date" => 'text/html');
$feed->link(unapi => $unapi);
);
$feed->link(
- rss =>
+ alternate =>
$base . "/$version/$org/rss2-full/$class?searchTerms=$terms&searchSort=$sort&searchSortDir=$sortdir&searchLang=$lang" =>
'application/rss+xml'
);
$feed->link(
- alternate =>
+ atom =>
$base . "/$version/$org/atom-full/$class?searchTerms=$terms&searchSort=$sort&searchSortDir=$sortdir&searchLang=$lang" =>
'application/atom+xml'
);
my $self = $class->SUPER::build('<feed xmlns:atom="http://www.w3.org/2005/Atom"/>');
$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', undef);
$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', 'atom');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/atom+xml';
$self->{item_xpath} = '/atom:feed';
return $self;
}
$self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', 'atom');
$self->{item_xpath} = '/atom:entry';
$self->{holdings_xpath} = '/atom:entry';
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/atom+xml';
return $self;
}
sub new {
my $class = shift;
my $self = $class->SUPER::build('<rss version="2.0"><channel/></rss>');
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/rss+xml';
$self->{item_xpath} = '/rss/channel';
return $self;
}
my $class = shift;
my $xml = shift;
my $self = $class->SUPER::build($xml);
- $self->{type} = 'application/xml';
+ $self->{type} = 'application/rss+xml';
$self->{item_xpath} = '/item';
$self->{holdings_xpath} = '/item';
return $self;
unHideMe(link);
link = $n(row, 'myopac_bb_published_atom');
- link.setAttribute('href', buildExtrasLink( 'feed/bookbag/atom-full/'+cont.id(), false));
+ link.setAttribute('href', buildExtrasLink( 'feed/bookbag/rss2-full/'+cont.id(), false));
link.setAttribute('target', '_blank' );
unHideMe(link);