<%@ page import="java.text.SimpleDateFormat"%> <%@ page import="java.io.File"%> <%@ page import="java.net.URL"%> <%@ page import="java.net.URLEncoder"%> <%@ page import="java.net.MalformedURLException"%> <%@ page import="java.io.IOException"%> <%@ page import="java.io.FileOutputStream"%> <%@ page import="java.io.FileInputStream"%> <%@ page import="java.io.InputStream"%> <%@ page import="java.util.Vector"%> <%@ page import="org.crosswire.community.data.User"%> <%@ page import="org.crosswire.community.data.Document"%> <%@ page import="org.crosswire.xml.XMLRepo"%> <%@ page import="org.crosswire.sword.mgr.SWMgr"%> <%@ page import="org.crosswire.sword.modules.SWModule"%> <%@ page import="org.crosswire.sword.mgr.SWConfig"%> <%@ page import="com.objectspace.jgl.HashMap"%> <%@ page import="com.objectspace.jgl.Map"%> <%@ page import="java.util.Enumeration"%> <%@ page import="java.awt.image.BufferedImage"%> <%@ page import="java.awt.Graphics2D"%> <%@ page import="javax.imageio.ImageIO"%> <% String projectName = request.getParameter("project"); if (projectName == null) projectName = "indexing"; XMLRepo repo = XMLRepo.instance(pageContext); String user = request.getParameter("user"); String doc = request.getParameter("doc"); if (user == null || doc == null) { out.print("Must specify parameters: user,doc"); return; } { SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy"); String root = session.getServletContext().getContextPath(); String libURL = "/users/" + user + "/library"; String libPath = session.getServletContext() .getRealPath(libURL); File file = new File(libPath); if (!file.exists()) { out.print("user: "+user+" has no library"); return; } Document modDoc = (Document)repo.get(new Document(user, doc), false); if (modDoc == null) { out.print("user: "+user+" has no document named: "+doc+""); return; } %> CrossWire Community Projects
Home Project Status
<% if (modDoc != null) { String baseURL = modDoc.getBaseURL(); String ganame = modDoc.getGAName(); String desc = modDoc.getDescription(); String abbr = modDoc.getAbbrevPref(); String otherAbbr = modDoc.getAbbrevOther(); String dateMean = modDoc.getDateMean(); String dateRange = modDoc.getDateRange(); String loc = modDoc.getLocation(); String legal = ""; if (baseURL != null && baseURL.toUpperCase().indexOf("CSNTM") > -1) { legal = "The requirements that need to be satisfied for using these images in publication vary from manuscript to manuscript. Each possessing institute or individual has its own requirements. If you wish to publish any of these images, you will need to get permission from CSNTM first. We can then direct you to the contact person of the institute that owns the manuscript(s) for further instructions. CSNTM does not charge for the use of these images, though the institute that owns the manuscripts may. At minimum, CSNTM needs to be credited with the photographs and the possessing institute needs to be credited with ownership of the manuscript in all research for which these images are used."; } %>
<% for (Document.Page p: modDoc.getPages()) { %>
<%= p.getURL() %>
<% try { String cacheName = libURL + "/modules/"+doc+"/cache/" + p.getURL().hashCode() + ".jpg"; String target = baseURL + "/"+p.getURL(); %> <%= p.getDescription() %> <% } catch (Exception e) {e.printStackTrace();} %>
Description<%= p.getDescription() %>
Biblical Coverage<%= p.getBibleCoverage() %>
<% } %>

<% } %> <% } %>