<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page trimDirectiveWhitespaces="true" %> <%@ page import="org.crosswire.utils.Sessions" %> <%@ page import="org.crosswire.community.projects.ntmss.data.ProjectManagement" %> <%@ page import="org.crosswire.community.projects.ntmss.data.ProjectManagement.DocumentWithStatus" %> <% response.setContentType("text/xml"); String userName = Sessions.getSessionStringValue(request, "userName"); Integer limitToProject = null; try { limitToProject = Integer.parseInt(request.getParameter("limitToProject")); } catch(Exception e) {} boolean anonymous = userName == null || userName.length() == 0; DocumentWithStatus docs[] = ProjectManagement.getIndexingStatus(limitToProject); %> Results: <%=docs.length%> <% for (DocumentWithStatus doc : docs) { int percentComplete = (int)(((double)(doc.getPagesIndexed() + doc.getPagesNoIdx()) / doc.getPageCount()) * 100); %>
 <%= percentComplete %>% Complete (View) <% if (percentComplete > 0) { // for stupid ie %>
 
<% } // for stupid ie %>
<% if (doc.getAssignedTo() == null || doc.getAssignedTo().length() < 1) { if (!anonymous) { %> <% } else { %>   <% } } else { %> <%= doc.getAssignedTo() %> <% } %> <%=doc.getDocumentID()%> <%=doc.getGANumber()%> <%=doc.getOriginYearDescription()%> <%=doc.getLeavesDescription()%> <% } %>