<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>
<%-- @(#)query.jsp --%>
<%@ taglib uri="/tld/search.tld" prefix="search" %>

<!-- Beginning of Main search section -->
<search:setQueryLanguage ql= "search"/>
<search:setRDMType rdmType= "rd-request"/>
<search:setDatabase database= "$dbname"/>
<search:setSessionID sessionID="$accessToken"/>
<search:setRDMServer rdmServer= "$searchServer"/>
<search:setViewHits viewHits= "$hitNumber"/>
<search:setViewOrder viewOrder= "$viewOrder"/>
<search:setViewAttributes viewAttributes= "url,title,description,rd-rating,author,last-modified,rd-last-changed,rd-reference-id, rd-num-rating,rd-sum-rating,rd-peak-rating,rd-reference-url"/>

<% String pg = "1"; %>
<% if (request.getParameter("page") != null) { %>
    <% pg = (String)request.getParameter("page"); %>
<% } %>
<search:setPage page= "<%=pg%>"/>

<%-- create the search query and pass it to Search --%>
<search:setQuery query= "$query"/>
<search:executeSearch/>
