<%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="xtags" uri="http://jakarta.apache.org/taglibs/xtags-1.0" %> <%@ page import="edu.stanford.sulair.mjf.favorites.FavoritesConstants" %> <%@ page import="edu.stanford.sulair.mjf.search.SearchConstants" %> <%@ page import="edu.stanford.sulair.mjf.site.Constants" %> <%@ page import="edu.stanford.sulair.mjf.util.Validator" %> <% /* Remove the page number parameter for facet links. The reason for this is that the * page number parameter gets propagated to facet links which can cause facet links * to return zero results. For example, clicking on pagination link 12 followed by a * facet link that contains only, say, 5 results, will attempt to return the 5 results * on page 12 which will not exist. To avoid this, remove the page number parameter * from the query parameters and hardcode the page number parameter to 1 in all facet * links below. */ String facet_query_params = (String)request.getQueryString().replaceAll( "&page=[0-9]*", "" ); /* Remove the sort parameter for facet links since new sort parameters are appended to the * URL for every sort request. */ facet_query_params = facet_query_params.replaceAll( "&sort=\\w*", "" ); %> <%=request.getAttribute( Constants.SESSION_SEARCH_RESULTS_KEY )%>
( results) Sort by:
: |
" alt="" border="0" />
<%=FavoritesConstants.SOURCE_SEARCH_RESULTS%> <%=FavoritesConstants.SOURCE_SEARCH_RESULTS%>
  • ,
<% if( sort.equals( "item_number" ) ) { %>
<% } %>
Displaying results of found
<% /* Set the user's XML search result parameter that is stored in the session to null. * It's crucial to set this to null here because a user could potentially use the * browser's back button to return to any previous page, including a previous search * results page. If the XML search results parameter contains, say, browse results, * and a user returns to a manuscript description search results page, the page won't * render correctly. */ request.setAttribute( Constants.SESSION_SEARCH_RESULTS_KEY, null ); %>