From 999e78ac30340053cc3b5d03c0a4e9a2b36581bc Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 17 Feb 2010 20:19:50 -0500 Subject: [PATCH] Bug 3070: Fixes RSS feed for single result search. Signed-off-by: Galen Charlton --- opac/opac-search.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.5