- Timestamp:
- 2012-06-05T15:44:56+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl
r25732 r25752 122 122 </xsl:template> 123 123 124 <!-- A GLI user can use a gsf:displayText element in GS3's Format Features to retrieve 125 a string defined in either collectionConfig.xml or else the interface dictionaries. 126 If the requested string occurs in neither, the request string itself will be output. --> 124 127 <xsl:template match="gsf:displayText"> 128 <xslt:variable name="displaytext"> 129 <xsl:call-template name="gsf:displayItem"/> 130 </xslt:variable> 131 132 <xslt:choose> 133 <xslt:when test="$displaytext != ''"> 134 <xslt:value-of disable-output-escaping="yes" select="$displaytext"/> 135 </xslt:when> 136 <xslt:otherwise> 137 <xslt:variable name="interfacetxt"> 138 <xsl:call-template name="gsf:interfaceText"/> 139 </xslt:variable> 140 141 <xslt:choose> 142 <xslt:when test="$interfacetxt != ''"> 143 <xslt:value-of disable-output-escaping="yes" select="$interfacetxt"/> 144 </xslt:when> 145 <xslt:otherwise> 146 <xslt:value-of disable-output-escaping="yes" select="'{@name}'"/> 147 </xslt:otherwise> 148 </xslt:choose> 149 </xslt:otherwise> 150 </xslt:choose> 151 </xsl:template> 152 153 <!-- With gsf:displayItem, a user can request a displayItem from collectionConfig.xml --> 154 <xsl:template match="gsf:displayItem" name="gsf:displayItem"> 125 155 <xslt:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItem[@name='{@name}']"/> 126 156 </xsl:template> 127 157 128 <xsl:template match="gsf:interfaceText"> 158 <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang --> 159 <xsl:template match="gsf:interfaceText" name="gsf:interfaceText"> 129 160 <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/> 130 161 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.