Revision 48139
Added by Alessia Bardi almost 7 years ago
opendoar_2_db.xsl | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
3 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oaa="http://namespace.openaire.eu/oaa" |
|
4 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
5 |
xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" version="1.0"> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" version="1.0"> |
|
6 | 4 |
|
7 | 5 |
<xsl:param name="parentDatasourceId"/> |
8 | 6 |
<xsl:param name="namespacePrefix"/> |
9 | 7 |
|
10 | 8 |
<xsl:template match="/"> |
11 |
<record xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
12 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
13 |
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
14 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> |
|
9 |
<record |
|
10 |
> |
|
15 | 11 |
|
16 | 12 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
17 | 13 |
<metadata> |
... | ... | |
216 | 212 |
<FIELD name="websiteurl"> |
217 | 213 |
<xsl:choose> |
218 | 214 |
<xsl:when test="starts-with(normalize-space(//oUrl), 'http')"> |
219 |
<xsl:value-of select="normalize-space(//oUrl)" />
|
|
215 |
<xsl:value-of select="normalize-space(//oUrl)"/> |
|
220 | 216 |
</xsl:when> |
221 | 217 |
<xsl:when test="string-length(normalize-space(//oUrl)) > 0"> |
222 |
<xsl:value-of select="concat('http://', normalize-space(//oUrl))" />
|
|
218 |
<xsl:value-of select="concat('http://', normalize-space(//oUrl))"/> |
|
223 | 219 |
</xsl:when> |
224 | 220 |
</xsl:choose> |
225 | 221 |
</FIELD> |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40