[sword-cvs] swordweb passagestudy.jsp,1.23,1.24

sword@www.crosswire.org sword@www.crosswire.org
Fri, 7 Nov 2003 22:00:20 -0700


Update of /usr/local/cvsroot/swordweb
In directory www:/tmp/cvs-serv3840

Modified Files:
	passagestudy.jsp 
Log Message:
Moved lexicon entry to someplace more useful


Index: passagestudy.jsp
===================================================================
RCS file: /usr/local/cvsroot/swordweb/passagestudy.jsp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- passagestudy.jsp	31 Oct 2003 16:34:15 -0000	1.23
+++ passagestudy.jsp	8 Nov 2003 05:00:18 -0000	1.24
@@ -116,30 +116,6 @@
 			<li><a href="passagestudy.jsp?strongs=<%= (strongs) ? "off" : "on" %>" title="Turn <%= (strongs) ? "off" : "on"%> Strongs numbers"><%= (strongs) ? "Hide" : "Show" %> Strongs</a></li>
 			<li><a href="passagestudy.jsp?morph=<%= (morph) ? "off" : "on" %>" title="Turn <%= (morph) ? "off" : "on" %> morphology"><%= (morph) ? "Hide" : "Show" %> Morphology</a></li>
 			</ul>
-		<%
-			if (showStrong != null) {
-				String [] keyInfo = activeModule.getKeyChildren();
-				SWModule lex =  mgr.getModuleByName(("1".equals(keyInfo[0])) ? "StrongsHebrew":"StrongsGreek");
-				lex.setKeyText(showStrong);
-		%>
-				<li>
-				<span>
-				<%= new String(lex.getRenderText().getBytes("iso8859-1"), "UTF-8") %>
-				</span>
-				</li>
-		<%	} %>
-		<%
-			if (showMorph != null) {
-				String [] keyInfo = activeModule.getKeyChildren();
-				SWModule lex =  mgr.getModuleByName(("1".equals(keyInfo[0])) ? "StrongHebrew":"Robinson");
-				lex.setKeyText(showMorph);
-		%>
-				<li>
-				<span>
-				<%= new String(lex.getRenderText().getBytes("iso8859-1"), "UTF-8") %>
-				</span>
-				</li>
-		<%	} %>
 	</div>
 
 	<div id="commentaries">
@@ -254,7 +230,28 @@
 					<%= new String(activeModule.getRenderText().getBytes("iso8859-1"), "UTF-8") %>
 					</span>
 				</div>
-			<%
+		<%
+				if (keyText.equals(activeKey)) {
+					if (showStrong != null) {
+						String [] keyInfo = activeModule.getKeyChildren();
+						SWModule lex =  mgr.getModuleByName(("1".equals(keyInfo[0])) ? "StrongsHebrew":"StrongsGreek");
+						lex.setKeyText(showStrong);
+				%>
+						<div class="lexiconentry">
+						<%= new String(lex.getRenderText().getBytes("iso8859-1"), "UTF-8") %>
+						</div>
+				<%	} %>
+				<%
+					if (showMorph != null) {
+						String [] keyInfo = activeModule.getKeyChildren();
+						SWModule lex =  mgr.getModuleByName(("1".equals(keyInfo[0])) ? "StrongHebrew":"Robinson");
+						lex.setKeyText(showMorph);
+				%>
+						<div class="lexiconentry">
+						<%= new String(lex.getRenderText().getBytes("iso8859-1"), "UTF-8") %>
+						</div>
+				<%	}
+				}
 				}
 			}
 			else {