Changeset 33701

Show
Ignore:
Timestamp:
19.11.2019 13:59:29 (3 weeks ago)
Author:
kjdon
Message:

added more breadcrumbs to the page. And now it displays an error if there is one, instead of displaying the collectionlist

Files:
1 modified

Legend:

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

    r27874 r33701  
    1515 
    1616    <!-- set page breadcrumbs --> 
    17     <xsl:template name="breadcrumbs"/> 
    18  
     17    <xsl:template name="breadcrumbs"> 
     18      <gslib:siteLink/><gslib:rightArrow/><gslib:depositorTitleAndLink/><gslib:rightArrow/> 
     19      <xsl:if test="/page/pageResponse/collection"> 
     20        <gslib:collectionNameLinked/><gslib:rightArrow/> 
     21      </xsl:if> 
     22    </xsl:template> 
     23     
    1924    <xsl:template match="/page"> 
     25      <xsl:choose> 
     26        <xsl:when test="/page/pageResponse/error"> 
     27              <div id="gs_error" class="ui-state-error ui-corner-all"> 
     28                <span class="ui-icon ui-icon-alert" style="float: left;"><xsl:text> </xsl:text></span><xsl:value-of select="/page/pageResponse/error"/> 
     29              </div> 
     30              <br/> 
     31            </xsl:when> 
     32        <xsl:otherwise> 
    2033        <div style="display:table; margin: 0 auto"> 
    2134            Please select a collection: 
     
    4255            </script> 
    4356        </div> 
     57        </xsl:otherwise> 
     58      </xsl:choose> 
    4459    </xsl:template> 
    4560</xsl:stylesheet>