Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="a0588a13-4085-46fd-9542-a97a91577cea_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
4
		<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
5
		<RESOURCE_KIND value="TransformationRuleDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2018-07-02T11:15:30+00:00"/>
8
	</HEADER>
9
	<BODY>
10
		<CONFIGURATION>
11
			<IMPORTED/>
12
			<SCRIPT>
13
				<TITLE>JOURNALTITLES 2 DB</TITLE>
14
				<CODE>
15
					<![CDATA[
16
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
17
                xmlns:stringUtils="org.apache.commons.lang.StringUtils"
18
                version="1.0">
19

    
20
	<xsl:param name="varDataSourceId"/>
21

    
22
	<xsl:template match="/">
23
	    <xsl:variable name="namespacePrefix"
24
             select="normalize-space(//oaf:datasourceprefix)" />
25
		<record>
26

    
27
			<xsl:copy-of select=".//*[local-name()='header']"/>
28
			<metadata>
29
				<xsl:variable name="rid" select="normalize-space(//column[./@name='ISSN'])"/>
30
				<xsl:variable name="datasourceId" select="concat($namespacePrefix, '::', $rid)"/>
31
				<xsl:variable name="ISSNNS" select="stringUtils:replace($rid,'-','')"/>
32

    
33
				<ROWS>
34
					<ROW table="dsm_datasources">
35
						<FIELD name="id">
36
							<xsl:value-of select="$datasourceId"/>
37
						</FIELD>
38
						<FIELD name="_dnet_resource_identifier_">
39
							<xsl:value-of select="$datasourceId"/>
40
						</FIELD>
41
						<FIELD name="officialname">
42
							<xsl:value-of select="normalize-space(//column[./@name='Title'])"/>
43
						</FIELD>
44
						<FIELD name="englishname">
45
							<xsl:value-of select="normalize-space(//column[./@name='Title'])"/>
46
						</FIELD>
47
						<FIELD name="od_contenttypes">
48
							<xsl:value-of select="string('Journal articles')"/>
49
						</FIELD>
50
						<FIELD name="languages">
51
							<xsl:value-of select="normalize-space(//column[./@name='Language'])"/>
52
						</FIELD>
53
						<FIELD name="issn">
54
							<xsl:value-of select="normalize-space(//column[./@name='ISSN'])"/>
55
						</FIELD>
56
						<FIELD name="eissn">
57
							<xsl:value-of select="normalize-space(//column[./@name='EISSN'])"/>
58
						</FIELD>
59
						<FIELD name="description">
60
							<xsl:value-of select="normalize-space(//column[./@name='Keyword'])"/>
61
						</FIELD>
62
						<FIELD name="websiteurl">
63
							<xsl:value-of select="normalize-space(//column[./@name='address'])"/>
64
						</FIELD>
65
						<FIELD name="namespaceprefix">
66
							<xsl:value-of select="concat('ojs_', $ISSNNS)"/>
67
						</FIELD>
68
						<FIELD name="typology">pubsrepository::journal</FIELD>
69
						<FIELD name="collectedfrom">
70
							<xsl:value-of select="$varDataSourceId"/>
71
						</FIELD>
72
						<FIELD name="provenanceaction">sysimport:crosswalk:entityregistry</FIELD>
73
					</ROW>
74
				</ROWS>
75
			</metadata>
76
		</record>
77
	</xsl:template>
78

    
79
</xsl:stylesheet>
80
		]]>
81
				</CODE>
82
			</SCRIPT>
83
		</CONFIGURATION>
84
		<STATUS/>
85
		<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
86
	</BODY>
87
</RESOURCE_PROFILE>
(4-4/4)