Changeset 26467
- Timestamp:
- 2012-11-15T15:37:19+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl
r26460 r26467 108 108 </xsl:template> 109 109 110 <xsl:template match="params"></xsl:template> 110 111 <xsl:template match="gsf:link"> 112 111 113 <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 112 114 <xsl:variable name="opt-title"> … … 124 126 </xsl:choose> 125 127 </xsl:variable> 128 126 129 <xsl:choose> 127 130 <xsl:when test="@type='query'"> … … 140 143 </xsl:otherwise> 141 144 </xsl:choose> 145 <xsl:if test="params">?rt=rd&<xsl:copy-of select="params/node()"/></xsl:if> 142 146 </xslt:attribute> 143 147 <xsl:copy-of select="$opt-title"/> … … 448 452 </xsl:template> 449 453 454 455 <xsl:template match="gsf:foreach-metadata"> 456 <xsl:variable name="meta_name"><xsl:call-template name="getMetadataName"/></xsl:variable> 457 <xslt:for-each> 458 <xsl:attribute name="select"> 459 <xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>(.//metadataList)[last()]/metadata[@name='<xsl:value-of select="$meta_name"/>'<xsl:if test="@lang"><xsl:text> and @lang=</xsl:text><xsl:value-of select="@lang"/></xsl:if><xsl:text>]</xsl:text> 460 </xsl:attribute><xsl:if test='@separator'><xslt:if test='position()>1'><xsl:value-of select='@separator'/></xslt:if></xsl:if> 461 <xsl:apply-templates/> 462 </xslt:for-each> 463 </xsl:template> 464 465 <xsl:template match="gsf:meta-value"> 466 <xslt:value-of select="."/> 467 </xsl:template> 450 468 <xsl:template name="getMetadataName"> 451 469 <xsl:if test='@select'> … … 455 473 <xsl:value-of select="@name"/> 456 474 </xsl:template> 475 457 476 458 477 <xsl:template match="gsf:text">
Note:
See TracChangeset
for help on using the changeset viewer.