Changeset 33888

Show
Ignore:
Timestamp:
03.02.2020 13:08:44 (2 weeks ago)
Author:
kjdon
Message:

added propertyFile attribute to gsf:interfaceText so that you can request strings from different property file, eg metadata_names.properties

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/expand-gsf.xsl

    r33755 r33888  
    520520    <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang --> 
    521521    <xsl:template match="gsf:interfaceText" name="gsf:interfaceText"> 
    522         <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/> 
    523     </xsl:template> 
     522      <xsl:choose> 
     523        <xsl:when test="@propertyFile"> 
     524          <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, '{@propertyFile}', /page/@lang, '{@name}', '')"/> 
     525        </xsl:when> 
     526        <xsl:otherwise> 
     527          <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/> 
     528        </xsl:otherwise> 
     529      </xsl:choose> 
     530    </xsl:template> 
     531     
    524532    <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang --> 
    525533    <xsl:template match="gsf:collectionText1" name="gsf:collectionText1">