- Timestamp:
- 2012-10-18T14:31:13+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl
r26336 r26345 70 70 <xsl:template match="gsf:link"> 71 71 <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 72 <xsl:variable name="opt-title"> 73 <xsl:choose> 74 <xsl:when test="@title"><xslt:attribute name="title"><xsl:value-of select="@title"/></xslt:attribute></xsl:when> 75 <xsl:when test="@titlekey"><xslt:attribute name="title"><xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@titlekey}')"/></xslt:attribute></xsl:when> 76 </xsl:choose> 77 </xsl:variable> 72 78 <xsl:choose> 73 79 <xsl:when test="@type='query'"> … … 87 93 </xsl:choose> 88 94 </xslt:attribute> 95 <xsl:copy-of select="$opt-title"/> 89 96 <xsl:apply-templates/> 90 97 </a> … … 106 113 </xsl:choose> 107 114 </xslt:attribute> 115 <xsl:copy-of select="$opt-title"/> 108 116 <xsl:apply-templates/> 109 117 </a> … … 114 122 disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='assocfilepath']" />/<xslt:value-of 115 123 disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='srclinkFile']" /></xslt:attribute> 124 <xsl:copy-of select="$opt-title"/> 116 125 <xsl:apply-templates/> 117 126 </a> 118 127 </xsl:when> 119 128 <xsl:when test="@type='web'"> 120 129 <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'weblink')]"/> 121 130 <xsl:apply-templates/> 122 131 <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, '/weblink')]"/> … … 131 140 <xsl:value-of select="@page"/> 132 141 </xslt:attribute> 133 <xsl:choose> 134 <xsl:when test="@title"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:when> 135 <xsl:when test="@titlekey"><xslt:attribute name="title"><xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@titlekey}')"/></xslt:attribute></xsl:when> 136 </xsl:choose> 137 <xsl:apply-templates/> 142 <xsl:copy-of select="$opt-title"/> 143 <xsl:apply-templates/> 138 144 </a> 139 145 </xsl:when> … … 146 152 </xslt:variable> 147 153 <a> 154 <xsl:copy-of select="$opt-title"/> 148 155 <xslt:attribute name="href"> 149 156 <xslt:value-of select='$library_name'/> … … 285 292 <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang --> 286 293 <xsl:template match="gsf:collectionText" name="gsf:collectionText"> 287 < !--<xslt:variable name="collName" select="/page/pageResponse/collection/@name"/>-->294 <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 288 295 <xslt:value-of select="util:getCollectionText($collName, $site_name, /page/@lang, '{@name}', '{@args}')"/> 289 296 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.