Changeset 14585

Show
Ignore:
Timestamp:
26.09.2007 15:50:35 (12 years ago)
Author:
qq6
Message:

only count the first list of classifierlist

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/classic/transform/help-common.xsl

    r7831 r14585  
    1313    <xsl:variable name="has_search"><xsl:choose><xsl:when test="serviceList/service[@name='TextQuery']">1</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> 
    1414    <xsl:variable name="has_phrase"><xsl:choose><xsl:when test="serviceList/service[@name='PhindApplet']">1</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> 
    15     <xsl:variable name="numoptions" select="count(serviceList/service[@name='ClassifierBrowse']/classifierList/classifier)"/> 
     15    <xsl:variable name="numoptions" select="count(serviceList/service[@name='ClassifierBrowse']/classifierList[position() mod 2 = 1]/classifier)"/> 
    1616    <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.simplehelpheading', $longCollName)"/></h3> 
    1717    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.numbrowseoptions', $numoptions+$has_search+$has_phrase)"/> 
    1818    <ul> 
    19      <xsl:if test="$has_search =1"> 
    20        <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchshort')" disable-output-escaping='yes'/></li> 
    21      </xsl:if> 
    22      <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier"> 
    23        <xsl:variable name="title">help.<xsl:value-of select="@content"/>short</xsl:variable> 
    24        <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/></li> 
    25      </xsl:for-each> 
    26      <xsl:if test="$has_phrase =1"> 
    27        <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraseshort')" disable-output-escaping='yes'/></li> 
    28      </xsl:if> 
    29      </ul> 
    30      <xsl:if test="$has_search =1"> 
    31        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchlong')" disable-output-escaping='yes'/> 
    32      </xsl:if> 
    33      <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier"> 
    34        <xsl:variable name="title">help.<xsl:value-of select="@content"/>long</xsl:variable> 
    35        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/> 
    36      </xsl:for-each> 
    37      <xsl:if test="$has_phrase =1"> 
    38        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraselong')" disable-output-escaping='yes'/> 
    39      </xsl:if> 
    40       
     19      <xsl:if test="$has_search =1"> 
     20    <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchshort')" disable-output-escaping='yes'/></li> 
     21      </xsl:if> 
     22      <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier"> 
     23    <xsl:variable name="title">help.<xsl:value-of select="@content"/>short</xsl:variable> 
     24    <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/></li> 
     25      </xsl:for-each> 
     26      <xsl:if test="$has_phrase =1"> 
     27    <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraseshort')" disable-output-escaping='yes'/></li> 
     28      </xsl:if> 
     29    </ul> 
     30    <xsl:if test="$has_search =1"> 
     31      <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchlong')" disable-output-escaping='yes'/> 
     32    </xsl:if> 
     33    <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList[position() mod 2 = 1]/classifier"> 
     34      <xsl:variable name="title">help.<xsl:value-of select="@content"/>long</xsl:variable> 
     35      <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/> 
     36    </xsl:for-each> 
     37    <xsl:if test="$has_phrase =1"> 
     38      <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraselong')" disable-output-escaping='yes'/> 
     39    </xsl:if> 
     40     
    4141  </xsl:template> 
    42  
     42   
    4343    
    4444</xsl:stylesheet>