Changeset 25732

Show
Ignore:
Timestamp:
31.05.2012 18:39:11 (7 years ago)
Author:
ak19
Message:

Some convenience methods for users who are editing the Format statements in GLI to get displayItems from collectionConfig.xml and retrieve interfaceText from interface dictionary files. The displayText to retrieve displayItems is used in the image-e collection.

Files:
1 modified

Legend:

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

    r25438 r25732  
    122122    </xsl:template> 
    123123 
     124    <xsl:template match="gsf:displayText"> 
     125      <xslt:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItem[@name='{@name}']"/> 
     126    </xsl:template> 
     127 
     128    <xsl:template match="gsf:interfaceText"> 
     129      <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/> 
     130    </xsl:template> 
     131 
    124132    <!-- if this gsf:metadata is a child of a document node then we want to get the metadata for that node --> 
    125133    <xsl:template match="gsf:metadata">