Changeset 26165 for main/trunk/greenstone3/web
- Timestamp:
- 2012-09-11T13:54:04+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl
r26127 r26165 243 243 <!-- set hidden=true on a gsf:metadata so that it gets retrieved from the server but not displayed --> 244 244 <xsl:variable name="meta_name"><xsl:call-template name="getMetadataName"/></xsl:variable> 245 <xsl:variable name="separator"><xsl:choose><xsl:when test="@separator"><xsl:value-of disable-output-escaping='yes' select="@separator"/></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose></xsl:variable> 245 <xsl:variable name="separator"><xsl:choose><xsl:when test="@separator"><xsl:value-of disable-output-escaping='yes' select="@separator"/></xsl:when><xsl:when test="separator"><xsl:copy-of select="separator/node()"/></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose></xsl:variable> 246 <xsl:variable name="prefix"><xsl:choose><xsl:when test="@prefix"><xsl:value-of disable-output-escaping='yes' select="@prefix"/></xsl:when><xsl:when test="prefix"><xsl:copy-of select="prefix/node()"/></xsl:when></xsl:choose></xsl:variable> 247 <xsl:variable name="suffix"><xsl:choose><xsl:when test="@suffix"><xsl:value-of disable-output-escaping='yes' select="@suffix"/></xsl:when><xsl:when test="suffix"><xsl:copy-of select="suffix/node()"/></xsl:when></xsl:choose></xsl:variable> 246 248 <xsl:variable name="postest"> 247 249 <xsl:choose><xsl:when test="@pos = 'first'">position()=1</xsl:when><xsl:when test="@pos = 'last'">position() = last()</xsl:when><xsl:when test="@pos">position() = <xsl:value-of select="@pos"/></xsl:when><xsl:otherwise>true()</xsl:otherwise></xsl:choose> … … 251 253 <xsl:if test="@type='collection'">/page/pageResponse/collection/</xsl:if>metadataList/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></xsl:attribute> 252 254 <xslt:if test="{$postest}"> 253 <xslt:if test="{$multiple} and position()>1"><xsl:value-of select="$separator"/></xslt:if> 255 <xslt:if test="{$multiple} and position()>1"><xsl:copy-of select="$separator"/></xslt:if> 256 <xsl:copy-of select="$prefix"/> 254 257 <xsl:choose> 255 258 <xsl:when test="@format"> … … 261 264 </xsl:choose> 262 265 </xslt:if> 266 <xsl:copy-of select="$suffix"/> 263 267 </xslt:for-each> 264 268 </xsl:if>
Note:
See TracChangeset
for help on using the changeset viewer.