Changeset 36979


Ignore:
Timestamp:
2022-12-07T12:15:22+13:00 (17 months ago)
Author:
kjdon
Message:

added in the displayErrorsIfAny template - now if you try to request a document page with an invalid id, you get the error, instead of an untitled empty document.

File:
1 edited

Legend:

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

    r36636 r36979  
    790790    </xsl:template>
    791791
    792     <xsl:template match="/page"><xsl:apply-templates select="/page/pageResponse/document"/></xsl:template> <!-- this to be deleted eventually -->
     792    <xsl:template match="/page"><gslib:displayErrorsIfAny/><xsl:apply-templates select="/page/pageResponse/document"/></xsl:template> <!-- this to be deleted eventually -->
    793793   
    794794    <xsl:template name="documentPre">
Note: See TracChangeset for help on using the changeset viewer.