Changeset 2914


Ignore:
Timestamp:
05/22/13 04:21:59 (11 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-interface-rest/representations/atom/DC-history.xsl

  • adapted timestamp format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/atom/DC-history.xsl

    r2913 r2914  
    5959        </xsl:function>
    6060       
     61        <xsl:function name="isocat:tzTimestamp">
     62                <xsl:param name="ts"/>
     63                <xsl:sequence select="concat(replace(isocat:timestamp($ts),' ','T'),'Z')"/>
     64        </xsl:function>
     65       
    6166        <xsl:template match="change">
    6267                <atom:entry>
     
    8590                        </atom:author>
    8691                        <atom:updated>
    87                                 <xsl:value-of select="isocat:timestamp(@timestamp)"/>
     92                                <xsl:value-of select="isocat:tzTimestamp(@timestamp)"/>
    8893                        </atom:updated>
    8994                        <atom:content type="text">
     
    103108                        </atom:title>
    104109                        <atom:published>
    105                                 <xsl:value-of select="isocat:timestamp((change)[last()]/@timestamp)"/>
     110                                <xsl:value-of select="isocat:tzTimestamp((change)[last()]/@timestamp)"/>
    106111                        </atom:published>
    107112                        <xsl:if test="count(change) gt 1">
    108113                                <atom:updated>
    109                                         <xsl:value-of select="isocat:timestamp((change)[1]/@timestamp)"/>
     114                                        <xsl:value-of select="isocat:tzTimestamp((change)[1]/@timestamp)"/>
    110115                                </atom:updated>
    111116                        </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.