Skip to content

Commit

Permalink
[#27] Added mapping of additional IDs to BioSample
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Aug 5, 2024
1 parent c66df47 commit aca75b2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions transformations/abcd2bioschemas/abcd2bioschemas-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,21 @@ exclude-result-prefixes="xsl md panxslt set">
<about type="BioSample">
<xsl:variable name="record_uri" select="./abcd:RecordURI"></xsl:variable>
<identifier><xsl:value-of select="$record_uri"/></identifier>
<xsl:if test="./abcd:SourceInstitutionID">
<identifier><xsl:value-of select="./abcd:SourceInstitutionID"/></identifier>
</xsl:if>
<xsl:if test="./abcd:SourceID">
<identifier><xsl:value-of select="./abcd:SourceID"/></identifier>
</xsl:if>
<xsl:if test="./abcd:UnitID">
<identifier><xsl:value-of select="./abcd:UnitID"/></identifier>
</xsl:if>
<xsl:if test="./abcd:UnitIDNumeric">
<identifier><xsl:value-of select="./abcd:UnitIDNumeric"/></identifier>
</xsl:if>
<xsl:if test="./abcd:UnitGUID">
<identifier><xsl:value-of select="./abcd:UnitGUID"/></identifier>
</xsl:if>
<xsl:if test="contains($record_uri,'http')">
<url><xsl:value-of select="$record_uri"/></url>
</xsl:if>
Expand Down

0 comments on commit aca75b2

Please sign in to comment.