Changeset 30688

Show
Ignore:
Timestamp:
08.08.2016 10:19:26 (3 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

Files:
1 modified

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>