Changeset 26250 for main

Show
Ignore:
Timestamp:
25.09.2012 15:41:35 (7 years ago)
Author:
kjdon
Message:

added gsf:collectionText template

Files:
1 modified

Legend:

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

    r26227 r26250  
    238238      <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/> 
    239239    </xsl:template> 
     240    <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang --> 
     241    <xsl:template match="gsf:collectionText" name="gsf:collectionText"> 
     242    <!--<xslt:variable name="collName" select="/page/pageResponse/collection/@name"/>--> 
     243      <xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@name}')"/> 
     244    </xsl:template> 
    240245 
    241246    <!-- if this gsf:metadata is a child of a document node then we want to get the metadata for that node -->