forked from D-Net/dnet-hadoop
reverting
This commit is contained in:
parent
7aa3260729
commit
524c06e028
|
@ -169,7 +169,7 @@
|
|||
|
||||
|
||||
<xsl:for-each select="(//datacite:alternateIdentifier, //datacite:identifier)
|
||||
[not($varCobjCategory = '0001' and ./@alternateIdentifierType = ('issn', 'EISSN'))]
|
||||
[not($varCobjCategory = '0001' and ./@alternateIdentifierType = ('ISSN', 'EISSN'))]
|
||||
[not($varCobjCategory = '0013' and ./@alternateIdentifierType = 'ISBN')]
|
||||
[not(//oaf:datasourceprefix = 'od______4225' and ends-with(., 'pdf'))]
|
||||
[not(//oaf:datasourceprefix = ('od______1562', 'od______4732'))]
|
||||
|
@ -182,7 +182,7 @@
|
|||
<xsl:value-of select="."/>
|
||||
</datacite:alternateIdentifier>
|
||||
<!--
|
||||
<xsl:copy-of select="//datacite:alternateIdentifier[not($varCobjCategory = '0001' and ./@alternateIdentifierType = 'issn')][not(//oaf:datasourceprefix = 'od______4225' and ends-with(., 'pdf'))]" copy-namespaces="no"/>
|
||||
<xsl:copy-of select="//datacite:alternateIdentifier[not($varCobjCategory = '0001' and ./@alternateIdentifierType = 'ISSN')][not(//oaf:datasourceprefix = 'od______4225' and ends-with(., 'pdf'))]" copy-namespaces="no"/>
|
||||
<xsl:copy-of select="//datacite:identifier[not(//oaf:datasourceprefix = 'od______4225' and ends-with(., 'pdf'))]" copy-namespaces="no"/>
|
||||
-->
|
||||
</xsl:for-each>
|
||||
|
@ -283,7 +283,7 @@
|
|||
</datacite:alternateIdentifiers>
|
||||
|
||||
<!--
|
||||
[$varCobjCategory = '0001' and ./@alternateIdentifierType = 'issn'][1]">
|
||||
[$varCobjCategory = '0001' and ./@alternateIdentifierType = 'ISSN'][1]">
|
||||
-->
|
||||
<datacite:relatedIdentifiers>
|
||||
<!--
|
||||
|
@ -300,7 +300,7 @@
|
|||
<xsl:copy-of select="//datacite:relatedIdentifier" copy-namespaces="no"/>
|
||||
|
||||
<xsl:for-each select="(//datacite:alternateIdentifier, //datacite:identifier)
|
||||
[$varCobjCategory = '0001' and ./@alternateIdentifierType = ('issn', 'EISSN')]">
|
||||
[$varCobjCategory = '0001' and ./@alternateIdentifierType = ('ISSN', 'EISSN')]">
|
||||
<datacite:relatedIdentifier>
|
||||
<xsl:attribute name="relatedIdentifierType" select="./@alternateIdentifierType"/>
|
||||
<xsl:attribute name="relationType" select="'isPartOf'"/>
|
||||
|
@ -770,13 +770,13 @@
|
|||
</oaf:collectedFrom>
|
||||
|
||||
<!-- oaf:journal -->
|
||||
<!-- issn is erroneously stuffed in alternateIdentifier, should be put into relatedIdentifier -->
|
||||
<!-- ISSN is erroneously stuffed in alternateIdentifier, should be put into relatedIdentifier -->
|
||||
<!-- check/ensure that oaf:journal is not prepared for a journal itself, perhaps limit to Rothamsted -->
|
||||
<!-- Huelva marks L, E ISSNs as ISSNs, with mark within field in spaces or after blanc -->
|
||||
<!-- Qeios declares many records as text, although many seem to be definitions which are also related to 'journal' volumes/issues -->
|
||||
<xsl:if test="($varCobjCategory = '0001' or contains(//dri:recordIdentifier, 'www.qeios.com')) and (//*[local-name() = 'alternateIdentifier']/@alternateIdentifierType[. = 'issn'] or //*[local-name() = 'relatedIdentifier'][lower-case(@relationType) = 'ispartof'][@relatedIdentifierType = 'issn'])">
|
||||
<xsl:if test="($varCobjCategory = '0001' or contains(//dri:recordIdentifier, 'www.qeios.com')) and (//*[local-name() = 'alternateIdentifier']/@alternateIdentifierType[. = 'ISSN'] or //*[local-name() = 'relatedIdentifier'][lower-case(@relationType) = 'ispartof'][@relatedIdentifierType = 'ISSN'])">
|
||||
<oaf:journal>
|
||||
<xsl:attribute name="issn" select="(//*[local-name() = 'alternateIdentifier'][./@alternateIdentifierType = 'issn'], //*[local-name() = 'relatedIdentifier'][lower-case(./@relationType) = 'ispartof'][./@relatedIdentifierType = 'issn'])[1]/concat(substring(., 1, 4), '-', substring(., string-length(.)-3, 4))"/>
|
||||
<xsl:attribute name="issn" select="(//*[local-name() = 'alternateIdentifier'][./@alternateIdentifierType = 'ISSN'], //*[local-name() = 'relatedIdentifier'][lower-case(./@relationType) = 'ispartof'][./@relatedIdentifierType = 'ISSN'])[1]/concat(substring(., 1, 4), '-', substring(., string-length(.)-3, 4))"/>
|
||||
<xsl:if test="//*[local-name() = 'citationVolume']">
|
||||
<xsl:attribute name="vol" select="//*[local-name() = 'citationVolume']"/>
|
||||
</xsl:if>
|
||||
|
@ -793,9 +793,9 @@
|
|||
</oaf:journal>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$varCobjCategory = '0001' and //*[local-name() = 'relatedIdentifier']/@relatedIdentifierType[. = ('issn', 'PISSN', 'EISSN', 'LISSN')]">
|
||||
<xsl:if test="$varCobjCategory = '0001' and //*[local-name() = 'relatedIdentifier']/@relatedIdentifierType[. = ('ISSN', 'PISSN', 'EISSN', 'LISSN')]">
|
||||
<oaf:journal>
|
||||
<xsl:for-each select="//*[local-name() = 'relatedIdentifier'][@relatedIdentifierType[. = ('issn', 'PISSN', 'EISSN', 'LISSN')]][@relationType/lower-case(.) = 'ispartof']">
|
||||
<xsl:for-each select="//*[local-name() = 'relatedIdentifier'][@relatedIdentifierType[. = ('ISSN', 'PISSN', 'EISSN', 'LISSN')]][@relationType/lower-case(.) = 'ispartof']">
|
||||
|
||||
<xsl:attribute name="{./@relatedIdentifierType}" select="./concat(substring(., 1, 4), '-', substring(., string-length(.)-3, 4))"/>
|
||||
<!-- -->
|
||||
|
@ -844,7 +844,7 @@
|
|||
<!--
|
||||
<xsl:template match="//*[local-name() = 'resource']/*[local-name()='alternateIdentifiers']">
|
||||
<xsl:copy copy-namespaces="no">
|
||||
<xsl:copy-of select="./*[not($varCobjCategory = '0001' and ./@alternateIdentifierType = 'issn')]" copy-namespaces="no"/>
|
||||
<xsl:copy-of select="./*[not($varCobjCategory = '0001' and ./@alternateIdentifierType = 'ISSN')]" copy-namespaces="no"/>
|
||||
|
||||
<xsl:if test="//*[local-name() = 'resource']/*[local-name()='identifier'][lower-case(@identifierType)='handle']">
|
||||
<datacite:alternateIdentifier>
|
||||
|
|
Loading…
Reference in New Issue