[sword-svn] r216 - trunk

scribe at crosswire.org scribe at crosswire.org
Thu Aug 4 05:35:10 MST 2005


Author: scribe
Date: 2005-08-04 05:35:10 -0700 (Thu, 04 Aug 2005)
New Revision: 216

Modified:
   trunk/wordsearchresults.jsp
Log:


Modified: trunk/wordsearchresults.jsp
===================================================================
--- trunk/wordsearchresults.jsp	2005-08-02 17:21:01 UTC (rev 215)
+++ trunk/wordsearchresults.jsp	2005-08-04 12:35:10 UTC (rev 216)
@@ -18,8 +18,11 @@
 	lastModType = (String) session.getAttribute("lastModType");
 
 	String resetSearchTerm = request.getParameter("searchTerm");
-	if (resetSearchTerm != null)
-		session.setAttribute("ActiveSearchTerm", resetSearchTerm);
+	if (resetSearchTerm != null) {
+		mgr.setGlobalOption("Greek Accents", "Off");
+		session.setAttribute("ActiveSearchTerm", mgr.filterText("Greek Accents", resetSearchTerm));
+		mgr.setGlobalOption("Greek Accents", "On");
+	}
 	String activeSearchTerm = (String) session.getAttribute("ActiveSearchTerm");
 
 	String range = "";
@@ -76,7 +79,9 @@
 		<%
 			SearchHit[] results = null;
 			if ((activeSearchTerm != null) && (activeSearchTerm.trim().length() > 0)) {
+				mgr.setGlobalOption("Greek Accents", "Off");
 				results = activeModule.search(activeSearchTerm, stype, soptions, range);
+				mgr.setGlobalOption("Greek Accents", "On");
 
 				//save the search reusult into the session so it can be retrived later on to browse through it
 				session.setAttribute("SearchResults", results);



More information about the sword-cvs mailing list