Skip to content

Commit

Permalink
Fix nesting of DC import.
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronCinNZ committed Oct 1, 2024
1 parent 2055dfa commit a725119
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
<mdb:metadataScope>
<mdb:MD_MetadataScope>
<mdb:resourceScope>
<mcc:MD_ScopeCode codeList="" codeListValue="dc:type"/>
<mcc:MD_ScopeCode codeList="">
<xsl:attribute name="codeListValue" select=".//dc:type" />
</mcc:MD_ScopeCode>
</mdb:resourceScope>
</mdb:MD_MetadataScope>
</mdb:metadataScope>
Expand Down Expand Up @@ -222,42 +224,43 @@
</mcc:MD_Identifier>
</cit:identifier>
</xsl:if>
</cit:CI_Citation>
<xsl:for-each select=".//dc:creator">
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115-1.1.cit.CI_RoleCode" codeListValue="originator"/>
</cit:role>
<cit:party>
<!-- This mapping to a CI_Organization name, if the name is an individual it must be corrected post-important as it can't be determined programmatically. -->
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString><xsl:value-of select="." /></gco:CharacterString>
</cit:name>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
</xsl:for-each>
<xsl:for-each select=".//dc:publisher">
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115-1.1.cit.CI_RoleCode" codeListValue="publisher"/>
</cit:role>
<cit:party>
<!-- This mapping to a CI_Organization name, if the name is an individual it must be corrected post-important as it can't be determined programmatically. -->
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString><xsl:value-of select="." /></gco:CharacterString>
</cit:name>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
</xsl:for-each>


<xsl:for-each select=".//dc:creator">
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115-1.1.cit.CI_RoleCode" codeListValue="originator"/>
</cit:role>
<cit:party>
<!-- This mapping to a CI_Organization name, if the name is an individual it must be corrected post-important as it can't be determined programmatically. -->
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString><xsl:value-of select="." /></gco:CharacterString>
</cit:name>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
</xsl:for-each>
<xsl:for-each select=".//dc:publisher">
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115-1.1.cit.CI_RoleCode" codeListValue="publisher"/>
</cit:role>
<cit:party>
<!-- This mapping to a CI_Organization name, if the name is an individual it must be corrected post-important as it can't be determined programmatically. -->
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString><xsl:value-of select="." /></gco:CharacterString>
</cit:name>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
</xsl:for-each>

</cit:CI_Citation>
</mri:citation>
<mri:abstract>
<gco:CharacterString>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ <h1 data-translate="">ImportRecord</h1>
type="radio"
data-ng-model="params.transformWith"
name="transformWith"
value="schema:iso19115-3.2018:convert/fromDC"
value="schema:iso19115-3.2018:convert/fromMWLR-DC"
/>
Dublin Core
</label>
Expand Down

0 comments on commit a725119

Please sign in to comment.