Revision 51054
Added by Sandro La Bruzzo about 6 years ago
dc2dmf.xml | ||
---|---|---|
40 | 40 |
</oai:header> |
41 | 41 |
<oai:metadata> |
42 | 42 |
<resource xmlns="http://datacite.org/schema/kernel-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd"> |
43 |
<xsl:variable name="identifier" select="//*[local-name()='identifier']"/>
|
|
44 |
<xsl:for-each select="$identifier">
|
|
45 |
<xsl:variable name="pid" select="dnet:getDOI(.)"/>
|
|
46 |
<xsl:if test="$pid">
|
|
47 |
<identifier identifierType="DOI">
|
|
48 |
<xsl:value-of select="$pid"/>
|
|
49 |
</identifier>
|
|
50 |
</xsl:if>
|
|
51 |
</xsl:for-each>
|
|
43 |
<!--<xsl:variable name="identifier" select="//*[local-name()='identifier']"/>-->
|
|
44 |
<!--<xsl:for-each select="$identifier">-->
|
|
45 |
<!--<xsl:variable name="pid" select="dnet:getDOI(.)"/>-->
|
|
46 |
<!--<xsl:if test="$pid">-->
|
|
47 |
<!--<identifier identifierType="DOI">-->
|
|
48 |
<!--<xsl:value-of select="$pid"/>-->
|
|
49 |
<!--</identifier>-->
|
|
50 |
<!--</xsl:if>-->
|
|
51 |
<!--</xsl:for-each>-->
|
|
52 | 52 |
|
53 | 53 |
|
54 | 54 |
<xsl:variable name="creators" select="//*[local-name()='creator']"/> |
... | ... | |
108 | 108 |
</dates> |
109 | 109 |
</xsl:if> |
110 | 110 |
<xsl:variable name="geoLocations" select="//*[local-name()='coverage']"/> |
111 |
<xsl:if test="$geoLocations">
|
|
112 |
<geoLocations>
|
|
113 |
<xsl:for-each select="$geoLocations">
|
|
114 |
<xsl:if test="not(dnet:isDate(.))">
|
|
115 |
<geoLocation>
|
|
116 |
<geoLocationPlace>
|
|
117 |
<xsl:value-of select="."/>
|
|
118 |
</geoLocationPlace>
|
|
119 |
</geoLocation>
|
|
120 |
</xsl:if>
|
|
111 |
<!--<xsl:if test="$geoLocations">-->
|
|
112 |
<!--<geoLocations>-->
|
|
113 |
<!--<xsl:for-each select="$geoLocations">-->
|
|
114 |
<!--<xsl:if test="not(dnet:isDate(.))">-->
|
|
115 |
<!--<geoLocation>-->
|
|
116 |
<!--<geoLocationPlace>-->
|
|
117 |
<!--<xsl:value-of select="."/>-->
|
|
118 |
<!--</geoLocationPlace>-->
|
|
119 |
<!--</geoLocation>-->
|
|
120 |
<!--</xsl:if>-->
|
|
121 | 121 |
|
122 |
</xsl:for-each>
|
|
123 |
</geoLocations>
|
|
124 |
</xsl:if>
|
|
122 |
<!--</xsl:for-each>-->
|
|
123 |
<!--</geoLocations>-->
|
|
124 |
<!--</xsl:if>-->
|
|
125 | 125 |
<resourceType resourceTypeGeneral="dataset"/> |
126 | 126 |
</resource> |
127 | 127 |
</oai:metadata> |
Also available in: Unified diff
re-format code