[sword-svn] r351 - in trunk/webapp: . layouts

refdoc at www.crosswire.org refdoc at www.crosswire.org
Wed Nov 12 14:17:34 MST 2008


Author: refdoc
Date: 2008-11-12 14:17:33 -0700 (Wed, 12 Nov 2008)
New Revision: 351

Modified:
   trunk/webapp/init.jsp
   trunk/webapp/layouts/base-layout.jsp
Log:
introduction of configurable meta keywords for whole site. sane defaults.



Modified: trunk/webapp/init.jsp
===================================================================
--- trunk/webapp/init.jsp	2008-11-12 01:35:25 UTC (rev 350)
+++ trunk/webapp/init.jsp	2008-11-12 21:17:33 UTC (rev 351)
@@ -32,8 +32,8 @@
 	static String languages = null;
 	static Vector linkName = null;
 	static Vector linkAddress = null;
+	static String metaContent = null;
 
-
 %>
 
 <%
@@ -163,7 +163,7 @@
                                 linkName.add("Society of Biblical Literature");
                                 linkAddress.add("http://sbl-site.org");
 			}      
-
+			metaContent = swordWebConfig.getProperty("metaKeywords","bible, jesus, christ");
 		}
 	}
 
@@ -395,6 +395,8 @@
 	session.setAttribute("Javascript", javascript);
 	session.setAttribute("showTabs", showTabs);
 	session.setAttribute("lang", appLang);
+	session.setAttribute("meta", metaContent);
+
 	mgr.setJavascript(!"Off".equalsIgnoreCase(javascript));
 	mgr.setGlobalOption("Headings", ("Off".equalsIgnoreCase(headings)) ? "Off":"On");
 	mgr.setGlobalOption("Footnotes", ("On".equalsIgnoreCase(footnotes)) ? "On":"Off");

Modified: trunk/webapp/layouts/base-layout.jsp
===================================================================
--- trunk/webapp/layouts/base-layout.jsp	2008-11-12 01:35:25 UTC (rev 350)
+++ trunk/webapp/layouts/base-layout.jsp	2008-11-12 21:17:33 UTC (rev 351)
@@ -19,6 +19,7 @@
 		searchTerm = new String(searchTerm.getBytes("iso8859-1"), "UTF-8");
 	}
 	else searchTerm = "";
+	String metaContent = (String)session.getAttribute("meta");
 %>
 
 <?xml version="1.0" encoding="utf-8"?>
@@ -26,6 +27,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= lang %>" lang="<%= lang %>">
 
 <head profile="http://www.w3.org/2000/08/w3c-synd/#">
+<meta name="keywords" content="<%= metaContent %>">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<title><t:t>OSIS Web: </t:t><tiles:getAsString name="title"/></title>
 




More information about the sword-cvs mailing list