Ignore:
Timestamp:
2020-12-18T23:40:31+13:00 (3 years ago)
Author:
anupama
Message:
  1. Pou (GS3 group) image and full group description now link, not just the title overlaid on the image. 2. Tidying up css file added today and xsl modifications.
File:
1 edited

Legend:

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

    r34624 r34626  
    4949              </div>
    5050            </xsl:if>
    51             <!-- forced to add nbsp (which in XSL is &#160;) in div.wsite-spacer
     51            <!-- NO LONGER A PROBLEM AS THE DL SITE IS NOW EMBEDDED IN AN IFRAME
     52                 AND SO DOES NOT PROVIDE THE FOOTER OF THE whakatohea.co.nz SITE.
     53                 Forced to add nbsp (which in XSL is &#160;) in div.wsite-spacer
    5254                 because otherwise text overflows from the main page into footer
    5355                 caused by html rendering of div.wsite-spacer's subsequent sibling
     
    213215      <xsl:if test="util:checkFileExistence($site_name, backgroundImage)">
    214216        <div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center">
     217          <!-- the group (pou) image links to the collection's about page -->
     218          <a href="{$group_href}" title="{$short}" alt="{$short}">
    215219          <img class="groupLinkImage">
    216220        <xsl:attribute name="alt"><xsl:value-of select="@name"/></xsl:attribute>
     
    219223        <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/<xsl:value-of select="backgroundImage"/></xsl:attribute>
    220224          </img>
     225          </a>
    221226        </div>
    222227
    223228      </xsl:if>
    224229
     230      <!-- group description also links to the collection's about page
     231           since it is overlaid on the image with absolute positioning
     232           and therefore obscures the image link
     233      -->
    225234      <!-- some text for the group -->
     235      <a href="{$group_href}" title="{$short}" alt="{$short}">
    226236      <div class="paragraph">
    227         <!-- group title links to the collection's about page -->
    228         <a href="{$group_href}" title="{$short}" alt="{$short}">
     237        <span class="pou-group-title">
    229238          <xsl:choose>
    230239        <xsl:when test="boolean(title)">
     
    235244        </xsl:otherwise>
    236245          </xsl:choose>
    237         </a>
     246        </span>
    238247        <br />     
    239248        <xsl:choose>
     
    247256          </xsl:otherwise>
    248257        </xsl:choose>
    249       </div>
    250 
    251     </div>
     258      </div><!--end div.paragraph-->
     259      </a>
     260    </div><!-- end div.img-and-desc-->
    252261       <!-- <div style="display:block;font-size:90%"></div>   -->
    253262    </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.