%@ 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.xml.XMLBlock" %>
<%@ page import="org.crosswire.xml.XMLDataElement" %>
<%@ page import="org.crosswire.community.projects.ntmss.data.Feature" %>
<%@ page import="org.crosswire.community.projects.ntmss.data.Document" %>
<%@ page import="org.crosswire.community.projects.ntmss.data.Page" %>
<%@ page import="org.crosswire.sword.keys.VerseKey" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.util.HashMap" %>
<%
//String displayURL="/manuscript-workspace";
String displayURL="/web/paratexbib/manuscript-workspace";
String userName = Sessions.getSessionStringValue(request, "userName");
long featureID = -1; try {featureID = Long.parseLong(request.getParameter("featureID"));} catch (Exception e){}
int diktyonNumber = -1; try {diktyonNumber = Integer.parseInt(request.getParameter("diktyonNumber"));} catch (Exception e){}
if (featureID > -1 || diktyonNumber > -1) {
int docID = -1;
int pageID = -1;
Feature feature = null;
if (diktyonNumber > -1) {
Document.SearchFilter sf = new Document.SearchFilter();
Document.SearchFilter.FeatureCriteria fc = new Document.SearchFilter.FeatureCriteria("DiktyonNumber", Feature.AuxDataField.INTVAL1, Document.SearchFilter.FeatureCriteria.OPERATOR_EQUALS, new Integer(diktyonNumber));
sf.addFeatureCriteria(fc);
Document docs[] = Document.searchDocuments(true, sf);
if (docs != null && docs.length > 0) {
for (Feature f : Feature.getFeatures(docs[0].getDocumentID())) {
if (fc.matches(f)) {
feature = f;
break;
}
}
if (featureID < -1) {
response.setContentType("text/xml");
%>
Redirect to display a manuscript, based on Diktyon Number or ParatexBib FeatureID
featureID | featureID of a specific ParatexBib tag |
diktyonNumber | Diktyon Number of the manuscript |