Changeset 25784


Ignore:
Timestamp:
2012-06-12T11:31:15+12:00 (12 years ago)
Author:
kjdon
Message:

added rollover text to colleciton images - contains shortDescription display item. replaced hard coded localsite.

File:
1 edited

Legend:

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

    r25439 r25784  
    188188 
    189189  <xsl:template name="collectionLinkWithImage">
     190    <xsl:variable name="desc"><xsl:value-of select="displayItem[@name='shortDescription']"/></xsl:variable>
    190191    <xsl:choose>
    191192      <xsl:when test="displayItem[@name='icon']">
    192         <a href="{$library_name}/collection/{@name}/page/about">
     193        <a href="{$library_name}/collection/{@name}/page/about" title="{$desc}">
    193194          <img class="collectionLinkImage">
    194             <xsl:attribute name="alt"/>
    195             <xsl:attribute name="src">sites/localsite/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="displayItem[@name='icon']"/></xsl:attribute>
     195            <xsl:attribute name="alt"><xsl:value-of select="displayItem[@name='name']"/></xsl:attribute>
     196            <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="displayItem[@name='icon']"/></xsl:attribute>
    196197          </img>
    197           <!--
    198                     <div class="collectionLink">
    199                         <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>
    200                         <xsl:value-of select="displayItem[@name='name']"/>
    201                     </div>
    202 -->
    203198        </a>
    204199      </xsl:when>
    205200      <xsl:otherwise>
    206         <a href="{$library_name}/collection/{@name}/page/about">
     201        <a href="{$library_name}/collection/{@name}/page/about" title="{$desc}">
    207202          <div class="collectionLink">
    208203            <xsl:value-of select="displayItem[@name='name']"/>
Note: See TracChangeset for help on using the changeset viewer.