[sword-svn] r254 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Mon May 22 05:00:26 MST 2006
Author: scribe
Date: 2006-05-22 05:00:26 -0700 (Mon, 22 May 2006)
New Revision: 254
Modified:
trunk/webapp/swordweb.js
trunk/webapp/wordsearchresults.jsp
Log:
Added support for Hebrew lemma colorizing
Modified: trunk/webapp/swordweb.js
===================================================================
--- trunk/webapp/swordweb.js 2006-05-22 11:23:16 UTC (rev 253)
+++ trunk/webapp/swordweb.js 2006-05-22 12:00:26 UTC (rev 254)
@@ -104,7 +104,8 @@
wd_morph = '';
wd_wnum = '';
- if ((mod == 'G') || (mod == 'StrongsGreek')) {
+ if ((mod == 'G') || (mod == 'StrongsGreek')
+ || (mod == 'H') || (mod == 'StrongsHeb')) {
wd_strong = key;
wd_morph = extratext;
wd_wnum = wordnum;
@@ -238,7 +239,8 @@
}
}
xmlhttp.send(null);
- if (mod.substring(0,12) == 'StrongsGreek') {
+ if ((mod.substring(0,12) == 'StrongsGreek')
+ || (mod.substring(0,10) == 'StrongsHeb')) {
colorLemmas(wordnum, key, extratext);
}
}
Modified: trunk/webapp/wordsearchresults.jsp
===================================================================
--- trunk/webapp/wordsearchresults.jsp 2006-05-22 11:23:16 UTC (rev 253)
+++ trunk/webapp/wordsearchresults.jsp 2006-05-22 12:00:26 UTC (rev 254)
@@ -182,14 +182,14 @@
<% }
else {
%>
- <li><a href="wordsearchresults.jsp?start=<%= i * resultLimit.intValue() %>" title="page <%= i+1 %> (<%= results[i * resultLimit.intValue()].key %>) of search results"><%= i+1 %></a></li>
+ <li><a href="wordsearchresults.jsp?start=<%= i * resultLimit.intValue() %>&colorKey=<%=colorKey%>&colorMorph=<%=colorMorph%>" title="page <%= i+1 %> (<%= results[i * resultLimit.intValue()].key %>) of search results"><%= i+1 %></a></li>
<%
}
}
int lastPage = (results.length / resultLimit.intValue()) + ((results.length % resultLimit.intValue()) > 0 ? 1 : 0) -1;
if (navEnd < lastPage) {
%>
- <li> [...] <a href="wordsearchresults.jsp?start=<%= lastPage*resultLimit.intValue() %>" title="Last page (<%= results[lastPage].key %>) of search results"><%= lastPage+1 %></a></li>
+ <li> [...] <a href="wordsearchresults.jsp?start=<%= lastPage*resultLimit.intValue() %>&colorKey=<%=colorKey%>&colorMorph=<%=colorMorph%>" title="Last page (<%= results[lastPage].key %>) of search results"><%= lastPage+1 %></a></li>
<%
}
%>
More information about the sword-cvs
mailing list