Changeset 30346 for main/trunk


Ignore:
Timestamp:
2015-12-07T12:47:21+13:00 (8 years ago)
Author:
kjdon
Message:

adding in a new template to allow for easy cutomisation of collection list

File:
1 edited

Legend:

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

    r29935 r30346  
    2626        <h2><gslib:selectACollectionTextBar/></h2>
    2727
    28         <div id="collectionLinks">
    29             <xsl:if test="count(collectionList/collection) = 0">
    30                 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
    31                 <br/>
    32             </xsl:if>
    33             <xsl:for-each select="collectionList/collection">
    34                 <gslib:collectionLinkWithImage/>
    35             </xsl:for-each>
    36             <br class="clear"/>
    37         </div>
     28        <xsl:call-template name="collectionLinks"/>
    3829
    3930            <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
     
    5243    </xsl:template>
    5344
     45<xsl:template name="collectionLinks">
     46        <div id="collectionLinks">
     47            <xsl:if test="count(collectionList/collection) = 0">
     48                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
     49                <br/>
     50            </xsl:if>
     51            <xsl:for-each select="collectionList/collection">
     52                <gslib:collectionLinkWithImage/>
     53            </xsl:for-each>
     54            <br class="clear"/>
     55        </div>
     56</xsl:template>
    5457</xsl:stylesheet>
    5558
Note: See TracChangeset for help on using the changeset viewer.