Changeset 20025

Show
Ignore:
Timestamp:
20.07.2009 14:47:32 (10 years ago)
Author:
kjdon
Message:

added a new collectionList template (left old one there, renamed to collectionListOld) which uses gslib element

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/gs2/transform/home.xsl

    r20014 r20025  
    44  xmlns:java="http://xml.apache.org/xslt/java" 
    55  xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 
     6  xmlns:gslib="http://www.greenstone.org/skinning" 
    67  extension-element-prefixes="java util" 
    78  exclude-result-prefixes="java util"> 
     
    6263 
    6364  <xsl:template match="collectionList"> 
     65    <ul id="collectionlist"> 
     66      <xsl:for-each select="collection">  
     67    <li> 
     68      <gslib:collectionLinkWithImage/> 
     69    </li> 
     70      </xsl:for-each>  
     71    </ul> 
     72    <xsl:call-template name="collWarning"/> 
     73  </xsl:template> 
     74   
     75  <xsl:template match="collectionListOld"> 
    6476    <xsl:for-each select="collection">  
    6577      <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>