forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r999887 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/pelt/html/search-input.contract.xml
Date Wed, 22 Sep 2010 12:05:27 GMT
Author: thorsten
Date: Wed Sep 22 12:05:27 2010
New Revision: 999887

URL: http://svn.apache.org/viewvc?rev=999887&view=rev
Log:
Fixing blanks and line breaks which caused form submit exceptions

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/pelt/html/search-input.contract.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/pelt/html/search-input.contract.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/pelt/html/search-input.contract.xml?rev=999887&r1=999886&r2=999887&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/pelt/html/search-input.contract.xml
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/pelt/html/search-input.contract.xml
Wed Sep 22 12:05:27 2010
@@ -72,31 +72,25 @@ in your view!!! If you are not, the cont
                     <!-- Form action -->
                     <xsl:variable name="search-action">
                       <xsl:choose>
-                        <xsl:when test="$search-input/search/@provider = 'lucene'">
-
-                          <xsl:value-of select="$root" />
-                          <xsl:value-of select="$search-lucene" />
-                        </xsl:when>
-                        <xsl:otherwise>
-                        http://www.google.com/search</xsl:otherwise>
+                        <xsl:when test="$search-input/search/@provider = 'lucene'"><xsl:value-of
select="concat($root,$search-lucene)" /></xsl:when>
+                        <xsl:otherwise>http://www.google.com/search</xsl:otherwise>
                       </xsl:choose>
                     </xsl:variable>
                     <!-- Form query field -->
                     <xsl:variable name="search-query">
                       <xsl:choose>
-                        <xsl:when test="$search-input/search/@provider = 'lucene'">
-                        queryString</xsl:when>
+                        <xsl:when test="$search-input/search/@provider = 'lucene'">queryString</xsl:when>
                         <xsl:otherwise>q</xsl:otherwise>
                       </xsl:choose>
                     </xsl:variable>
                     <!-- Search form generation -->
-                    <form method="get" action="{$search-action}">
+                    <form method="get" action="{normalize-space($search-action)}">
                       <div class="search-hidden">
                         <input type="hidden" name="sitesearch"
                         value="{$search-input/search/@domain}" />
                       </div>
                       <div class="search-field">
-                        <input type="text" name="{$search-query}"
+                        <input type="text" name="{normalize-space($search-query)}"
                         size="{$input-size}"
                         value="{normalize-space($search-prompt)}"
                         onfocus="getBlank(this, '{normalize-space($search-prompt)}');"



Mime
View raw message