Project

General

Profile

« Previous | Next » 

Revision 61532

doi url cleaning

View differences:

modules/dnet-isti/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/people2pmf.xml
99 99
	                        <xsl:if test="starts-with(., 'http') and not(contains(., 'doi.org/')) and not(contains(., '/www.cnr.it/')) and not(contains(., '/publications.cnr.it/'))">
100 100
	                            <url rights="{$rights}" hostedBy="{dnet:serverName(.)}"><xsl:value-of select="."/></url>
101 101
	                        </xsl:if>
102
	                        <xsl:if test="starts-with(., 'http') and contains(., 'doi.org')">
103
	                            <url rights="{$rights}" hostedBy="DOI Resolver"><xsl:value-of select="."/></url>
102
	                        <xsl:if test="starts-with(., 'http') and contains(., 'doi.org/')">
103
                                <xsl:variable name="doi" select="dnet:cleanDoi(substring-after(., 'doi.org/'))" />
104
								<url rights="{$rights}" hostedBy="DOI Resolver"><xsl:value-of select="concat('https://dx.doi.org/', $doi)"/></url>
104 105
	                        </xsl:if>
105 106
	                        <xsl:if test="starts-with(., 'info:doi:')">
106 107
	                            <xsl:variable name="doi" select="dnet:cleanDoi(substring-after(., 'info:doi:'))" />

Also available in: Unified diff