Changeset 31905

Show
Ignore:
Timestamp:
21.08.2017 10:27:18 (4 months ago)
Author:
kjdon
Message:

handle case where rss has an error: just print it out. Would be nicer to make teh page look like teh about page or something, but this will do for now.

Files:
1 modified

Legend:

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

    r30778 r31905  
    1919    --> 
    2020 
    21  <xsl:template match="/page"> 
    22     <xsl:apply-templates select="pageResponse/rss"/> 
     21  <xsl:template match="/page"> 
     22    <xsl:choose> 
     23      <xsl:when test="pageResponse/rss"> 
     24    <xsl:apply-templates select="pageResponse/rss"/> 
     25      </xsl:when> 
     26      <xsl:when test="descendant::error"> 
     27      <div id="error"> 
     28            <xsl:apply-templates select="descendant::error"/> 
     29      </div> 
     30      </xsl:when> 
     31      <xsl:otherwise><!-- do what?--> 
     32      </xsl:otherwise> 
     33    </xsl:choose> 
    2334  </xsl:template> 
    2435