From: <jos...@us...> - 2009-12-01 07:50:34
|
Revision: 5535 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=5535&view=rev Author: josegar74 Date: 2009-12-01 07:50:24 +0000 (Tue, 01 Dec 2009) Log Message: ----------- Fix bug 498: The Slots "Created", "Modified", "Issued" are of type "urn:oasis:names:tc:ebxml-regrep:DataType:DateTime", instead of type "urn:oasis:names:tc:ebxml-regrep:DataType:Date" Modified Paths: -------------- sandbox/3.0.x/geonetwork-services-ebrim/src/main/resources/xslt/ISO19139toCIM.xslt Modified: sandbox/3.0.x/geonetwork-services-ebrim/src/main/resources/xslt/ISO19139toCIM.xslt =================================================================== --- sandbox/3.0.x/geonetwork-services-ebrim/src/main/resources/xslt/ISO19139toCIM.xslt 2009-12-01 03:30:53 UTC (rev 5534) +++ sandbox/3.0.x/geonetwork-services-ebrim/src/main/resources/xslt/ISO19139toCIM.xslt 2009-12-01 07:50:24 UTC (rev 5535) @@ -1703,7 +1703,7 @@ <xsl:if test="$date/gco:Date"> <!-- the dateType can be either creation, revision or publication --> <xsl:if test="$dateType/gmd:CI_DateTypeCode/@codeListValue = 'creation'"> - <xsl:call-template name="slot-typed-date"> + <xsl:call-template name="slot-typed-datetime"> <xsl:with-param name="date" select="$date/gco:Date"/> <xsl:with-param name="slotname"> <xsl:value-of select="$createdSlotName"/> @@ -1711,7 +1711,7 @@ </xsl:call-template> </xsl:if> <xsl:if test="$dateType/gmd:CI_DateTypeCode/@codeListValue = 'revision'"> - <xsl:call-template name="slot-typed-date"> + <xsl:call-template name="slot-typed-datetime"> <xsl:with-param name="date" select="$date/gco:Date"/> <xsl:with-param name="slotname"> <xsl:value-of select="$modifiedSlotName"/> @@ -1719,7 +1719,7 @@ </xsl:call-template> </xsl:if> <xsl:if test="$dateType/gmd:CI_DateTypeCode/@codeListValue = 'publication'"> - <xsl:call-template name="slot-typed-date"> + <xsl:call-template name="slot-typed-datetime"> <xsl:with-param name="date" select="$date/gco:Date"/> <xsl:with-param name="slotname"> <xsl:value-of select="$issuedSlotName"/> @@ -1730,7 +1730,7 @@ <xsl:if test="$date/gco:DateTime"> <!-- the dateType can be either creation, revision or publication --> <xsl:if test="$dateType/gmd:CI_DateTypeCode/@codeListValue = 'creation'"> - <xsl:call-template name="slot-typed-date"> + <xsl:call-template name="slot-typed-datetime"> <xsl:with-param name="date" select="$date/gco:DateTime"/> <xsl:with-param name="slotname"> <xsl:value-of select="$createdSlotName"/> @@ -1738,7 +1738,7 @@ </xsl:call-template> </xsl:if> <xsl:if test="$dateType/gmd:CI_DateTypeCode/@codeListValue = 'revision'"> - <xsl:call-template name="slot-typed-date"> + <xsl:call-template name="slot-typed-datetime"> <xsl:with-param name="date" select="$date/gco:DateTime"/> <xsl:with-param name="slotname"> <xsl:value-of select="$modifiedSlotName"/> @@ -1746,7 +1746,7 @@ </xsl:call-template> </xsl:if> <xsl:if test="$dateType/gmd:CI_DateTypeCode/@codeListValue = 'publication'"> - <xsl:call-template name="slot-typed-date"> + <xsl:call-template name="slot-typed-datetime"> <xsl:with-param name="date" select="$date/gco:DateTime"/> <xsl:with-param name="slotname"> <xsl:value-of select="$issuedSlotName"/> @@ -1768,6 +1768,19 @@ </rim:Slot> </xsl:template> + + <xsl:template name="slot-typed-datetime"> + <xsl:param name="date"/> + <xsl:param name="slotname"/> + <rim:Slot name="{$slotname}" slotType="{$dateTimeSlotType}"> + <rim:ValueList> + <rim:Value> + <xsl:value-of select="$date"/> + </rim:Value> + </rim:ValueList> + </rim:Slot> + </xsl:template> + <!-- "For each instance of the property. Each ‘type’ slot contains a reference to a node of the ObjectType classification scheme. This concerns the nodes: Dataset, Service and Application." --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |