<%@ taglib uri="/WEB-INF/tairtags.tld" prefix="tair" %> <%-- A results page specialized to display hits centered on article. --%> <% java.util.List results = (java.util.List) request.getAttribute("results"); %> <%@ page import="pub.utils.*, java.util.*, pub.search.HitCollection " %> <% int start = Integer.parseInt(""+request.getAttribute("start")); %> <% int limit = 20; %> <% // for easy display the hits for articles HitCollection hit_collection = new HitCollection(); if (request.getAttribute( "hitCollection") != null ){ hit_collection = (HitCollection) request.getAttribute( "hitCollection"); } %> <% int hit_count = 1; for (int i = start; i <= results.size() && i - start < limit; i++) { String article_acc = (String)results.get(i- 1); %> <% int hit_size = ((List)hit_collection.getHitsFor (article_acc)).size(); %> " colspan="100%"> <% List hit_ids = (List) hit_collection.getHitsFor (article_acc); for ( int hit_index = 0; hit_index < hit_size; hit_index ++ ){ %> <% if ( hit_index >= 1 ){ %> "> <% } %> <% if ( hit_index >= 1 ){ %> <% } %> <% hit_count++; %> <% } %> <% } %>

Search results

<%= results.size() %> papers found.

Jump to page " max_position="<%= ""+results.size() %>" />
  You must log in to commit changes to the database
# Article Title and Abstract Term Hit details Hit Valid?
> <%= i %>. >
<%= hitBean.getTerm_type() %> <%= term.getName() %> ( pub:<%= term.isGene()? term.getPub_gene_id(): term.getTermId() %>)
<% if (hitBean.getTermBean().isObsolete()) { %> (OBSOLETE) <% } %> <% if ( term.getAliasNames()!= null && term.getAliasNames().size()>0 ){ %> Alias: <%= StringUtils.join(" ",term.getAliasNames()) %>
<% } %> <% if (term.isGene()){ %> Accession:<%= term.getGene_tair_obj_id() %> (TAIR) <% } %> <% if (term.isGoId()){ String external_id = term.getExternalId().substring(3); String query="query="+external_id+"&view=query&search_constraint=terms"; %> GO:<%= external_id %> <% } %>
<%= hitBean.getMatch_nr() %> <%= hitBean.getIn_title().equals("y")? "[title]":"" %> <%= hitBean.getIn_abstract().equals("y")? "[abstract]":"" %> Searched on <%= hitBean.getSearch_date() %> <% if (! StringUtils.isEmpty(hitBean.getUpdated_by())){ %> <% } %>
> Yes > No
> Maybe > Unverified
Updated by: <%= user.getFullname() %> on <%= hitBean.getDate_updated() %>
 
"/>
Add Comment:
  You must log in to commit changes to the database
Jump to page " max_position="<%= ""+results.size() %>" />