Ignore:
Timestamp:
2021-08-10T18:18:57+12:00 (3 years ago)
Author:
anupama
Message:
  1. Related to previous commit: group image needs to have title not name of group. 2. When a group/Pou still has no collections, there's now a placeholder string to indicate the basic group the visitor is in.
File:
1 edited

Legend:

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

    r35277 r35278  
    4444            <div class="container">
    4545              <div class="wsite-section-elements">
    46             <xsl:if test="groupList/group">
     46            <xsl:choose>
     47            <xsl:when test="groupList/group">
    4748              <div class="paragraph" style="text-align:center;">
    4849<div class="paragraph" style="text-align:center;">Our purpose is <strong style="color:rgb(63, 63, 63)"><em>&#x201C;Kia rangatira ai ngā uri o te Whakatōhea&#x201D; &#150; &#x201C;To lift our nation, and to grow and invest in the well-being of our people&#x201D;.</em></strong><br /><span style="color:rgb(63, 63, 63)">The Whakatōhea Māori Trust Board</span> exists to improve the lives of its people <br />through the six <em><strong>&#x201C;50-year Strategic Goals&#x201D;</strong></em>. These are defined as the following <strong>Six Pou:</strong> <br /></div>
    49               </div>
    50             </xsl:if>
     50              </div>             
     51            </xsl:when>
     52            <xsl:when test="pathList/group"><!-- Group page has collections.
     53                 Nothing to do. Let it just load colls of this group.-->
     54              <!--This is the Pou for <xsl:value-of select="pathList/group/displayItemList/displayItem[@name]"/>-->
     55            </xsl:when>
     56            <xsl:when test="$groupPath != ''"><!-- group landing page has no colls -->
     57              This is the Pou for <xsl:value-of select="$groupPath"/>.
     58            </xsl:when>
     59            </xsl:choose>
    5160            <!-- NO LONGER A PROBLEM AS THE DL SITE IS NOW EMBEDDED IN AN IFRAME
    5261                 AND SO DOES NOT PROVIDE THE FOOTER OF THE whakatohea.co.nz SITE.
     
    241250        <span class="pou-group-title">
    242251          <xsl:choose>
    243         <xsl:when test="boolean(title)">
    244           <xsl:value-of select="title"/>
     252        <xsl:when test="boolean($title)">
     253          <xsl:value-of select="$title"/>
    245254        </xsl:when>
    246255        <xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.