From: Garry Collum Date: Thu, 18 Feb 2010 01:19:50 +0000 (-0500) Subject: Bug 3070: Fixes RSS feed for single result search. X-Git-Tag: v3.02.00-alpha2~336 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=999e78ac30340053cc3b5d03c0a4e9a2b36581bc;p=koha.git Bug 3070: Fixes RSS feed for single result search. Signed-off-by: Galen Charlton --- diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 2345783ef8..261f274c19 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -512,7 +512,8 @@ for (my $i=0;$i<=@servers;$i++) { } } ## If there's just one result, redirect to the detail page - if ($total == 1) { + if ($total == 1 && $format ne 'rss2' + && $format ne 'opensearchdescription' && $format ne 'atom') { my $biblionumber=$newresults[0]->{biblionumber}; if (C4::Context->preference('BiblioDefaultView') eq 'isbd') { print $cgi->redirect("/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=$biblionumber");