1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
3
|
xmlns:oaa="http://namespace.openaire.eu/oaa"
|
4
|
xmlns:fn="http://www.w3.org/2005/xpath-functions"
|
5
|
xmlns:dnet="eu.dnetlib.miscutils.functional.hash.Hashing"
|
6
|
xmlns:clean="eu.dnetlib.msro.openaireplus.utils.CleaningXsltFunctions"
|
7
|
version="1.0"
|
8
|
exclude-result-prefixes="xsl dnet oaa fn clean fn">
|
9
|
|
10
|
<xsl:param name="parentDatasourceId"/>
|
11
|
<xsl:param name="namespacePrefix"/>
|
12
|
|
13
|
<xsl:template match="/">
|
14
|
|
15
|
<record>
|
16
|
|
17
|
<xsl:copy-of select=".//*[local-name()='header']"/>
|
18
|
<metadata>
|
19
|
<ROWS>
|
20
|
<xsl:variable name="originalId" select="//*[local-name()='column' and ./@name='ISSN']"/>
|
21
|
|
22
|
|
23
|
<xsl:variable name="id" select="concat($namespacePrefix,'::', $originalId)"/>
|
24
|
|
25
|
<ROW table="doaj_temp_journal">
|
26
|
<FIELD name="_dnet_resource_identifier_">
|
27
|
<xsl:value-of select="$id"/>
|
28
|
</FIELD>
|
29
|
<FIELD name="id">
|
30
|
<xsl:value-of select="$id"/>
|
31
|
</FIELD>
|
32
|
<FIELD name="journalname">
|
33
|
<xsl:value-of select=".//*[local-name()='column' and ./@name='Title']"/>
|
34
|
</FIELD>
|
35
|
<FIELD name="issn">
|
36
|
<xsl:value-of select="//*[local-name()='column' and ./@name='ISSN']"/>
|
37
|
</FIELD>
|
38
|
<FIELD name="oa_source_id">
|
39
|
<xsl:value-of select="$parentDatasourceId"/>
|
40
|
</FIELD>
|
41
|
</ROW>
|
42
|
</ROWS>
|
43
|
</metadata>
|
44
|
</record>
|
45
|
|
46
|
</xsl:template>
|
47
|
</xsl:stylesheet>
|