1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
3
|
xmlns:stringUtils="org.apache.commons.lang.StringUtils"
|
4
|
version="1.0">
|
5
|
|
6
|
<xsl:param name="parentDatasourceId"/>
|
7
|
<xsl:param name="namespacePrefix"/>
|
8
|
|
9
|
<xsl:template match="/">
|
10
|
<record>
|
11
|
|
12
|
<xsl:copy-of select=".//*[local-name()='header']"/>
|
13
|
<metadata>
|
14
|
<xsl:variable name="rid" select="normalize-space(//column[./@name='ISSN'])"/>
|
15
|
<xsl:variable name="datasourceId" select="concat($namespacePrefix, '::', $rid)"/>
|
16
|
<xsl:variable name="ISSNNS" select="stringUtils:replace($rid,'-','')"/>
|
17
|
|
18
|
<ROWS>
|
19
|
<ROW table="dsm_datasources">
|
20
|
<FIELD name="id">
|
21
|
<xsl:value-of select="$datasourceId"/>
|
22
|
</FIELD>
|
23
|
<FIELD name="officialname">
|
24
|
<xsl:value-of select="normalize-space(//column[./@name='Title'])"/>
|
25
|
</FIELD>
|
26
|
<FIELD name="englishname">
|
27
|
<xsl:value-of select="normalize-space(//column[./@name='Title'])"/>
|
28
|
</FIELD>
|
29
|
<FIELD name="od_contenttypes">
|
30
|
<xsl:value-of select="string('Journal articles')"/>
|
31
|
</FIELD>
|
32
|
<FIELD name="languages">
|
33
|
<xsl:value-of select="normalize-space(//column[./@name='Language'])"/>
|
34
|
</FIELD>
|
35
|
<FIELD name="issn">
|
36
|
<xsl:value-of select="normalize-space(//column[./@name='ISSN'])"/>
|
37
|
</FIELD>
|
38
|
<FIELD name="eissn">
|
39
|
<xsl:value-of select="normalize-space(//column[./@name='EISSN'])"/>
|
40
|
</FIELD>
|
41
|
<FIELD name="description">
|
42
|
<xsl:value-of select="normalize-space(//column[./@name='Keyword'])"/>
|
43
|
</FIELD>
|
44
|
<FIELD name="websiteurl">
|
45
|
<xsl:value-of select="normalize-space(//column[./@name='address'])"/>
|
46
|
</FIELD>
|
47
|
<FIELD name="namespaceprefix">
|
48
|
<xsl:value-of select="concat('ojs_', $ISSNNS)"/>
|
49
|
</FIELD>
|
50
|
<FIELD name="typology">pubsrepository::journal</FIELD>
|
51
|
<FIELD name="collectedfrom">
|
52
|
<xsl:value-of select="$parentDatasourceId"/>
|
53
|
</FIELD>
|
54
|
<FIELD name="provenanceaction">sysimport:crosswalk:entityregistry</FIELD>
|
55
|
</ROW>
|
56
|
</ROWS>
|
57
|
</metadata>
|
58
|
</record>
|
59
|
</xsl:template>
|
60
|
|
61
|
</xsl:stylesheet>
|