[sword-svn] r365 - trunk/webapp

scribe at crosswire.org scribe at crosswire.org
Mon Mar 9 16:22:16 MST 2009


Author: scribe
Date: 2009-03-09 16:22:16 -0700 (Mon, 09 Mar 2009)
New Revision: 365

Modified:
   trunk/webapp/swordweb.js
Log:
added Tregelles image support


Modified: trunk/webapp/swordweb.js
===================================================================
--- trunk/webapp/swordweb.js	2009-02-23 13:37:41 UTC (rev 364)
+++ trunk/webapp/swordweb.js	2009-03-09 23:22:16 UTC (rev 365)
@@ -193,6 +193,7 @@
             '<img border="0" src="images/x.png"/>'+
             '</a>'+
             '</div>';
+	var page = '';
 	skeyPre=""
 	/* check for aliases */
 	if (mod == "G") {
@@ -204,6 +205,11 @@
 		mod = "StrongsHebrew";
 	}
 
+	if (fnnum.length > 2 && fnnum.substring(0,2) == 'p:') {
+		page = fnnum.substring(2);
+		fnnum = '';
+	}
+
 	b=document.getElementById("onlywlayer");
 	if (b==null) {
 		b=document.createElement("div");
@@ -239,6 +245,11 @@
 							resultBody += "<dt><a href=\"wordsearchresults.jsp?mod=LXX&searchTerm=lemma:"+skeyPre+encodeURIComponent(key)+"&colorKey="+encodeURIComponent(key)+"&colorMorph="+encodeURIComponent(extratext)+"\"><t:t>Search for </t:t>"+key+"<t:t> in LXX</t:t></a></dt>";
 							resultBody += "</dl>";
 						}
+						if (page != '') {
+							resultBody += "<dl>";
+							resultBody += "<dt><a href=\"http://community.crosswire.org/modules/papyri/?site=http://crosswire.org/study/pageImages/"+mod+"/&image="+page+".jpg\"><t:t>View Image of Page </t:t>"+page+"<t:t> in </t:t>"+mod+"</a></dt>";
+							resultBody += "</dl>";
+						}
 					}
 					resultBody += "</div></div>";
 					b.innerHTML=windowBar+resultBody;




More information about the sword-cvs mailing list