Skip to content

Commit

Permalink
fixes problems with duplicated license and email, suggests some new s…
Browse files Browse the repository at this point in the history
…copecode types
  • Loading branch information
Paul committed Jul 3, 2020
1 parent 24ae19d commit 631d6ec
Showing 1 changed file with 29 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,25 @@
<entry key="nonGeographicDataset" value="Dataset"/>
<entry key="dimensionGroup" value="TechArticle"/>
<entry key="featureType" value="Dataset"/>
<entry key="attribute" value="CreativeWork"/>
<entry key="attributeType" value="Thing"/>
<entry key="feature" value="Thing"/>
<entry key="propertyType" value="Thing"/>
<entry key="fieldSession" value="Project"/>
<entry key="software" value="SoftwareApplication"/>
<entry key="model" value="TechArticle"/>
<entry key="tile" value="Dataset"/>
<entry key="fieldSession" value="Project"/>
<entry key="metadata" value="ArchiveComponent"/>
<entry key="initiative" value="Thing"/>
<entry key="sample" value="ArchiveComponent"/>
<entry key="document" value="DigitalDocument"/>
<entry key="repository" value="ArchiveComponent"/>
<entry key="aggregate" value="ArchiveComponent"/>
<entry key="product" value="Product"/>
<entry key="collection" value="ArchiveComponent"/>
<entry key="coverage" value="CreativeWork"/>
<entry key="collectionSession" value="Project"/>

</xsl:variable>

<xsl:variable name="match"
Expand Down Expand Up @@ -242,10 +257,13 @@
,"name": <xsl:apply-templates mode="toJsonLDLocalized"
select="."/>
</xsl:for-each>
<xsl:for-each select=".//cit:electronicMailAddress">
,"email": <xsl:apply-templates mode="toJsonLDLocalized"
select="."/>
</xsl:for-each>
<xsl:if test=".//cit:electronicMailAddress">

,"email": [<xsl:for-each select=".//cit:electronicMailAddress">
<xsl:apply-templates mode="toJsonLDLocalized" select="."/>
<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>]
</xsl:if>

<!-- TODO: only if children available -->
,"contactPoint": {
Expand Down Expand Up @@ -352,11 +370,13 @@
-->
</xsl:for-each>

<xsl:for-each select="mdb:identificationInfo/*/mri:resourceConstraints/mco:MD_LegalConstraints/mco:otherConstraints">
,"license": <xsl:apply-templates mode="toJsonLDLocalized"
select="."/>
</xsl:for-each>

<xsl:if test="mdb:identificationInfo/*/mri:resourceConstraints/mco:MD_LegalConstraints/mco:otherConstraints">
,"license": [<xsl:for-each select="mdb:identificationInfo/*/mri:resourceConstraints/mco:MD_LegalConstraints/mco:otherConstraints">
<xsl:apply-templates mode="toJsonLDLocalized" select="."/>
<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>]
</xsl:if>
<!-- TODO: When a dataset derives from or aggregates several originals, use the isBasedOn property. -->
<!-- TODO: hasPart -->
}
Expand Down

0 comments on commit 631d6ec

Please sign in to comment.