Changeset 36632


Ignore:
Timestamp:
2022-09-20T10:31:11+12:00 (2 weeks ago)
Author:
kjdon
Message:

moved the code for displaying group links in breadcrumbs from about.xsl into gslib, so all pages can use it

File:
1 edited

Legend:

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

    r36287 r36632  
    4848    <xsl:text> </xsl:text>
    4949  </xsl:template>
    50  
     50
     51  <xsl:template name="groupLinks">
     52    <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
     53    <xsl:if test="$groupPath != ''">
     54      <xsl:for-each select="/page/pageResponse/pathList/group">
     55    <xsl:sort data-type="number" select="@position"/>
     56    <a>
     57      <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute>             
     58      <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute>
     59      <gslib:groupName path="{@path}"/>
     60    </a>
     61    <gslib:rightArrow/>
     62      </xsl:for-each>
     63    </xsl:if>
     64   
     65  </xsl:template>
    5166  <xsl:variable name="a">
    5267    <xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/>
Note: See TracChangeset for help on using the changeset viewer.