Changeset 34629


Ignore:
Timestamp:
2020-12-19T00:52:47+13:00 (3 years ago)
Author:
anupama
Message:

The main help page link wasn't working, whereas a plain GS3 using the default interface did link properly to the new general help page. This is because no collection was selected. The xsl just needed to link to the general help page when not visiting a collection. Now it chooses between a link to the general help page if on the site's main page or in a group landing page, and a coll specific help page if on a coll page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/wmtb/transform/layouts/main.xsl

    r34628 r34629  
    7979        <xsl:call-template name="loginLinks"/>                 
    8080        <li><a href="{$library_name}/collection/{$collNameChecked}/page/pref">Preferences</a></li>
    81         <li><a href="{$library_name}/collection/{$collNameChecked}/page/help">Help</a></li>
     81        <xsl:choose>
     82          <xsl:when test="/page/pageResponse/collection">
     83            <li><a href="{$library_name}/collection/{$collNameChecked}/page/help">Help</a></li>
     84          </xsl:when> 
     85          <xsl:otherwise>
     86            <li><a href="{$library_name}/page/help">Help</a></li>
     87          </xsl:otherwise>     
     88        </xsl:choose>
    8289          </ul>
    8390          <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.