Changeset 1213

Show
Ignore:
Timestamp:
10/25/07 14:05:55 (1 year ago)
Author:
thomase
Message:

treat the value of the filterdate parameter as "all dates after this date" rather than as "all dates equal to this date"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • BibIt/trunk/modsCollection2Changes.xsl

    r1053 r1213  
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
    33    xmlns:mods="http://www.loc.gov/mods/v3" 
     4    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    45    version="2.0"> 
    56     
     
    1617        <xsl:choose> 
    1718            <xsl:when test="$filterdate != ''"> 
    18                 <xsl:if test="descendant::mods:recordChangeDate[starts-with(., $filterdate)] or descendant::mods:recordCreationDate[starts-with(., $filterdate)]"><xsl:call-template name="writechange"/></xsl:if> 
     19                <xsl:variable name="lastdate"> 
     20                    <xsl:choose> 
     21                        <xsl:when test="descendant::mods:recordChangeDate"><xsl:value-of select="descendant::mods:recordChangeDate[last()]"/></xsl:when> 
     22                        <xsl:otherwise><xsl:value-of select="descendant::mods:recordCreationDate"/></xsl:otherwise> 
     23                    </xsl:choose> 
     24                </xsl:variable> 
     25                <xsl:if test="xs:dateTime($lastdate) &gt; xs:dateTime($filterdate)"><xsl:call-template name="writechange"/></xsl:if> 
    1926            </xsl:when> 
    2027            <xsl:otherwise><xsl:call-template name="writechange"/></xsl:otherwise>