<%@ page language="java" contentType="text/html;charset=utf-8" %> <%@ include file="init.jsp" %> <%@ page import="org.crosswire.sword.orb.*" %> <%@ page import="org.crosswire.xml.*" %> <%@ page import="java.util.Arrays" %> <% String resetModule = request.getParameter("mod"); if (resetModule != null) { session.setAttribute("ActiveModule", resetModule); } String activeModuleName = (String) session.getAttribute("ActiveModule"); if (activeModuleName == null) activeModuleName = defaultBible; SWModule activeModule = mgr.getModuleByName(activeModuleName); String resetKey = request.getParameter("key"); if (resetKey != null) { resetKey = new String(resetKey.getBytes("iso8859-1"), "UTF-8"); activeModule.setKeyText(resetKey); session.setAttribute("ActiveKey", activeModule.getKeyText()); } String activeKey = (String) session.getAttribute("ActiveKey"); if (activeKey == null) { activeKey = "john 1:1"; session.setAttribute("ActiveKey", activeKey); } int contextVerses = 0; try { contextVerses = Integer.parseInt(request.getParameter("context")); } catch (Exception e) {} mgr.setGlobalOption("Footnotes", "Off"); mgr.setGlobalOption("Cross-references", "Off"); SWModule eusVs = mgr.getModuleByName("Eusebian_vs"); SWModule eusNum = mgr.getModuleByName("Eusebian_num"); String promoLine = activeModule.getConfigEntry("ShortPromo"); eusVs.setKeyText(activeKey); String num = eusVs.getStripText().trim(); eusNum.setKeyText(num); String detailsText = eusNum.getRawEntry(); XMLTag details = new XMLBlock(detailsText); String []nums = (num + " " + details.getAttribute("assocates")).split(" "); Arrays.sort(nums); String lang = activeModule.getConfigEntry("Lang"); boolean rtol = ("RtoL".equalsIgnoreCase(activeModule.getConfigEntry("Direction"))); %>

Translations:

Preferred Translations

<% if (prefBibles.size() > 0) { %> <% } else { %>
  • Preferred Translations can be selected from the preferences tab
<% } %>

All Translations

<% if (modInfo.length > 0) { %> <% } %>

<%= activeModule.getDescription().replaceAll("&", "&") %>

<%= promoLine %>
<% String copyLine = activeModule.getConfigEntry("ShortCopyright"); if (copyLine.equalsIgnoreCase("")) { copyLine = ""; } if (activeModule.getCategory().equals("Cults / Unorthodox / Questionable Material")) { copyLine = "WARNING: This text is considered unorthodox by most of Christendom. " + copyLine; } %>
<%= copyLine %>

Extra context verses: 0

<%= activeKey %>

Eusebian Number <%=num%> (Table <%=details.getAttribute("table")%>)

<% // if we're only showing 1 verse of context (default), we'll include a simple rendering here // to help with search engines which won't include ajax content added after page load if (contextVerses == 0) { %> <% for (String n : nums) { if (n.trim().length() < 1) continue; %> <% } %> <% for (String n : nums) { if (n.trim().length() < 1) continue; eusNum.setKeyText(n.trim()); eusNum.getRenderText(); detailsText = eusNum.getRawEntry(); XMLTag d = new XMLBlock(detailsText); %> <% } %> <% for (String n : nums) { if (n.trim().length() < 1) continue; eusNum.setKeyText(n.trim()); eusNum.getRenderText(); detailsText = eusNum.getRawEntry(); XMLTag d = new XMLBlock(detailsText); String keyList[] = activeModule.parseKeyList(d.getAttribute("osisRef")); %> <% } %>
<%= n %>
<%= d.getAttribute("osisRef") %>
> <% for (String k : keyList) { activeModule.setKeyText(k); String v = activeModule.getRenderText(); String keyText = activeModule.getKeyText(); if (rtol) { %> <% } %> "> <%= activeModule.getKeyChildren()[3]%><%= v %> <% if (rtol) { %> <% } %> <% } %>
<% } %>