From bb4c1c01a53c5beade8efd8c82177c44b4d677db Mon Sep 17 00:00:00 2001 From: shirazos7 Date: Mon, 3 Feb 2025 13:40:20 +0100 Subject: [PATCH 1/3] reshape manadtory properties --- xslt/software/xslt-software-datacite.xslt | 96 ++++++++++++++--------- 1 file changed, 60 insertions(+), 36 deletions(-) diff --git a/xslt/software/xslt-software-datacite.xslt b/xslt/software/xslt-software-datacite.xslt index 5facf409..6b5ddf2c 100644 --- a/xslt/software/xslt-software-datacite.xslt +++ b/xslt/software/xslt-software-datacite.xslt @@ -25,39 +25,44 @@ - - - + + + - + - + - + + :null - + + English - + :none + application/xml - - - + + + + + + - - - - - + :null + + + @@ -83,31 +88,50 @@ - - - - - - - - - - - - + + + + :unkn + + + + + + + + :unkn + + + + + + + + :unkn + + + + + + + + - <xsl:value-of select="."/> + <xsl:choose> + <xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unas</xsl:when> + <xsl:otherwise> + <xsl:value-of select="."/> + </xsl:otherwise> + </xsl:choose> - + + - - - - - - + :unav + + From 3a102e3c2089fcda2ada4d5e1ae11ee3b6e8973f Mon Sep 17 00:00:00 2001 From: shirazos7 Date: Mon, 3 Feb 2025 13:41:17 +0100 Subject: [PATCH 2/3] reshape the result of transformation --- test/data/software/Datacite-software-reference.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/data/software/Datacite-software-reference.xml b/test/data/software/Datacite-software-reference.xml index aa45144c..03d02cc6 100644 --- a/test/data/software/Datacite-software-reference.xml +++ b/test/data/software/Datacite-software-reference.xml @@ -19,7 +19,7 @@ SuperLU-DIST - zbMATH Open Web Interface contents unavailable due to conflicting licenses. + :unav 2003 @@ -42,7 +42,7 @@ orms English - + :none application/xml From 3c90c2e567fe5df8243433978220f9d83e1355b3 Mon Sep 17 00:00:00 2001 From: shirazos7 Date: Mon, 3 Feb 2025 14:19:22 +0100 Subject: [PATCH 3/3] changing the type property to unavilable for creator and title --- xslt/software/xslt-software-datacite.xslt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xslt/software/xslt-software-datacite.xslt b/xslt/software/xslt-software-datacite.xslt index 6b5ddf2c..1d22f60b 100644 --- a/xslt/software/xslt-software-datacite.xslt +++ b/xslt/software/xslt-software-datacite.xslt @@ -91,7 +91,7 @@ - :unkn + :unav @@ -99,7 +99,7 @@ - :unkn + :unav @@ -107,7 +107,7 @@ - :unkn + :unav @@ -119,7 +119,7 @@ <xsl:choose> - <xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unas</xsl:when> + <xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unav</xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise>