Changeset 37343


Ignore:
Timestamp:
2023-02-22T22:57:14+13:00 (14 months ago)
Author:
davidb
Message:

Improved text/links display in banner area for webswing-gli

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/webswing-gli.xsl

    r37342 r37343  
    2020    <!-- what is this used for??? Can it be deleted? -->
    2121    <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
    22    
     22
    2323    <!-- set page title -->
    2424
    2525    <xsl:template name="pageTitle">
    26       <!-- if no collection specified -->
    27       <xsl:choose>
    28         <xsl:when test="$groupPath != ''">
    29           <gslib:groupName path="{$groupPath}"/>
    30         </xsl:when>
    31         <xsl:otherwise>
    32           <gslib:siteName/>
    33         </xsl:otherwise>
    34       </xsl:choose>
    35       <!-- otherwise -->
    36       <!--
    37           <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
    38       -->
     26      WebSwing GLI
    3927    </xsl:template>
    4028
    41    
    4229
    4330    <!-- set page breadcrumbs -->
    4431    <xsl:template name="breadcrumbs">
    45       <!-- if no collection specified -->
    46         <xsl:if test="$groupPath != ''">
    47             <gslib:siteLink/>
    48             <xsl:for-each select="/page/pageResponse/pathList/group">
    49                 <xsl:sort data-type="number" select="@position"/>
    50                 <gslib:rightArrow/>
    51                 <xsl:if test="position() != last()">
    52                   <!-- don't want the current group in the breadcrumbs -->
    53                   <a>
    54                     <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute>               
    55                     <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute>
    56                     <gslib:groupName path="{@path}"/>
    57                   </a>
    58                 </xsl:if>
    59             </xsl:for-each>
    60         </xsl:if>
    61         <!-- else -->
    62         <!--
     32      <xsl:choose>
     33        <xsl:when test="/page/pageRequest/paramList/param[@name='c']/@value != ''">
     34              <gslib:siteLink/>
     35              <gslib:rightArrow/>
     36          <xsl:if test="$groupPath != ''">
     37        <gslib:groupLinks/>
     38        <gslib:rightArrow/>
     39          </xsl:if>
     40          <a href="{$library_name}/collection/{$collName}/page/about">
     41        <gslib:collectionName/>
     42          </a>
     43        </xsl:when>
     44        <xsl:otherwise>
     45          <xsl:choose>
     46        <xsl:when test="$groupPath != ''">
     47          <a>
     48            <xsl:attribute name="href"><gslib:groupHref path="{$groupPath}"/></xsl:attribute>
     49            <xsl:attribute name="title"><gslib:groupName path="{$groupPath}"/></xsl:attribute>
     50            <gslib:groupName path="{$groupPath}"/>
     51          </a>
     52        </xsl:when>
     53        <xsl:otherwise>
    6354          <gslib:siteLink/>
    64           <gslib:rightArrow/>
    65           <gslib:groupLinks/>
    66         -->
    67        
     55        </xsl:otherwise>
     56          </xsl:choose>
     57         
     58        </xsl:otherwise>
     59      </xsl:choose>
    6860    </xsl:template>
    6961
     
    9486    <xsl:template name="webswing-embed-gli">
    9587      <link rel="stylesheet" href="/webswing-server/css/style.css" />
    96 
    9788
    9889      <div id="webswing-gli" class="webswing-element" data-webswing-instance="webswingInstance0" style="height: 600px;">
Note: See TracChangeset for help on using the changeset viewer.