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 3, 2023
1 parent 83a4932 commit 1833f09
Showing 1 changed file with 12 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,18 @@
</mri:equivalentScale>
</mri:MD_Resolution>
</mri:spatialResolution>-->
<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>

<!--<mri:extent>
<gex:EX_Extent>
<gex:temporalElement>
Expand Down Expand Up @@ -370,25 +379,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 1833f09

Please sign in to comment.