Changeset 13826


Ignore:
Timestamp:
2007-01-30T12:28:34+13:00 (17 years ago)
Author:
nzdl
Message:

added extraArgs param to collection template so that can pass in some coll specific args, eg language for the chinese collection

File:
1 edited

Legend:

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

    r8569 r13826  
    113113 
    114114  <xsl:template match="collection">
     115  <xsl:param name="extraArgs"/>
    115116    <xsl:variable name="ct"><xsl:choose><xsl:when test="metadataList/metadata[@name='buildType']='mgpp'">1</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable>
    116117    <p />
    117     <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}">
     118    <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}{$extraArgs}">
    118119      <img width="150" border="1">
    119120    <xsl:attribute name="src">
     
    190191      <p />howto DL<xsl:apply-templates select="collection[@name='howto']"/>
    191192      <p /><xsl:apply-templates select="collection[@name='arabic']"/>
    192       <p /><xsl:apply-templates select="collection[@name='chinese']"/>
     193      <p /><xsl:apply-templates select="collection[@name='chinese']">
     194      <xsl:with-param name="extraArgs">&amp;l=zh</xsl:with-param>
     195      </xsl:apply-templates>     
    193196      <p /><xsl:apply-templates select="collection[@name='folktale']"/>
    194197      <p /><xsl:apply-templates select="collection[@name='demooai']"/>
     
    203206      <p /><xsl:apply-templates select="collection[@name='aircraft']"/>
    204207      <p /><xsl:apply-templates select="collection[@name='csbib']"/>
    205       <p /><xsl:apply-templates select="collection[@name='coltbib']"/>
     208      <p /><xsl:apply-templates select="collection[@name='coltbib']">
     209      <xsl:with-param name="extraArgs">&amp;qt=1</xsl:with-param>
     210      </xsl:apply-templates>
    206211    </td>
    207212    <td align='center'>
Note: See TracChangeset for help on using the changeset viewer.