Bug 3070: Fixes RSS feed for single result search.
authorGarry Collum <gcollum@gmail.com>
Thu, 18 Feb 2010 01:19:50 +0000 (20:19 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 18 Feb 2010 16:10:33 +0000 (11:10 -0500)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
opac/opac-search.pl

index 2345783..261f274 100755 (executable)
@@ -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");