Changeset 30688


Ignore:
Timestamp:
2016-08-08T10:19:26+12:00 (8 years ago)
Author:
kjdon
Message:

handle the case when there is no name displayItem. Otherwise the whole page is affected, and you can't see any colleciton links

File:
1 edited

Legend:

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

    r30542 r30688  
    250250          <div class="collectionLink ui-corner-all">
    251251            <div class="collectionLinkText ui-widget-content ui-corner-top">
    252                 <xsl:value-of select="displayItem[@name='name']"/>
     252                <xsl:choose><xsl:when test="displayItem[@name='name']"><xsl:value-of select="displayItem[@name='name']"/></xsl:when>
     253                <xsl:otherwise>
     254                  <xsl:value-of select="@name"/>
     255                </xsl:otherwise>
     256                  </xsl:choose>
     257                 
    253258            </div>
    254259            <div style="height:15px;" class="ui-state-default ui-corner-bottom"><xsl:text> </xsl:text></div>
Note: See TracChangeset for help on using the changeset viewer.