From edcd3da8e89a1858f463b237cf3b3e8ff6936bcc Mon Sep 17 00:00:00 2001 From: shirazos7 Date: Fri, 7 Feb 2025 16:18:26 +0100 Subject: [PATCH 1/4] adjusting the properties of relatedItems property --- xslt/articles/xslt-article-Datacite.xslt | 35 ++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/xslt/articles/xslt-article-Datacite.xslt b/xslt/articles/xslt-article-Datacite.xslt index a6a49016..22f9bacc 100644 --- a/xslt/articles/xslt-article-Datacite.xslt +++ b/xslt/articles/xslt-article-Datacite.xslt @@ -316,6 +316,11 @@ each reference has its own relatedItem node and all of its values goes under thi + + :unav + + + + + + + + :unav + + + + + + + :unav + + + + - + + + :unav + @@ -404,7 +428,14 @@ each reference has its own relatedItem node and all of its values goes under thi </xsl:choose> </titles> <publicationYear> - <xsl:value-of select="zbmath/year"/> + <xsl:choose> + <xsl:when test="normalize-space(zbmath/year) = '' or zbmath/year = 'None' or zbmath/year = 'none'"> + <xsl:text>:unav</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="zbmath/year"/> + </xsl:otherwise> + </xsl:choose> </publicationYear> </relatedItem> </xsl:template> From eadb78b3c74c371901a578c3274220f77e29c9e8 Mon Sep 17 00:00:00 2001 From: shirazos7 <shiraz@zbmath.org> Date: Fri, 7 Feb 2025 16:27:36 +0100 Subject: [PATCH 2/4] ajusting again another section in the relatedItems of article's source nodes --- xslt/articles/xslt-article-Datacite.xslt | 42 ++++++++++++++++++++---- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/xslt/articles/xslt-article-Datacite.xslt b/xslt/articles/xslt-article-Datacite.xslt index 22f9bacc..267d430a 100644 --- a/xslt/articles/xslt-article-Datacite.xslt +++ b/xslt/articles/xslt-article-Datacite.xslt @@ -210,37 +210,67 @@ Content generated by zbMATH Open, such as reviews, classifications, software, or <!-- Process title --> <titles> <title> - <xsl:value-of select="series/title"/> + <xsl:choose> + <xsl:when test="normalize-space(series/title) = '' or series/title = 'None' or series/title = 'none'"> + <xsl:text>:unav</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="series/title"/> + </xsl:otherwise> + </xsl:choose> - + + + :unav + + + + + - + - + + + - + + + + + + + + - + + + :unav + + + + + From 7253ffae8063986ea6c6271426814ef49acaeaaa Mon Sep 17 00:00:00 2001 From: shirazos7 Date: Fri, 7 Feb 2025 17:13:00 +0100 Subject: [PATCH 3/4] adding the automatic indention for the xslt code file --- xslt/articles/xslt-article-Datacite.xslt | 632 ++++++++++++----------- 1 file changed, 326 insertions(+), 306 deletions(-) diff --git a/xslt/articles/xslt-article-Datacite.xslt b/xslt/articles/xslt-article-Datacite.xslt index 267d430a..a0c9bad1 100644 --- a/xslt/articles/xslt-article-Datacite.xslt +++ b/xslt/articles/xslt-article-Datacite.xslt @@ -9,350 +9,366 @@ Made by Shiraz Malla Mohamad member of zbmath Team--> exclude-result-prefixes="#default"> - + - - + + - + - + - - - - + + + + - - - + + + - - + + - + - The zbMATH Open OAI-PMH API is subject to the Terms and Conditions for the zbMATH Open API Service of FIZ Karlsruhe – Leibniz-Institut für Informationsinfrastruktur GmbH. -Content generated by zbMATH Open, such as reviews, classifications, software, or author disambiguation data, are distributed under CC-BY-SA 4.0. This defines the license for the whole dataset, which also contains non-copyrighted bibliographic metadata and reference data derived from I4OC (CC0). Note that the API only provides a subset of the data in the zbMATH Open Web interface. In several cases, third-party information, such as abstracts, cannot be made available under a suitable license through the API. In those cases, we replaced the data with the string -"zbMATH Open Web Interface contents unavailable due to conflicting licenses." + The zbMATH Open OAI-PMH API is subject to the Terms and Conditions for the zbMATH Open API Service + of FIZ Karlsruhe – Leibniz-Institut für Informationsinfrastruktur GmbH. + Content generated by zbMATH Open, such as reviews, classifications, software, or author + disambiguation data, are distributed under CC-BY-SA 4.0. This defines the license for the whole + dataset, which also contains non-copyrighted bibliographic metadata and reference data derived from + I4OC (CC0). Note that the API only provides a subset of the data in the zbMATH Open Web interface. + In several cases, third-party information, such as abstracts, cannot be made available under a + suitable license through the API. In those cases, we replaced the data with the string + "zbMATH Open Web Interface contents unavailable due to conflicting licenses." + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - + + + + + + - - - - - :unav - - - - - + + + + + :unav + + + + + - - - :unav - - - - - + + + :unav + + + + + - - - :unav - - - - - + + + :unav + + + + + - - - :unav - - - - - - - + + + :unav + + + + + + + - - + <titles> + <title xml:lang="en"> + <xsl:choose> + <xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unkn</xsl:when> + <xsl:otherwise> + <xsl:value-of select="normalize-space(.)"/> + </xsl:otherwise> + </xsl:choose> + + + + + + + - :unkn + :unav - + - - - - - - - - - :unav - - - - - - + + - - - - :unav - - - - - - + + + + :unav + + + + + + - - + + - + - - + + - - - - JournalArticle - - - Book - - - Other - - - - - - + + + + JournalArticle + + + Book + + + Other + + + + + + - - - - - + + + + + - <xsl:choose> - <xsl:when test="normalize-space(series/title) = '' or series/title = 'None' or series/title = 'none'"> + <xsl:choose> + <xsl:when + test="normalize-space(series/title) = '' or series/title = 'None' or series/title = 'none'"> + <xsl:text>:unav</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="series/title"/> + </xsl:otherwise> + </xsl:choose> + + + + + :unav - - + + - - - - - - :unav - - - - - - - - + + + - - - - - + + + + + - - - - - - - - - - - - - - - - :unav - - - - - + + + + + + + + + + + + + + + + :unav + + + + + - - - - + + + + - + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - + + + + + + + - - + + + + + + + + + - - + + - - - - - DOI - - - - URL - - - - - - - - + + - - :unav + + DOI + - - - URL + + + + + + + + + + + :unav + + + + + - - - - + + + - - - + - + :unav - - - - + - - - - - + + - - + + :unav - - - + - - - - :unav - - - - - <xsl:variable name="text" select="text"/> - <xsl:variable name="title-text" select="substring-before(substring-after($text, "''"), "''")"/> - <!-- Remove digits and trailing punctuation --> - <xsl:variable name="title-no-digits" select="translate($title-text, '0123456789', '')"/> - <xsl:value-of select="normalize-space( + <titles> + <xsl:choose> + <xsl:when test="normalize-space(text) = '' or text = 'None' or text = 'none'"> + <title>:unav + + + + + <xsl:variable name="text" select="text"/> + <xsl:variable name="title-text" + select="substring-before(substring-after($text, "''"), "''")"/> + <!-- Remove digits and trailing punctuation --> + <xsl:variable name="title-no-digits" select="translate($title-text, '0123456789', '')"/> + <xsl:value-of select="normalize-space( translate( $title-no-digits, ',.', '' ) )"/> - - - - - - <xsl:variable name="text" select="text"/> - <xsl:variable name="text-no-digits" select="translate($text, '0123456789', '')"/> - <xsl:variable name="first-comma" select="substring-after($text-no-digits, ',')"/> - <xsl:variable name="last-part" select="substring-before($text-no-digits, substring-after($text-no-digits, ', '))"/> - <xsl:variable name="last-comma" select="substring-before($last-part, ',')"/> - <xsl:variable name="result-text" select="normalize-space(concat(substring-before($first-comma, substring-after($first-comma, ', ')), substring-after($first-comma, ', ')))"/> - <xsl:value-of select="normalize-space( + + + + + + <xsl:variable name="text" select="text"/> + <xsl:variable name="text-no-digits" select="translate($text, '0123456789', '')"/> + <xsl:variable name="first-comma" select="substring-after($text-no-digits, ',')"/> + <xsl:variable name="last-part" + select="substring-before($text-no-digits, substring-after($text-no-digits, ', '))"/> + <xsl:variable name="last-comma" select="substring-before($last-part, ',')"/> + <xsl:variable name="result-text" + select="normalize-space(concat(substring-before($first-comma, substring-after($first-comma, ', ')), substring-after($first-comma, ', ')))"/> + <xsl:value-of select="normalize-space( translate( $result-text, ',.', '' ) )"/> - - - - + + + + From 533df690b4f11630182ef4c8d61ce167ce70e9d1 Mon Sep 17 00:00:00 2001 From: shirazos7 Date: Fri, 7 Feb 2025 17:55:26 +0100 Subject: [PATCH 4/4] undoing the indention for rightslist --- xslt/articles/xslt-article-Datacite.xslt | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/xslt/articles/xslt-article-Datacite.xslt b/xslt/articles/xslt-article-Datacite.xslt index a0c9bad1..ed826437 100644 --- a/xslt/articles/xslt-article-Datacite.xslt +++ b/xslt/articles/xslt-article-Datacite.xslt @@ -9,8 +9,7 @@ Made by Shiraz Malla Mohamad member of zbmath Team--> exclude-result-prefixes="#default"> - + @@ -40,22 +39,16 @@ Made by Shiraz Malla Mohamad member of zbmath Team--> - + + - The zbMATH Open OAI-PMH API is subject to the Terms and Conditions for the zbMATH Open API Service - of FIZ Karlsruhe – Leibniz-Institut für Informationsinfrastruktur GmbH. - Content generated by zbMATH Open, such as reviews, classifications, software, or author - disambiguation data, are distributed under CC-BY-SA 4.0. This defines the license for the whole - dataset, which also contains non-copyrighted bibliographic metadata and reference data derived from - I4OC (CC0). Note that the API only provides a subset of the data in the zbMATH Open Web interface. - In several cases, third-party information, such as abstracts, cannot be made available under a - suitable license through the API. In those cases, we replaced the data with the string - "zbMATH Open Web Interface contents unavailable due to conflicting licenses." - + The zbMATH Open OAI-PMH API is subject to the Terms and Conditions for the zbMATH Open API Service of FIZ Karlsruhe – Leibniz-Institut für Informationsinfrastruktur GmbH. +Content generated by zbMATH Open, such as reviews, classifications, software, or author disambiguation data, are distributed under CC-BY-SA 4.0. This defines the license for the whole dataset, which also contains non-copyrighted bibliographic metadata and reference data derived from I4OC (CC0). Note that the API only provides a subset of the data in the zbMATH Open Web interface. In several cases, third-party information, such as abstracts, cannot be made available under a suitable license through the API. In those cases, we replaced the data with the string +"zbMATH Open Web Interface contents unavailable due to conflicting licenses."