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 diff --git a/xslt/software/xslt-software-datacite.xslt b/xslt/software/xslt-software-datacite.xslt index 5facf409..1d22f60b 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 @@ - - - - - - - - - - - - + + + + :unav + + + + + + + + :unav + + + + + + + + :unav + + + + + + + + - <xsl:value-of select="."/> + <xsl:choose> + <xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unav</xsl:when> + <xsl:otherwise> + <xsl:value-of select="."/> + </xsl:otherwise> + </xsl:choose> - + + - - - - - - + :unav + +