Changeset 24439


Ignore:
Timestamp:
2011-08-20T19:31:04+12:00 (10 years ago)
Author:
ak19
Message:

Modified oai2.xsl to not display the message There Are More Results and the Resume button when the final, empty resumptionToken is sent. The resumptionToken template now tests for whether there are childnodes to the resumptionToken before outputting such a message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oai/oai2.xsl

    r23861 r24439  
    440440
    441441<!-- oai resumptionToken -->
    442 
     442<!-- test that the node has children/is not an empty node before outputting that there are more results -->
    443443<xsl:template match="oai:resumptionToken">
     444  <xsl:if test="node()">
    444445   <p>There are more results.</p>
    445446   <table class="values">
     
    449450<a class="link" href="?verb={/oai:OAI-PMH/oai:request/@verb}&amp;resumptionToken={.}">Resume</a></td></tr>
    450451   </table>
     452  </xsl:if>
    451453</xsl:template>
    452454
Note: See TracChangeset for help on using the changeset viewer.