Changeset 4277


Ignore:
Timestamp:
2003-05-13T10:54:40+12:00 (21 years ago)
Author:
kjdon
Message:

home page now uses colIconSmall for coll image if present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/web/interfaces/nzdl/transform/home.xsl

    r4151 r4277  
    104104<!-- the ancestor axis contains the parent of the context node, and its parent and so on. to pick one node among these: ancestor::elem-name. I dont know how this works if there are two nodes with the same name in the axis. -->
    105105  <xsl:template match="collection">
    106       <p />
    107       <a>
    108     <xsl:attribute name='href'>
    109       <xsl:value-of select="ancestor::page/pageExtra/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/>
     106    <p />
     107    <a>
     108      <xsl:attribute name='href'>
     109    <xsl:value-of select="ancestor::page/pageExtra/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/>
     110      </xsl:attribute>
     111      <img width="150" border="1">
     112    <xsl:attribute name="src">
     113      <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:choose><xsl:when test="metadataList/metadata[@name='colIconSmall']"><xsl:value-of select="metadataList/metadata[@name='colIconSmall']"/></xsl:when><xsl:otherwise><xsl:value-of select="metadataList/metadata[@name='colIcon']"/></xsl:otherwise></xsl:choose>
    110114    </xsl:attribute>
    111     <img width="150" border="1">
    112       <xsl:attribute name="src">
    113         <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/>
    114       </xsl:attribute>
    115       <xsl:attribute name="alt">
    116         <xsl:value-of select="metadataList/metadata[@name='colName']"/>
    117       </xsl:attribute>
    118     </img>
    119       </a>
     115    <xsl:attribute name="alt">
     116      <xsl:value-of select="metadataList/metadata[@name='colName']"/>
     117    </xsl:attribute>
     118      </img>
     119    </a>
    120120    <p />
    121121  </xsl:template>
     
    142142    </td>
    143143    <td align='center'>
    144       <p />mhl<xsl:apply-templates select="collection[@name='mhl']"/>
     144      <p /><xsl:apply-templates select="collection[@name='mhl']"/>
    145145      <p />fnl<xsl:apply-templates select="collection[@name='fnl']"/>
    146146      <p />paho<xsl:apply-templates select="collection[@name='paho']"/>
Note: See TracChangeset for help on using the changeset viewer.