Changeset 31600 for main


Ignore:
Timestamp:
2017-04-13T14:22:25+12:00 (7 years ago)
Author:
kjdon
Message:

moved the coll and group links back into their own template so that we can easily override it for the showcase interface

File:
1 edited

Legend:

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

    r31431 r31600  
    4444
    4545        <h2><gslib:selectACollectionTextBar/></h2>
     46        <xsl:call-template name="collectionAndGroupLinks"/>
    4647
    47         <xsl:for-each select="collectionList/collection|groupList/group">
    48                     <xsl:sort data-type="number" select="@position"/>
    49             <xsl:if test="name() = 'collection'">
    50                                 <gslib:collectionLinkWithImage/>
    51             </xsl:if>
    52             <xsl:if test="name() = 'group'">
    53                                 <gslib:groupLinkWithImage/>
    54             </xsl:if>           
    55                 </xsl:for-each>
    56    
    5748            <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
    5849        <xsl:variable name="siteDesc"><xsl:choose><xsl:when test="$groupPath != ''"><gslib:groupDescription path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteDescription/></xsl:otherwise></xsl:choose></xsl:variable>
     
    7566
    7667
     68    <xsl:template name="collectionAndGroupLinks">
     69      <xsl:for-each select="collectionList/collection|groupList/group">
     70            <xsl:sort data-type="number" select="@position"/>
     71        <xsl:if test="name() = 'collection'">
     72              <gslib:collectionLinkWithImage/>
     73        </xsl:if>
     74        <xsl:if test="name() = 'group'">
     75              <gslib:groupLinkWithImage/>
     76        </xsl:if>           
     77          </xsl:for-each>
     78     
     79    </xsl:template>
    7780    <xsl:template match="/page/xsltparams">
    7881      <!-- suppress xsltparam block in page -->
Note: See TracChangeset for help on using the changeset viewer.