Changeset 28580 for main/trunk


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.

Location:
main/trunk/greenstone3/web/interfaces/default/transform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r28558 r28580  
    506506                                    </xsl:with-param>
    507507                                    <xsl:with-param name="hideSingle">false</xsl:with-param>
     508                                    <xsl:with-param name="quickSearch">true</xsl:with-param>
    508509                                </xsl:apply-templates>
    509510                            </span>
  • 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.