Ignore:
Timestamp:
2019-07-02T12:01:22+12:00 (5 years ago)
Author:
davidb
Message:

XSL changes to support for either berries or favourites

File:
1 edited

Legend:

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

    r32759 r33261  
    7676                <tr><td id="tdContentsArea">
    7777                    <div id="contentsArea">
    78                         <!-- show the berry basket if it's turned on -->
    79                         <xsl:call-template name="berryBasket"/>
     78                            <!-- showing gotoFavourites display-area takes priority over berryBaskets -->
     79                            <xsl:choose>
     80                          <xsl:when test="/page/pageResponse/interfaceOptions/option[@name = 'favouritesBaskets']/@value = 'true'">
     81                            <!-- show the goto favourites if it's turned on -->
     82                            <xsl:call-template name="gotoFavourites"/>
     83                          </xsl:when>
     84                          <xsl:otherwise>
     85                            <!-- show the berry basket if it's turned on -->
     86                            <xsl:call-template name="berryBasket"/>
     87                          </xsl:otherwise>
     88                        </xsl:choose>
     89
    8090                        <!-- add in expand and contract document links -->
    8191                        <xsl:call-template name="expandContractDocumentLinks"/>
Note: See TracChangeset for help on using the changeset viewer.