Revision 59669
Added by Alessia Bardi over 3 years ago
re3data2db_TMP.xml | ||
---|---|---|
95 | 95 |
<xsl:value-of select="$orgId"/> |
96 | 96 |
</FIELD> |
97 | 97 |
</ROW> |
98 |
<xsl:for-each select="//*[local-name() = 'institutionIdentifier']"> |
|
99 |
<xsl:if test="starts-with(./text(), 'ROR') or starts-with(./text(), 'RRID') or starts-with(./text(), 'VIAF')"> |
|
100 |
<ROW table="dsm_identities"> |
|
101 |
<FIELD name="_dnet_resource_identifier_"> |
|
102 |
<xsl:value-of select="concat(./text(), '@@', substring-before(./text(), ':'))"/> |
|
103 |
</FIELD> |
|
104 |
<FIELD name="pid"> |
|
105 |
<xsl:value-of select="./text()"/> |
|
106 |
</FIELD> |
|
107 |
<FIELD name="issuertype"> |
|
108 |
<xsl:value-of select="substring-before(./text(), ':')"/> |
|
109 |
</FIELD> |
|
110 |
</ROW> |
|
111 |
<ROW table="dsm_organizationpids"> |
|
112 |
<FIELD name="_dnet_resource_identifier_"> |
|
113 |
<xsl:value-of select="concat(./text(), '@@', $orgId)"/> |
|
114 |
</FIELD> |
|
115 |
<FIELD name="pid"> |
|
116 |
<xsl:value-of select="./text()"/> |
|
117 |
</FIELD> |
|
118 |
<FIELD name="organization"> |
|
119 |
<xsl:value-of select="$orgId"/> |
|
120 |
</FIELD> |
|
121 |
</ROW> |
|
122 |
</xsl:if> |
|
123 |
</xsl:for-each> |
|
98 | 124 |
</xsl:for-each> |
99 | 125 |
|
100 | 126 |
</ROWS> |
Also available in: Unified diff
Mapping also organisation identifiers that are issued by ROR, VIAF and RRID