[sword-svn] r278 - in trunk/webapp: . WEB-INF/classes examples

scribe at www.crosswire.org scribe at www.crosswire.org
Wed Mar 5 23:57:06 MST 2008


Author: scribe
Date: 2008-03-05 23:57:05 -0700 (Wed, 05 Mar 2008)
New Revision: 278

Added:
   trunk/webapp/versesnippet.jsp
Modified:
   trunk/webapp/WEB-INF/classes/trans_zh_CN.properties
   trunk/webapp/examples/rss.jsp
Log:
adding versesnippet.jsp to return basic data for a verse range


Modified: trunk/webapp/WEB-INF/classes/trans_zh_CN.properties
===================================================================
--- trunk/webapp/WEB-INF/classes/trans_zh_CN.properties	2007-10-26 22:31:27 UTC (rev 277)
+++ trunk/webapp/WEB-INF/classes/trans_zh_CN.properties	2008-03-06 06:57:05 UTC (rev 278)
@@ -1,4 +1,4 @@
-#Sun Aug 12 18:16:09 MST 2007
+#Sun Feb 17 16:21:55 MST 2008
 \u00001\u00005\u00005\u00009\u00005\u00009\u00003\u00006\u00001\u0000=\u0000 at b\tg\u00D1\u008B,g
 1359135079=\u5B57\u7814\u8BFB\:
 1063422380=
@@ -62,6 +62,7 @@
 -451549348=
 -705894424=
 \u0000-\u00002\u00000\u00007\u00006\u00004\u00006\u00002\u00007\u00006\u00000\u0000=\u0000
+-2063750076=
 \u0000-\u00001\u00009\u00009\u00008\u00004\u00008\u00007\u00006\u00005\u00009\u0000=\u0000
 \u00005\u00003\u00008\u00005\u00001\u00008\u00004\u00006\u00008\u0000=\u0000
 69366=FAQ
@@ -103,6 +104,7 @@
 \u00001\u00003\u00007\u00001\u00001\u00007\u00003\u00003\u00007\u00008\u0000=\u0000
 -537727964=\u4E0A\u7AE0
 \u00009\u00006\u00009\u00001\u00007\u00008\u00008\u00006\u0000=\u0000
+1156859226=
 -1197467108=\u7F8E\u56FD\u5723\u7ECF\u5B66\u4F1A
 -415321956=
 \u00001\u00000\u00008\u00006\u00007\u00004\u00009\u00007\u00003\u00004\u0000=\u0000
@@ -178,6 +180,7 @@
 177903544=An <acronym title\="Open Scripture Information Standard">OSIS</acronym> editing tool plug-in for Microsoft Word 2003 is under construction. The tool will be completed in the spring, 2004, and will let you encode texts in <acronym title\="Open Scripture Information Standard">OSIS</acronym>  for use in the tools available on this site.
 \u0000-\u00006\u00009\u00006\u00007\u00009\u00000\u00006\u00005\u00006\u0000=\u0000
 975100616=
+-765286346=
 -1655125465=\u795E\u5251\u9879\u76EE
 768802306=
 -1694612535=
@@ -207,8 +210,8 @@
 -1696462307=\u4F18\u9009\u6CE8\u89E3
 \u00001\u00003\u00007\u00005\u00008\u00004\u00003\u00001\u00006\u0000=\u0000
 \u00003\u00001\u00003\u00007\u00002\u00001\u00003\u00006\u00006\u0000=\u0000\u00B9p\u00FBQ\u00BBS\u00FAQ\u00020\u00CD\u0091\t\u0090\u00F3\u008D0R\u0000g
+\u00001\u00005\u00004\u00003\u00004\u00001\u00007\u00009\u00005\u00000\u0000=\u0000\u00E8l\u00E3\u0089\u0000\:\u0000
 230718181=
-\u00001\u00005\u00004\u00003\u00004\u00001\u00007\u00009\u00005\u00000\u0000=\u0000\u00E8l\u00E3\u0089\u0000\:\u0000
 \u0000-\u00006\u00002\u00009\u00005\u00002\u00000\u00003\u00009\u00000\u0000=\u0000\u0090\u0096\u00CF\u0085v^\u0017R\t\u0090\u00E9b
 1351884234=
 -1205385002=\u672F\u8BED\u641C\u5BFB\uFF1A
@@ -250,6 +253,7 @@
 -1121905749=
 -2128886081=\u53EF\u4ECE\u4F18\u9009\u8BD1\u672C\u533A\u9009\u8BD1\u672C
 \u0000-\u00007\u00002\u00004\u00001\u00000\u00005\u00008\u00007\u00008\u0000=\u0000
+-1712078863=
 \u0000-\u00002\u00001\u00002\u00000\u00002\u00008\u00004\u00007\u00008\u00005\u0000=\u0000
 \u00006\u00009\u00003\u00006\u00006\u0000=\u0000F\u0000A\u0000Q\u0000 \u0000
 \u0000-\u00001\u00002\u00004\u00007\u00007\u00009\u00001\u00005\u00009\u00001\u0000=\u0000

Modified: trunk/webapp/examples/rss.jsp
===================================================================
--- trunk/webapp/examples/rss.jsp	2007-10-26 22:31:27 UTC (rev 277)
+++ trunk/webapp/examples/rss.jsp	2008-03-06 06:57:05 UTC (rev 278)
@@ -1,12 +1,13 @@
 <?xml version="1.0" ?>
 <%@ page
     language="java"
-    contentType="text/rdf;charset=utf-8"
+    contentType="text/xml;charset=utf-8"
 %>
 <%@ page import="org.crosswire.sword.orb.*" %>
 <%@ page import="java.text.SimpleDateFormat" %>
 <%@ page import="java.util.Date" %>
 <%
+	response.setContentType("text/xml");
 	SWMgr mgr = SwordOrb.getSWMgrInstance(request);
 	SWModule book = mgr.getModuleByName("losung_en_99");
 	SimpleDateFormat formatter = new SimpleDateFormat("MM.dd");

Added: trunk/webapp/versesnippet.jsp
===================================================================
--- trunk/webapp/versesnippet.jsp	                        (rev 0)
+++ trunk/webapp/versesnippet.jsp	2008-03-06 06:57:05 UTC (rev 278)
@@ -0,0 +1,29 @@
+<%@ page
+    language="java"
+    contentType="text/html;charset=utf-8"
+%>
+<%@ page import="org.crosswire.sword.orb.*" %>
+<%@ page import="java.net.URLEncoder" %>
+<%
+
+	SWMgr mgr = SwordOrb.getSWMgrInstance(request);
+	SWModule book = null;
+	String ks = request.getParameter("key");
+	String modName = request.getParameter("mod");
+
+	if ((modName != null) && (ks != null)) {
+		book = mgr.getModuleByName(modName);
+		if (book != null) {
+			String k[] = book.parseKeyList(ks);
+			for (int i = 0; i < k.length; i++) {
+				String key = k[i];
+				book.setKeyText(key);
+		%>
+				<div>
+					<%= new String(book.getRenderText().getBytes("iso8859-1"), "UTF-8") %>
+				</div>
+		<%
+			}
+		}
+	}
+%>




More information about the sword-cvs mailing list