[sword-svn] r390 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Sat Oct 1 11:10:21 MST 2011
Author: scribe
Date: 2011-10-01 11:10:21 -0700 (Sat, 01 Oct 2011)
New Revision: 390
Modified:
trunk/webapp/fetchdata.jsp
trunk/webapp/swordweb.js
Log:
Upped responses back for tc to 40
Added ugly hack for whm
Modified: trunk/webapp/fetchdata.jsp
===================================================================
--- trunk/webapp/fetchdata.jsp 2011-09-23 18:21:35 UTC (rev 389)
+++ trunk/webapp/fetchdata.jsp 2011-10-01 18:10:21 UTC (rev 390)
@@ -64,7 +64,7 @@
catch (Exception e) { activeKey = key; } // not an error, just hopefully have entire versekey already
String vk[] = book.parseKeyList(activeKey);
activeKey=vk[0];
- StringBuffer vmrResponse = HTTPUtils.postURL("http://vmr-dev.uni-muenster.de/community/vmr/api/metadata/liste/search/", "biblicalcontent="+activeKey+"&detail=page&limit=20");
+ StringBuffer vmrResponse = HTTPUtils.postURL("http://vmr-dev.uni-muenster.de/community/vmr/api/metadata/liste/search/", "biblicalcontent="+activeKey+"&detail=page&limit=40");
XMLBlock manuscripts = new XMLBlock(vmrResponse.toString());
%>
<p><b>Some Manuscript Witnesses for <%=vk[0]%></b></p>
Modified: trunk/webapp/swordweb.js
===================================================================
--- trunk/webapp/swordweb.js 2011-09-23 18:21:35 UTC (rev 389)
+++ trunk/webapp/swordweb.js 2011-10-01 18:10:21 UTC (rev 390)
@@ -196,6 +196,7 @@
function p(mod, key, wordnum, extratext, fnnum, srcMod) {
+ if (key.substring(0,1) == '@') mod = 'stronghebkey';
windowBar=
'<div align="right">'+
'<a href="#" onclick="p(\''+mod+'\', \''+key+'\', \''+wordnum+'\', \''+extratext+'\', \''+fnnum+'\', \''+srcMod+'\');return false;">'+
@@ -243,7 +244,12 @@
if (mod != "betacode") {
resultBody="<div class=\"verse\">"+xmlhttp.responseText + "<br/>"+"<div id=\"dm\">";
if ((extratext != null) && (extratext.length > 0)) {
- resultBody += "<a href=\"#\" onclick=\"pd('"+extratext+"');return false;\">"+extratext+"</a>";
+ if (mod == 'strongshebkey') {
+ resultBody += "<a href=\"#\" onclick=\"pd('"+extratext+"', 'whmmorph');return false;\">"+extratext+"</a>";
+ }
+ else {
+ resultBody += "<a href=\"#\" onclick=\"pd('"+extratext+"');return false;\">"+extratext+"</a>";
+ }
}
resultBody += "</div>";
if ((fnnum == null) || (fnnum == '')) {
More information about the sword-cvs
mailing list