Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#550 Write publicationAccessTypeValue to json
Browse files Browse the repository at this point in the history
Possommi committed Jun 19, 2024
1 parent 10d5d94 commit b05691b
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ protected JsonObject toJSON(MCRContent source) throws IOException {
addProperty(jsonObject, "//modsContainer/mods:physicalDescription/mods:extent", xml, "numberOfPages");

addCreators(jsonObject, xml);
addQualifiedObjectID(jsonObject, "//mods:classification[contains(@valueURI, 'publicationAccessTypeValue')]", xml, "access");
addQualifiedObjectID(jsonObject, "//mods:classification[contains(@valueURI, 'publicationCreatorTypeValue')]", xml, "publicationCreatorType");
addQualifiedObjectID(jsonObject, "//mods:classification[contains(@valueURI, 'visibilityValue')]", xml, "visibilityValue");
addQualifiedObjectID(jsonObject, "//mods:classification[contains(@valueURI, 'state/publication')]", xml,"status");
Original file line number Diff line number Diff line change
@@ -27,9 +27,6 @@
<!-- PublicationAccessType (Zugangsrecht nach KDSF) -->
<xsl:call-template name="publicationAccessType"/>

<!-- Map identifiers like doi, urn, ... -->
<xsl:call-template name="globalIdentifiers"/>

<!-- Set research areas as of KDSF -->
<xsl:call-template name="researchAreaKdsf"/>

@@ -45,6 +42,9 @@
<!-- Set publicationCreatorType class -->
<xsl:call-template name="creatorType"/>

<!-- Map identifiers like doi, urn, ... -->
<xsl:call-template name="globalIdentifiers"/>

<!-- Retain original mods:mods -->
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>

0 comments on commit b05691b

Please sign in to comment.