Changeset 1052

Show
Ignore:
Timestamp:
08/21/07 11:16:54 (1 year ago)
Author:
thomase
Message:

when determining the date to use in head and in text, make sure to use creation date if there is no change date

Files:

Legend:

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

    r953 r1052  
    2929    <xsl:template match="mods:mods"> 
    3030        <xsl:variable name="thetitle"><xsl:call-template name="getbesttitle"/></xsl:variable> 
    31         <xsl:variable name="thedate" select="descendant::mods:recordChangeDate[last()]"/> 
     31        <xsl:variable name="thedate"> 
     32            <xsl:choose> 
     33                <xsl:when test="descendant::mods:recordChangeDate"><xsl:value-of select="descendant::mods:recordChangeDate[last()]"/></xsl:when> 
     34                <xsl:otherwise><xsl:value-of select="descendant::mods:recordCreationDate"/></xsl:otherwise> 
     35            </xsl:choose> 
     36        </xsl:variable> select="descendant::mods:recordChangeDate[last()]"/> 
    3237        <xsl:result-document href="{$htmloutpath}{@ID}.html" format="html-format"> 
    3338            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">