Changeset 35277 for main/trunk/model-interfaces-dev
- Timestamp:
- 2021-08-10T17:12:05+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/wmtb/transform/pages/home.xsl
r35256 r35277 207 207 <xsl:template match="group" name="customGroupDescription"> 208 208 209 <xsl:variable name="short"><xsl:value-of select="shortDescription"/></xsl:variable> 210 <xsl:variable name="desc"><xsl:value-of select="description"/></xsl:variable> 209 <xsl:variable name="title"><xsl:value-of select="displayItemList/displayItem[@name='name']"/></xsl:variable> 210 <xsl:variable name="short"><xsl:value-of select="displayItemList/displayItem[@name='shortDescription']"/></xsl:variable> 211 <xsl:variable name="desc"><xsl:value-of select="displayItemList/displayItem[@name='description']"/></xsl:variable> 212 <xsl:variable name="bgImg"><xsl:value-of select="displayItemList/displayItem[@name='backgroundImage']"/></xsl:variable> 211 213 <xsl:variable name="group_href"><xsl:value-of select="$library_name"/>/group/<xsl:if test="/page/pageRequest/paramList/param[@name='group']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/>/</xsl:if><xsl:value-of select="@name"/></xsl:variable> 212 214 213 215 <div class="img-and-desc"> 214 216 <!-- if there is an image for this group, this is displayed --> 215 <xsl:if test="util:checkFileExistence($site_name, backgroundImage)">217 <xsl:if test="util:checkFileExistence($site_name, $bgImg)"> 216 218 <div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> 217 219 <!-- the group (pou) image links to the collection's about page --> … … 219 221 <div style="background-color:#404040;margin-left:11px; margin-right: 11px;"> 220 222 <img class="groupLinkImage"> 221 <xsl:attribute name="alt"><xsl:value-of select=" @name"/></xsl:attribute>222 <xsl:attribute name="title"><xsl:value-of select=" @name"/></xsl:attribute>223 <xsl:attribute name="alt"><xsl:value-of select="$title"/></xsl:attribute> 224 <xsl:attribute name="title"><xsl:value-of select="$title"/></xsl:attribute> 223 225 <xsl:attribute name="style"><xsl:text>max-width:100%;opacity:0.4;padding: 0 !important;</xsl:text></xsl:attribute> 224 <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/<xsl:value-of select=" backgroundImage"/></xsl:attribute>226 <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/<xsl:value-of select="$bgImg"/></xsl:attribute> 225 227 </img> 226 228 </div>
Note:
See TracChangeset
for help on using the changeset viewer.