Ignore:
Timestamp:
2018-12-03T13:04:21+13:00 (4 years ago)
Author:
kjdon
Message:

add group breadcrumbs for colleciton about page

File:
1 edited

Legend:

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

    r30861 r32645  
    1111    <xsl:include href="layouts/main.xsl"/>
    1212
     13    <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
    1314    <!-- set page title -->
    1415    <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
    1516
    1617    <!-- set page breadcrumbs -->
    17     <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template>
     18    <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/>
     19    <xsl:if test="$groupPath != ''">
     20      <xsl:for-each select="/page/pageResponse/pathList/group">
     21        <xsl:sort data-type="number" select="@position"/>
     22          <a>
     23        <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute>               
     24        <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute>
     25        <gslib:groupName path="{@path}"/>
     26          </a>
     27          <gslib:rightArrow/>
     28      </xsl:for-each>
     29    </xsl:if>
     30    </xsl:template>
    1831
    1932    <!-- the page content -->
Note: See TracChangeset for help on using the changeset viewer.