[7831] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <xsl:stylesheet version="1.0"
|
---|
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 4 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
| 5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
| 6 | extension-element-prefixes="java util"
|
---|
| 7 | exclude-result-prefixes="java util">
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | <xsl:template match="collection" mode="simplehelp">
|
---|
| 11 | <xsl:variable name="longCollName"><xsl:value-of select="displayItem[@name='name']" disable-output-escaping='yes'/></xsl:variable>
|
---|
| 12 | <!--<xsl:variable name="numoptions">5</xsl:variable>-->
|
---|
| 13 | <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>
|
---|
| 14 | <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>
|
---|
[14585] | 15 | <xsl:variable name="numoptions" select="count(serviceList/service[@name='ClassifierBrowse']/classifierList[position() mod 2 = 1]/classifier)"/>
|
---|
[16860] | 16 | <div class="simplehelp">
|
---|
[18318] | 17 | <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.simplehelpheading', $longCollName)"/></h3>
|
---|
| 18 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.numbrowseoptions', $numoptions+$has_search+$has_phrase)"/>
|
---|
| 19 | <ul>
|
---|
| 20 | <xsl:if test="$has_search =1">
|
---|
| 21 | <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchshort')" disable-output-escaping='yes'/></li>
|
---|
| 22 | </xsl:if>
|
---|
| 23 | <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier">
|
---|
| 24 | <xsl:variable name="title">help.<xsl:value-of select="@content"/>short</xsl:variable>
|
---|
| 25 | <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/></li>
|
---|
| 26 | </xsl:for-each>
|
---|
| 27 | <xsl:if test="$has_phrase =1">
|
---|
| 28 | <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraseshort')" disable-output-escaping='yes'/></li>
|
---|
| 29 | </xsl:if>
|
---|
| 30 | </ul>
|
---|
[14585] | 31 | <xsl:if test="$has_search =1">
|
---|
[18318] | 32 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchlong')" disable-output-escaping='yes'/>
|
---|
[14585] | 33 | </xsl:if>
|
---|
| 34 | <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier">
|
---|
[18318] | 35 | <xsl:variable name="title">help.<xsl:value-of select="@content"/>long</xsl:variable>
|
---|
| 36 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/>
|
---|
[14585] | 37 | </xsl:for-each>
|
---|
| 38 | <xsl:if test="$has_phrase =1">
|
---|
[18318] | 39 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraselong')" disable-output-escaping='yes'/>
|
---|
[14585] | 40 | </xsl:if>
|
---|
[16860] | 41 | </div>
|
---|
[7831] | 42 | </xsl:template>
|
---|
[14585] | 43 |
|
---|
[18318] | 44 |
|
---|
[7831] | 45 | </xsl:stylesheet> |
---|