- Timestamp:
- 2003-06-18T12:08:01+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/config_format.xsl
r4253 r4712 11 11 stylesheet-prefix="xslt" result-prefix="xsl"/> 12 12 13 14 13 <xsl:template match="format"> 15 14 <format hello="yes"> … … 23 22 <xsl:attribute name="priority">2</xsl:attribute> 24 23 <xsl:if test=".//gsf:link/@type"> 25 <xslt:param name="serviceName" >service-name</xslt:param>24 <xslt:param name="serviceName"/> 26 25 </xsl:if> 27 26 <xsl:if test=".//gsf:link"> 28 <xslt:param name="collName">coll-name</xslt:param> 29 <xslt:variable name='library' select='ancestor::page/pageExtra/config/library_name'/> 27 <xslt:param name="collName"/> 30 28 </xsl:if> 31 29 <xsl:apply-templates/> … … 36 34 <xsl:choose> 37 35 <xsl:when test="@type='classifier'"> 38 <a><xslt:attribute name='href'><xslt:value-of select='$library '/>?a=b&rt=r&s=<xslt:value-of select='$serviceName'/>&c=<xslt:value-of select='$collName'/>&cl=<xslt:value-of select='@nodeID'/><xslt:if test="classifierNode|documentNode">.pr</xslt:if><xslt:if test="parent::node()[@orientation='horizontal']">&sib=1</xslt:if></xslt:attribute>36 <a><xslt:attribute name='href'><xslt:value-of select='$library_name'/>?a=b&rt=r&s=<xslt:value-of select='$serviceName'/>&c=<xslt:value-of select='$collName'/>&cl=<xslt:value-of select='@nodeID'/><xslt:if test="classifierNode|documentNode">.pr</xslt:if><xslt:if test="parent::node()[@orientation='horizontal']">&sib=1</xslt:if></xslt:attribute> 39 37 <xsl:apply-templates/> 40 38 </a> 41 39 </xsl:when> 42 40 <xsl:otherwise> <!-- a document link --> 43 <a><xsl:attribute name="href">{$library}?a=d&c={$collName}&d={@nodeID}</xsl:attribute> 44 <xsl:apply-templates/> 45 </a> 41 <xsl:choose> 42 <xsl:when test="/format/@type = 'search'"> 43 <a><xsl:attribute name="href">{$library_name}?a=d&c={$collName}&d={@nodeID}&dt={@documentType}</xsl:attribute><xsl:apply-templates/></a> 44 </xsl:when> 45 <xsl:otherwise> 46 <a><xsl:attribute name="href">{$library_name}?a=d&c={$collName}&d={@nodeID}</xsl:attribute><xsl:apply-templates/></a> 47 </xsl:otherwise> 48 </xsl:choose> 46 49 </xsl:otherwise> 47 50 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.