Skip to content

Commit

Permalink
Harvester / Add support for Zenodo / Add subjects.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Jan 2, 2025
1 parent c55e21c commit bc00549
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,31 @@
</mri:pointOfContact>
</xsl:for-each>

<!-- TODO
<!--
<subjects>
<subject>oceanography</subject>
</subjects>
-->
<xsl:variable name="keywords"
select="metadata/subjects/subject"
as="node()*"/>

<xsl:if test="$keywords">
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<xsl:for-each select="$keywords">
<mri:keyword>
<gco:CharacterString><xsl:value-of select="."/></gco:CharacterString>
</mri:keyword>
</xsl:for-each>
<mri:type>
<mri:MD_KeywordTypeCode codeListValue="theme"
codeList="./resources/codeList.xml#MD_KeywordTypeCode"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
</xsl:if>


<!--
<rights>
Expand Down
13 changes: 13 additions & 0 deletions schemas/iso19115-3.2018/src/test/resources/zenodo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,19 @@
</cit:party>
</cit:CI_Responsibility>
</mri:pointOfContact>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>data</gco:CharacterString>
</mri:keyword>
<mri:keyword>
<gco:CharacterString>oceanography</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeListValue="theme" codeList="./resources/codeList.xml#MD_KeywordTypeCode"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:resourceConstraints>
<mco:MD_LegalConstraints>
<mco:accessConstraints>
Expand Down

0 comments on commit bc00549

Please sign in to comment.