You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/11/16 16:21:01 UTC

svn commit: r345034 - /lenya/trunk/src/modules/sitetree/xslt/navigation/search.xsl

Author: michi
Date: Wed Nov 16 07:20:58 2005
New Revision: 345034

URL: http://svn.apache.org/viewcvs?rev=345034&view=rev
Log:
search field added

Modified:
    lenya/trunk/src/modules/sitetree/xslt/navigation/search.xsl

Modified: lenya/trunk/src/modules/sitetree/xslt/navigation/search.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/sitetree/xslt/navigation/search.xsl?rev=345034&r1=345033&r2=345034&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/xslt/navigation/search.xsl (original)
+++ lenya/trunk/src/modules/sitetree/xslt/navigation/search.xsl Wed Nov 16 07:20:58 2005
@@ -1,42 +1,50 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
-  Copyright 1999-2004 The Apache Software Foundation
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-
-<!-- $Id: search.xsl 76019 2004-11-16 20:13:32Z gregor $ -->
-
-<xsl:stylesheet version="1.0"
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0"
-    xmlns="http://www.w3.org/1999/xhtml"
-    exclude-result-prefixes="nav"
-    >
-    
-<xsl:param name="area"/>
-<xsl:param name="root"/>
-
-<xsl:template match="nav:site">
-  <div id="search">
-    <form action="{$root}../search-{$area}/lucene"><p><input class="searchfield" type="text" name="queryString" alt="Search field"/><input class="searchsubmit" type="submit" value="Search" name="find"/></p></form>
-      </div>
-</xsl:template>
-
-<xsl:template match="@*|node()">
-  <xsl:copy>
-    <xsl:apply-templates select="@*|node()"/>
-  </xsl:copy>
-</xsl:template>
-
-</xsl:stylesheet> 
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: search.xsl 76019 2004-11-16 20:13:32Z gregor $ -->
+
+
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0"
+    xmlns="http://www.w3.org/1999/xhtml"
+    exclude-result-prefixes="nav"
+    >
+
+<xsl:template match="nav:site">
+  <div id="search">
+    <form action="?">
+      <p>
+        <input class="searchfield" type="text" name="queryString" alt="Search field"/>
+	<select name="lenya.usecase">
+	  <option selected="true" value="lucene.search">Internal</option>
+	  <option value="lucene.externalOpensearch">External</option>
+	</select>
+        <input type="hidden" value="20" name="pageLength"/>
+        <input class="searchsubmit" type="submit" value="Go"/>
+      </p>
+    </form>
+  </div>
+</xsl:template>
+
+<xsl:template match="@*|node()">
+  <xsl:copy>
+    <xsl:apply-templates select="@*|node()"/>
+  </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet> 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org