Changeset 37905 for gs3-installations/thewillow
- Timestamp:
- 2023-08-08T22:27:27+12:00 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/thewillow/trunk/sites/thewillow/collect/community-contributions/etc/collectionConfig.xml
r37887 r37905 236 236 <div class="rt-column" style="position: relative;"> 237 237 238 <!-- the favourites star--> 238 <!-- the favourites star--> 239 239 <xsl:if test="$favouriteBasketOn"> 240 240 <div style="position: absolute; right: 6px; top: 6px;"> … … 243 243 </xsl:if> 244 244 245 <span> 245 <gsf:variable name="thisNodeID"><xsl:value-of select="@nodeID"/></gsf:variable> 246 <gsf:variable name="thisTitleCaption"><xsl:call-template name="choose-title"/></gsf:variable> 247 248 <div style="text-align: center"> 246 249 <gsf:link type="document"> 247 <gsf:choose-metadata> 248 <gsf:metadata name="thumbicon"/> 249 <gsf:metadata name="srcicon"/> 250 <gsf:default><gsf:icon type="document"/></gsf:default> 251 </gsf:choose-metadata> 250 <div style="padding-bottom: 3px;"> 251 <xsl:attribute name="id">docicon-<xsl:value-of select="@nodeID"/></xsl:attribute> 252 253 <gsf:choose-metadata> 254 <gsf:metadata name="thumbicon"/> 255 <gsf:metadata name="srcicon"/> 256 <gsf:default><gsf:icon type="document"/></gsf:default> 257 </gsf:choose-metadata> 258 259 </div> 260 261 <div style="font-size: 75%; line-height: 120%;"> 262 <xsl:attribute name="id">doccaption-<xsl:value-of select="@nodeID"/></xsl:attribute> 263 <!-- <xsl:call-template name="choose-title"/> --> 264 <xsl:comment>Starts empty</xsl:comment> 265 </div> 266 267 <gsf:script> 268 269 (function(node_id, title_caption) { 270 $(document).ready(function() { 271 title_caption = title_caption.replaceAll("\\n"," "); 272 273 //var title_caption50 = title_caption.replace(/^((?:.*?){50,})\s+.*$/,"$1 ..."); 274 var title_caption50 = title_caption; 275 var space_after_50 = title_caption.substring(50).indexOf(' '); 276 if (space_after_50 >= 0) { 277 title_caption50 = title_caption.substring(0,50+space_after_50) + " ..."; 278 } 279 280 $('#docicon-'+node_id+' img').attr("alt",title_caption); 281 $('#docicon-'+node_id+' img').attr("title",title_caption); 282 $('#doccaption-'+node_id).html(title_caption50); 283 }); 284 })(gs.variables.thisNodeID,gs.variables.thisTitleCaption); 285 286 </gsf:script> 287 252 288 </gsf:link> 253 </span> 254 <br/> 255 <span> 256 <gsf:link type="document"> 257 <xsl:call-template name="choose-title"/> 258 </gsf:link> 259 </span> 260 289 290 <!-- 261 291 <br/> 262 292 <span> … … 266 296 </xsl:with-param> 267 297 <xsl:with-param name="collection" select="@collection"/> 268 < !--<xsl:choose> <xsl:when test="@collection"><xsl:value-of select="@collection"/></xsl:with-param>-->298 < ! - -<xsl:choose> <xsl:when test="@collection"><xsl:value-of select="@collection"/></xsl:with-param> - - > 269 299 </xsl:call-template> 270 300 </span> 271 301 --> 302 303 </div> 272 304 </div> 273 305 </gsf:template>
Note:
See TracChangeset
for help on using the changeset viewer.