Revision 55113
Added by Alessia Bardi over 5 years ago
xslt_cleaning_ORP-biotools.xml | ||
---|---|---|
327 | 327 |
<xsl:call-template name="terminate"/> |
328 | 328 |
</xsl:when> |
329 | 329 |
<xsl:otherwise> |
330 |
<datacite:creators>
|
|
330 |
<creators> |
|
331 | 331 |
<xsl:for-each |
332 | 332 |
select="//*[local-name() = 'credit'][./*[local-name() = 'typeRole' and (. = 'Developer' or . = 'Primary contact')]]/*[local-name() = 'name' and not(. = 'null')]"> |
333 | 333 |
<xsl:for-each select="tokenize(., ', ')"> |
334 | 334 |
<xsl:variable name="varDeveloperName" |
335 | 335 |
select="TransformationFunction:convertString($tf, normalize-space(.), 'Person')"/> |
336 |
<datacite:creator>
|
|
337 |
<datacite:creatorName>
|
|
336 |
<creator> |
|
337 |
<creatorName> |
|
338 | 338 |
<xsl:value-of select="$varDeveloperName"/> |
339 |
</datacite:creatorName>
|
|
340 |
<datacite:givenName>
|
|
339 |
</creatorName> |
|
340 |
<givenName> |
|
341 | 341 |
<xsl:value-of select="substring-after($varDeveloperName, ', ')" |
342 | 342 |
/> |
343 |
</datacite:givenName>
|
|
344 |
<datacite:familyName>
|
|
343 |
</givenName> |
|
344 |
<familyName> |
|
345 | 345 |
<xsl:value-of select="substring-before($varDeveloperName, ', ')" |
346 | 346 |
/> |
347 |
</datacite:familyName>
|
|
347 |
</familyName> |
|
348 | 348 |
<xsl:if |
349 | 349 |
test="string-length(./*[local-name() = 'orcidId']) > 0 and ./*[local-name() = 'orcidId'] != 'null'"> |
350 | 350 |
<nameIdentifier nameIdentifierScheme="ORCID" |
... | ... | |
352 | 352 |
<xsl:value-of select="./*[local-name() = 'orcidId']"/> |
353 | 353 |
</nameIdentifier> |
354 | 354 |
</xsl:if> |
355 |
</datacite:creator>
|
|
355 |
</creator> |
|
356 | 356 |
</xsl:for-each> |
357 | 357 |
</xsl:for-each> |
358 |
</datacite:creators>
|
|
358 |
</creators> |
|
359 | 359 |
</xsl:otherwise> |
360 | 360 |
</xsl:choose> |
361 | 361 |
</xsl:template> |
Also available in: Unified diff
removed datatcite namespace on authors