Bug 3337 - RSS link is not correct for searches without results
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 14 Apr 2012 22:09:34 +0000 (00:09 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 19 Apr 2012 09:21:24 +0000 (11:21 +0200)
RSS links for searches without results didn't have the search terms.

To test:
- Search for something with results and check RSS link
- Search for something with no results and check RSS link

In both cases your search should show up in the link.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
RSS Link works in both cases listed in test plan.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
opac/opac-search.pl

index 176bc12..5f3ad86 100755 (executable)
@@ -737,7 +737,13 @@ for (my $i=0;$i<@servers;$i++) {
         }
         # no hits
         else {
-            $template->param(searchdesc => 1,query_desc => $query_desc,limit_desc => $limit_desc);
+            $template->param(
+                searchdesc => 1,
+                query_desc => $query_desc,
+                limit_desc => $limit_desc,
+                query_cgi  => $query_cgi,
+                limit_cgi  => $limit_cgi
+            );
         }
     } # end of the if local
     # asynchronously search the authority server