Changeset 2912
- Timestamp:
- 05/22/13 04:09:46 (11 years ago)
- Location:
- cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/atom/DC-history.xsl
r2911 r2912 54 54 </xsl:function> 55 55 56 <xsl:function name="isocat:timestamp"> 57 <xsl:param name="ts"/> 58 <xsl:sequence select="replace($ts,'\..*','')"/> 59 </xsl:function> 60 56 61 <xsl:template match="change"> 57 62 <atom:entry> … … 70 75 <atom:title> 71 76 <xsl:text>Change by </xsl:text> 72 <xsl:value-of select=" user/name"/>77 <xsl:value-of select="if (normalize-space(user/name)!='') then (user/name) else ('unknown')"/> 73 78 <xsl:text> at </xsl:text> 74 <xsl:value-of select=" @timestamp"/>79 <xsl:value-of select="isocat:timestamp(@timestamp)"/> 75 80 </atom:title> 76 81 <atom:author> 77 82 <atom:name> 78 <xsl:value-of select=" user/name"/>83 <xsl:value-of select="if (normalize-space(user/name)!='') then (user/name) else ('unknown')"/> 79 84 </atom:name> 80 85 </atom:author> 81 86 <atom:updated> 82 <xsl:value-of select=" @timestamp"/>87 <xsl:value-of select="isocat:timestamp(@timestamp)"/> 83 88 </atom:updated> 84 89 <atom:content type="text"> … … 98 103 </atom:title> 99 104 <atom:published> 100 <xsl:value-of select=" (change)[last()]/@timestamp"/>105 <xsl:value-of select="isocat:timestamp((change)[last()]/@timestamp)"/> 101 106 </atom:published> 102 107 <xsl:if test="count(change) gt 1"> 103 108 <atom:updated> 104 <xsl:value-of select=" (change)[1]/@timestamp"/>109 <xsl:value-of select="isocat:timestamp((change)[1]/@timestamp)"/> 105 110 </atom:updated> 106 111 </xsl:if> -
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/html/DC-history.xsl
r2906 r2912 49 49 </span> 50 50 </xsl:function> 51 52 <xsl:function name="isocat:timestamp"> 53 <xsl:param name="ts"/> 54 <xsl:sequence select="replace($ts,'\..*','')"/> 55 </xsl:function> 51 56 52 57 <xsl:template match="change"> 53 58 <dt> 54 59 <a name="c{@isocat:id}"> 55 <xsl:value-of select=" @timestamp"/>60 <xsl:value-of select="isocat:timestamp(@timestamp)"/> 56 61 <xsl:text> - </xsl:text> 57 62 <xsl:choose>
Note: See TracChangeset
for help on using the changeset viewer.