Changeset 26121


Ignore:
Timestamp:
2012-08-16T19:12:25+12:00 (12 years ago)
Author:
ak19
Message:

Added a gsf:icon option that takes a file attribute for custom icon images located inside a collection's images folder. To be used in the tutorial Building a Multimedia Collection, the step on Using different icons for different media types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r26100 r26121  
    129129            <xsl:when test="@type='web'">
    130130              <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'webicon')]"/>             
     131            </xsl:when>
     132            <xsl:when test="@file">
     133                <img>
     134                <xslt:attribute name='src'>
     135                    <xslt:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name = 'httpPath']"/>
     136                    <xsl:text>/images/</xsl:text>
     137                    <xsl:value-of disable-output-escaping="yes" select="@file"/>
     138                </xslt:attribute>
     139                </img>
    131140            </xsl:when>
    132141            <xsl:when test="not(@type) or @type='document'">
Note: See TracChangeset for help on using the changeset viewer.