[sword-svn] r443 - trunk/webapp

scribe at crosswire.org scribe at crosswire.org
Mon Jan 15 11:53:29 MST 2018


Author: scribe
Date: 2018-01-15 11:53:28 -0700 (Mon, 15 Jan 2018)
New Revision: 443

Modified:
   trunk/webapp/fetchdata.jsp
Log:
fixed subscript


Modified: trunk/webapp/fetchdata.jsp
===================================================================
--- trunk/webapp/fetchdata.jsp	2017-08-19 17:56:21 UTC (rev 442)
+++ trunk/webapp/fetchdata.jsp	2018-01-15 18:53:28 UTC (rev 443)
@@ -348,7 +348,7 @@
 										if (book.getKeyChildren()[VERSEKEY_CHAPTER].equals("0")) {
 %><div type="incipit" n="B<%= String.format("%02d", Integer.parseInt(book.getKeyChildren()[VERSEKEY_BOOK])) %>incipit"><ab><%
 										}
-										else {
+										else if (book.getKeyChildren()[VERSEKEY_CHAPTER].equals("1")) {
 %><div type="explicit" n="B<%= String.format("%02d", Integer.parseInt(book.getKeyChildren()[VERSEKEY_BOOK])) %>explicit"><ab><%
 										}
 									}
@@ -391,7 +391,9 @@
 								// ----- header for trier tinymce editor ------
 								if ("tei".equals(format)) {
 									if (book.getKeyChildren()[VERSEKEY_VERSE].equals("0")) {
+										if (book.getKeyChildren()[VERSEKEY_CHAPTER].equals("0") || book.getKeyChildren()[VERSEKEY_CHAPTER].equals("1")) {
 %></ab></div><%
+										}
 									} else {
 %></ab><%
 									}




More information about the sword-cvs mailing list