Ignore:
Timestamp:
2013-11-01T11:47:14+13:00 (10 years ago)
Author:
jlwhisler
Message:

Added a quickSearch parameter for the display of a single search index. The previous edit added a colon after the search index name (if there is only one index), but this should only appear in the quick search area, not in the search forms. Now, if quickSearch is set to "true", the colon will appear; otherwise it will not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/query-common.xsl

    r28559 r28580  
    7070        <xsl:param name="hideSingle">false</xsl:param>
    7171        <xsl:param name="default"/>
     72        <xsl:param name="quickSearch">false</xsl:param>
    7273        <xsl:choose>
    7374            <xsl:when test="count(option) = 1">
    7475                <xsl:if test="$hideSingle = 'false'">
    75                     <xsl:value-of select="option/displayItem[@name='name']"/>:
     76                    <xsl:value-of select="option/displayItem[@name='name']"/><xsl:if test="$quickSearch = 'true'">: </xsl:if>
    7677                </xsl:if>
    7778                <input type='hidden' name='{$ns}{@name}'><xsl:attribute name='value'><xsl:value-of  select='option/@name'/></xsl:attribute></input>
Note: See TracChangeset for help on using the changeset viewer.