[Koha-bugs] [Bug 16111] RSS feed for OPAC search results has wrong content type
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 22 16:08:52 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16111
--- Comment #2 from Galen Charlton <gmcharlt at gmail.com> ---
Comment on attachment 49400
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49400
Bug 16111 - RSS feed for OPAC search results has wrong content type
Review of attachment 49400:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=16111&attachment=49400)
-----------------------------------------------------------------
::: opac/opac-search.pl
@@ +733,4 @@
> }
>
> ## If there's just one result, redirect to the detail page
> + if ($total == 1 && $format ne 'rss' && $format ne 'opensearchdescription' ) {
I've no objection to switching to 'rss', but 'rss2' ought to continue to be
recognized as a format specifier; otherwise, we'll break existing feed
subscriptions.
Quick addition to do this would be along the lines of
my $format = $cgi->param("format") || '';
$format = 'rss' if $format =~ /rss/;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list