Revision 48139
Added by Alessia Bardi almost 7 years ago
jorunal2db.xsl | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<xsl:stylesheet version="1.0" |
3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
4 |
xmlns:dr="http://www.driver-repository.eu/namespace/dr" xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
5 |
xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
6 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
7 |
xmlns:clean="eu.dnetlib.msro.openaireplus.utils.CleaningXsltFunctions"> |
|
8 |
|
|
9 |
|
|
10 |
<xsl:param name="parentDatasourceId"/> |
|
11 |
<xsl:template match="/"> |
|
12 |
|
|
13 |
<ROWS> |
|
14 |
<xsl:variable name="issn" select="//column[./@name='ISSN']" /> |
|
15 |
<xsl:variable name="id" select="//column[./@name='ID']" /> |
|
16 |
|
|
17 |
<ROW table="pangaea_temp_journals"> |
|
18 |
<FIELD name="_dnet_resource_identifier_"> |
|
19 |
<xsl:value-of select="concat('journal',$id)" /> |
|
20 |
</FIELD> |
|
21 |
<FIELD name="id"> |
|
22 |
<xsl:value-of select="concat('journal',$id)" /> |
|
23 |
</FIELD> |
|
24 |
<FIELD name="issn"> |
|
25 |
<xsl:value-of select="$issn" /> |
|
26 |
</FIELD> |
|
27 |
<FIELD name="oa_source_id"> |
|
28 |
<xsl:value-of select="$parentDatasourceId" /> |
|
29 |
</FIELD> |
|
30 |
</ROW> |
|
31 |
</ROWS> |
|
32 |
</xsl:template> |
|
3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
> |
|
5 |
|
|
6 |
|
|
7 |
<xsl:param name="parentDatasourceId"/> |
|
8 |
<xsl:template match="/"> |
|
9 |
|
|
10 |
<ROWS> |
|
11 |
<xsl:variable name="issn" select="//column[./@name='ISSN']"/> |
|
12 |
<xsl:variable name="id" select="//column[./@name='ID']"/> |
|
13 |
|
|
14 |
<ROW table="pangaea_temp_journals"> |
|
15 |
<FIELD name="_dnet_resource_identifier_"> |
|
16 |
<xsl:value-of select="concat('journal',$id)"/> |
|
17 |
</FIELD> |
|
18 |
<FIELD name="id"> |
|
19 |
<xsl:value-of select="concat('journal',$id)"/> |
|
20 |
</FIELD> |
|
21 |
<FIELD name="issn"> |
|
22 |
<xsl:value-of select="$issn"/> |
|
23 |
</FIELD> |
|
24 |
<FIELD name="oa_source_id"> |
|
25 |
<xsl:value-of select="$parentDatasourceId"/> |
|
26 |
</FIELD> |
|
27 |
</ROW> |
|
28 |
</ROWS> |
|
29 |
</xsl:template> |
|
33 | 30 |
</xsl:stylesheet> |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40