%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page import="org.crosswire.community.projects.ntmss.INTF" %>
<%@ page import="org.crosswire.community.projects.ntmss.data.Document" %>
<%@ page import="java.io.File" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%
int days = 10; try { days = Integer.parseInt(request.getParameter("days")); } catch (Exception e) {}
%>
NTVMR Recent Additions
http://ntvmr.uni-muenster.de
Latest additions to the New Testament Virtual Manuscript Room. Last modification date given for each document. Numbers reflect activity for the past <%=days%> days.
<%=new Date()%>
<%= new Date()%>
<%
response.setContentType("text/xml");
Document docs[] = Document.getRecentlyUpdatedDocuments(days);
if (docs.length == 1 && docs[0].getValue("DOCUMENTID") == null) docs = new Document[0];
for (int i = 0; i < docs.length; ++i) {
Document doc = docs[i];
out.print(doc.getGANumber());
%>
-
<%=doc.getGANumber()%> (<%=doc.getDocumentID()%>)
http://ntvmr.uni-muenster.de/manuscript-workspace?docID=<%=doc.getDocumentID()%>
<%=df.format(doc.getDateValue("MODDATE"))%>
http://ntvmr.uni-muenster.de/manuscript-workspace?docID=<%=doc.getDocumentID()%>&modified=<%=df.format(doc.getDateValue("MODDATE"))%>
<p>
<%
int count = doc.getIntValue("IMAGECOUNT");
String userID = doc.getStringValue("IMAGEUSERID");
if (count > 0) {
%>
<%= count %> image<%=count != 1?"s":""%> added <%= userID != null ? " by <a href=\"/web/"+userID+"\">"+userID+"</a>":""%><br/>
<%
}
count = doc.getIntValue("VERSECOUNT");
userID = doc.getStringValue("VERSEUSERID");
if (count > 0) {
%>
<%= count %> verse<%=count != 1?"s":""%> indexed <%= userID != null ? " by <a href=\"/web/"+userID+"\">"+userID+"</a>":""%><br/>
<%
}
count = doc.getIntValue("FEATURECOUNT");
userID = doc.getStringValue("FEATUREUSERID");
if (count > 0) {
%>
<%= count %> <a href="/manuscript-workspace?docID=<%=doc.getDocumentID()%>&searchType=clips&featureCode=%40%3D<%=userID%>"> feature<%=count != 1?"s":""%> annotated</a> <%= userID != null ? " by <a href=\"/web/"+userID+"\">"+userID+"</a>":""%><br/>
<%
}
%>
</p>
<%
}
%>
<%!
private static SimpleDateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z");
%>