From b05691b2a138d3ea3ff78b6ffb04643667d3dd70 Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Wed, 19 Jun 2024 12:42:20 +0200 Subject: [PATCH] #550 Write publicationAccessTypeValue to json --- .../content/transformer/PublicationHisResTransformer.java | 1 + .../resources/xsl/mycoreobject-mods-resolve-his-keys.xsl | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/de/uni_jena/thunibib/his/content/transformer/PublicationHisResTransformer.java b/common/src/main/java/de/uni_jena/thunibib/his/content/transformer/PublicationHisResTransformer.java index 74cbc670b..6bf83989c 100644 --- a/common/src/main/java/de/uni_jena/thunibib/his/content/transformer/PublicationHisResTransformer.java +++ b/common/src/main/java/de/uni_jena/thunibib/his/content/transformer/PublicationHisResTransformer.java @@ -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"); diff --git a/common/src/main/resources/xsl/mycoreobject-mods-resolve-his-keys.xsl b/common/src/main/resources/xsl/mycoreobject-mods-resolve-his-keys.xsl index c2e7cf980..c5c88c366 100644 --- a/common/src/main/resources/xsl/mycoreobject-mods-resolve-his-keys.xsl +++ b/common/src/main/resources/xsl/mycoreobject-mods-resolve-his-keys.xsl @@ -27,9 +27,6 @@ - - - @@ -45,6 +42,9 @@ + + +