You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/04/18 23:22:51 UTC

svn commit: r161803 - incubator/nutch/trunk/src/web/jsp/search.jsp

Author: cutting
Date: Mon Apr 18 14:22:51 2005
New Revision: 161803

URL: http://svn.apache.org/viewcvs?view=rev&rev=161803
Log:
Add RSS links.  Eventually this whole page should turn into a
stylesheet that processes the output of ../opensearch.

Modified:
    incubator/nutch/trunk/src/web/jsp/search.jsp

Modified: incubator/nutch/trunk/src/web/jsp/search.jsp
URL: http://svn.apache.org/viewcvs/incubator/nutch/trunk/src/web/jsp/search.jsp?view=diff&r1=161802&r2=161803
==============================================================================
--- incubator/nutch/trunk/src/web/jsp/search.jsp (original)
+++ incubator/nutch/trunk/src/web/jsp/search.jsp Mon Apr 18 14:22:51 2005
@@ -95,7 +95,9 @@
     .getLocale().getLanguage();
   String requestURI = HttpUtils.getRequestURL(request).toString();
   String base = requestURI.substring(0, requestURI.lastIndexOf('/'));
-
+  String rss = "../opensearch?query="+htmlQueryString
+    +"&hitsPerSite="+hitsPerSite
+    +"&hitsPerPage="+hitsPerPage;
 %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <%
   // To prevent the character encoding declared with 'contentType' page
@@ -112,6 +114,7 @@
 <title>Nutch: <i18n:message key="title"/></title>
 <link rel="icon" href="img/favicon.ico" type="image/x-icon"/>
 <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"/>
+<link rel="alternate" type="application/rss+xml" title="RSS" href="<%=rss%>"/>
 <jsp:include page="include/style.html"/>
 <base href="<%= base  + "/" + language %>/">
 </head>
@@ -265,6 +268,11 @@
 <%
     }
 %>
+
+<table bgcolor="3333ff" align="right">
+<tr><td bgcolor="ff9900"><a href="<%=rss%>"><font color="ffffff"><b>RSS</b>
+</font></a></td></tr>
+</table>
 
 <p>
 <a href="http://www.nutch.org/">