[Koha-patches] [PATCH] Bug 3070: Fixes RSS feed for single result search.

Garry Collum gcollum at gmail.com
Thu Feb 18 02:19:50 CET 2010


---
 opac/opac-search.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index 2345783..261f274 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");
-- 
1.5.6.5




More information about the Koha-patches mailing list