<%-- Displays a list of the annotation associated with this subject term in a nice table form. Required parameters AnnotationsFragment requires one of the following parameters subject_term_id: the term_id of the subject. object_term_id: the term_id of the object. Optional parameters summarize: if summarize is set to a value, then we show limited information, just enough to see links. ---------------------------------------------------------------------- Example calls to AnnotationsFragment: AnnotationsFragment.jsp?subject_term_id=63850 --%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/tairtags.tld" prefix="tair" %> <% String annotation_list_key = ""; if (request.getParameter("subject_term_id") != null) annotation_list_key = request.getParameter("subject_term_id"); else if (request.getParameter("object_term_id") != null) annotation_list_key = "object:" + request.getParameter("object_term_id"); else if (request.getParameter("article_id") != null) annotation_list_key = "article:" + request.getParameter("article_id"); else throw new javax.servlet.jsp.JspException("Required parameter subject_term_id/object_term_id is missing."); %> <% boolean summarize = false; if (request.getParameter("summarize") != null) summarize = true; %> <%-- Fix me to use the summarize parameter. --%>
<%= annotation_list.getSize() %> Annotations
<%= annotation.getSubjectTermName() %> <%= annotation.getRelationshipType() %> <%= annotation.getObjectTermName() %> (<%-- --%><%= object_term.getExternalId() %><%-- --%>) by <%= annotation.getEvidenceCode() %> : <%= annotation.getEvidenceDescription() %>
<% if( pub_ref.isEmpty().equals("y")){ %> No Reference <% }else{ %> Evidence from <%= pub_ref.getTitle() %> <% } %> <% if (annotation.getEvidenceWith() != null && annotation.getEvidenceWith().length() > 0 && !annotation.getEvidenceWith().equalsIgnoreCase("\\NULL")) { %> (Evidence with: <%= annotation.getEvidenceWith() %> ) <% } %>
annotated by/date: <%= user.getName() %>/<%= annotation.getDateAnnotated() %>