Ignore:
Timestamp:
2009-09-18T13:30:58+12:00 (15 years ago)
Author:
oranfry
Message:

xsl and css change for collections with images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/oran/transform/util.xsl

    r20467 r20630  
    166166            <xsl:when test="displayItem[@name='icon']">
    167167                <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
     168                    <img class="collectionLinkImage">
     169                        <xsl:attribute name="alt"></xsl:attribute>
     170                        <xsl:attribute name="src">sites/localsite/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="displayItem[@name='icon']"/></xsl:attribute>
     171                    </img>
     172<!--
    168173                    <div class="collectionLink">
     174                        <xsl:attribute name="style">background-image: url(/sites/localsite/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="displayItem[@name='icon']"/>);</xsl:attribute>
    169175                        <xsl:value-of select="displayItem[@name='name']"/>
    170176                    </div>
     177-->
    171178                </a>
    172179            </xsl:when>
    173180            <xsl:otherwise>
    174181                <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
    175                     <xsl:value-of select="displayItem[@name='name']"/>
     182                    <div class="collectionLink">
     183                        <xsl:value-of select="displayItem[@name='name']"/>
     184                    </div>
    176185                </a>
    177186            </xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.