Skip to content

Commit

Permalink
gn - fix(ods): copy ods themes to topicCategory instead of keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed May 5, 2023
1 parent d2acddf commit 3cdf603
Showing 1 changed file with 10 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,16 @@
</mri:pointOfContact>
</xsl:for-each>

<mri:topicCategory>
<mri:MD_TopicCategoryCode></mri:MD_TopicCategoryCode>
</mri:topicCategory>
<!-- ODS themes copied as topicCategory -->
<xsl:if test="metas/theme">
<xsl:for-each select="metas/theme">
<mri:topicCategory>
<mri:MD_TopicCategoryCode>
<xsl:value-of select="."/>
</mri:MD_TopicCategoryCode>
</mri:topicCategory>
</xsl:for-each>
</xsl:if>

<!-- ODS keywords copied without type -->
<xsl:variable name="keywords"
Expand All @@ -285,25 +292,6 @@
</mri:descriptiveKeywords>
</xsl:if>

<!-- ODS themes copied as keywords with type 'theme' -->
<xsl:if test="metas/theme">
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<xsl:for-each select="metas/theme">
<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>

<!--
license_url: "http://opendatacommons.org/licenses/odbl/",
-->
Expand Down

0 comments on commit 3cdf603

Please sign in to comment.