Project

General

Profile

« Previous | Next » 

Revision 41109

[maven-release-plugin] copy for tag dnet-openaireplus-workflows-5.0.11

View differences:

modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/dc_2_oaf.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
    <xsl:template match="/">
4
        <record xmlns="http://www.openarchives.org/OAI/2.0/"
5
            xmlns:dr="http://www.driver-repository.eu/namespace/dr"
6
            xmlns:dri="http://www.driver-repository.eu/namespace/dri"
7
            xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8
            xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">
9
            <xsl:copy-of select=".//*[local-name()='header']"/>
10
            <metadata>
11
                <xsl:for-each select=".//*[local-name()='metadata']/*/*">
12
                    <xsl:choose>
13
                        <xsl:when test="local-name()='type'">
14
                            <dr:CobjCategory>0001</dr:CobjCategory>
15
                        </xsl:when>
16
                        <xsl:when test="local-name()='identifier'">
17
                            <dr:CobjIdentifier><xsl:value-of select="normalize-space(.)"/></dr:CobjIdentifier>
18
                            <xsl:if test="starts-with(., 'doi')">
19
                                <oaf:identifier identifierType="doi"><xsl:value-of select="normalize-space(.)"/></oaf:identifier>    
20
                            </xsl:if>                            
21
                        </xsl:when>
22
                        <xsl:when test="local-name()='relation'">
23
                            <xsl:if test="contains(., 'grantAgreement/EC/FP7')">
24
                                <oaf:projectid><xsl:value-of select="concat('corda_______::', substring-after(normalize-space(.), 'FP7/'))"/></oaf:projectid>
25
                            </xsl:if>
26
                        </xsl:when>
27
                        <xsl:when test="local-name()='rights'">
28
                            <oaf:accessrights>
29
                             <xsl:choose>
30
                                 <xsl:when test="contains(., 'closed')">CLOSED</xsl:when>
31
                                 <xsl:when test="contains(., 'restricted')">RESTRICTED</xsl:when>
32
                                 <xsl:when test="contains(., 'embargo')">EMBARGO</xsl:when>
33
                                 <xsl:when test="contains(., 'open')">OPEN</xsl:when>
34
                                 <xsl:otherwise>UNKNOWN</xsl:otherwise>
35
                             </xsl:choose>
36
                           </oaf:accessrights>
37
                        </xsl:when>
38
                        <xsl:otherwise>
39
                            <xsl:copy-of select="."/>
40
                        </xsl:otherwise>
41
                    </xsl:choose>
42
                </xsl:for-each>
43
                <oaf:hostedBy name="DATASOURCE NAME" id="datasource id (database)"/>
44
                <oaf:collectedFrom name="DATASOURCE NAME" id="datasource id (database)"/>
45
                <oaf:collectedDatasourceid>datasource id taken from the database, es: opendoar____::2659</oaf:collectedDatasourceid>
46
            </metadata>
47
        </record>
48
    </xsl:template>
49
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl/DatasetfromPangaeaTransform.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
				xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr"
4
				xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:datetime="http://exslt.org/dates-and-times"
5
				xmlns:dri="http://www.driver-repository.eu/namespace/dri"
6
				xmlns:md="http://www.pangaea.de/MetaData"
7
				xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf"
8
				xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"
9
				xmlns:stringUtils="org.apache.commons.lang.StringUtils"
10
				version="1.0"
11
				exclude-result-prefixes="xsl dnet oaa fn stringUtils datetime">
12
	<xsl:param name="namespacePrefix"/>
13
	<xsl:param name="dataSourceId"/>
14
	<xsl:param name="parentDatasourceId"/>
15
	<xsl:param name="dataprovider_name"/>
16
	<xsl:param name="dataprovider_id"/>
17
	<xsl:template match="/">
18

  
19
		<xsl:variable name="identifier_datacite">
20
			<xsl:value-of select="oai:record/oai:header/dri:objIdentifier"/>
21
		</xsl:variable>
22

  
23
		<xsl:variable name="dataset_identifier">
24
			<xsl:value-of
25
					select="stringUtils:substringAfter(//md:citation/md:URI,'doi:')"/>
26
		</xsl:variable>
27
		<xsl:variable name="openaire_dataset_identifier">
28
			<xsl:value-of
29
					select="concat($namespacePrefix,'::', dnet:md5($dataset_identifier))"/>
30
		</xsl:variable>
31

  
32
		<xsl:variable name="parentURI">
33
			<xsl:value-of select="//md:citation/md:parentURI"/>
34
		</xsl:variable>
35

  
36
		<xsl:call-template name="CreateRecord">
37
			<xsl:with-param name="openaire_dataset_identifier" select="$openaire_dataset_identifier"/>
38
			<xsl:with-param name="dataset_identifier" select="$dataset_identifier"/>
39
			<xsl:with-param name="parent_uri" select="$parentURI"/>
40
		</xsl:call-template>
41

  
42

  
43
	</xsl:template>
44
	<xsl:template name="CreateRecord">
45
		<xsl:param name="openaire_dataset_identifier"/>
46
		<xsl:param name="dataset_identifier"/>
47
		<xsl:param name="parent_uri"/>
48
		<xsl:variable name="parentUri">
49
			<xsl:value-of select="//md:citation/md:parentURI"/>
50
		</xsl:variable>
51
		<oai:record>
52
			<oai:header>
53
				<xsl:choose>
54
					<xsl:when test="string-length($parentUri) = 0">
55
						<xsl:choose>
56
							<xsl:when test="//md:citation/md:supplementTo">
57
								<dri:objIdentifier>
58
									<xsl:value-of select="$openaire_dataset_identifier"/>
59
								</dri:objIdentifier>
60
							</xsl:when>
61
						</xsl:choose>
62
					</xsl:when>
63
					<xsl:otherwise>
64
						<dri:objIdentifier>
65
							<xsl:value-of select="$openaire_dataset_identifier"/>
66
						</dri:objIdentifier>
67
					</xsl:otherwise>
68
				</xsl:choose>
69
				<dri:recordIdentifier>
70
					<xsl:value-of select="$dataset_identifier"/>
71
				</dri:recordIdentifier>
72
				<dri:dateOfCollection>
73
					<xsl:value-of select="datetime:dateTime()"/>
74
				</dri:dateOfCollection>
75
				<dri:repositoryId>
76
					<xsl:value-of select="$dataprovider_id"/>
77
				</dri:repositoryId>
78
				<oaf:datasourceprefix>
79
					<xsl:value-of select="$namespacePrefix"/>
80
				</oaf:datasourceprefix>
81
			</oai:header>
82
			<oai:metadata>
83
				<resource
84
						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
85
						xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd"
86
						xmlns="http://datacite.org/schema/kernel-3">
87
					<identifier identifierType="DOI">
88
						<xsl:value-of
89
								select="$dataset_identifier"/>
90
					</identifier>
91
					<creators>
92
						<xsl:for-each select="//md:citation/md:author">
93
							<creator>
94
								<creatorName>
95
									<xsl:value-of select="concat(./md:firstName, ' ', ./md:lastName)"/>
96
								</creatorName>
97
								<nameIdentifier schemeURI="http://www.pangaea.de"
98
												nameIdentifierScheme="PANGAEA">
99
									<xsl:value-of select="./@id"/>
100
								</nameIdentifier>
101

  
102
							</creator>
103
						</xsl:for-each>
104
					</creators>
105
					<titles>
106
						<xsl:for-each select="//md:citation/md:title">
107
							<title xml:lang="en-us">
108
								<xsl:value-of select="."/>
109
							</title>
110
						</xsl:for-each>
111
					</titles>
112
					<publisher>PANGAEA</publisher>
113
					<publicationYear>
114
						<xsl:value-of select="//md:citation/md:year"/>
115
					</publicationYear>
116
					<resourceType resourceTypeGeneral="Dataset"/>
117
					<xsl:variable name="description">
118
						<xsl:value-of select="//md:citation/md:abstract"/>
119
					</xsl:variable>
120
					<xsl:if test="$description">
121
						<descriptions>
122
							<description descriptionType="Abstract">
123
								<xsl:value-of select="$description"/>
124
							</description>
125
						</descriptions>
126
					</xsl:if>
127
					<rights>info:eu-repo/semantics/openAccess</rights>
128
					<contributors>
129
						<contributor contributorType="Funder">
130
							<contributorName>European Commission</contributorName>
131
							<nameIdentifier nameIdentifierScheme="info">
132
								<xsl:value-of
133
										select="//oaf:projectid"/>
134
							</nameIdentifier>
135
						</contributor>
136
					</contributors>
137
				</resource>
138
				<xsl:variable name="journalName">
139
					<xsl:value-of select="//*[local-name() ='journal']/@name"/>
140
				</xsl:variable>
141
				<xsl:variable name="journalISSN">
142
					<xsl:value-of select="//*[local-name() ='journal']/@issn"/>
143
				</xsl:variable>
144
				<xsl:variable name="journalDSId">
145
					<xsl:value-of select="//*[local-name() ='journal']/@datasourceid"/>
146
				</xsl:variable>
147

  
148
				<xsl:choose>
149
					<xsl:when test="string-length($journalISSN) &gt; 0">
150
						<oaf:journal issn="{$journalISSN}" eissn="">
151
							<xsl:value-of select="$journalName"/>
152
						</oaf:journal>
153
						<oaf:hostedBy>
154
							<xsl:attribute name="id">
155
								<xsl:value-of select="$journalDSId"/>
156
							</xsl:attribute>
157
							<xsl:attribute name="name">
158
								<xsl:value-of select="$journalName"/>
159
							</xsl:attribute>
160
						</oaf:hostedBy>
161
					</xsl:when>
162
					<xsl:otherwise>
163
						<oaf:hostedBy
164
								id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18"
165
								name="Unknown Repository"/>
166
					</xsl:otherwise>
167
				</xsl:choose>
168
				<xsl:for-each select="//md:citation/md:supplementTo/@id">
169
					<xsl:variable name="publicationID">
170
						<xsl:value-of select="."/>
171
					</xsl:variable>
172
					<xsl:choose>
173
						<xsl:when test="string-length($publicationID) &gt; 0">
174
							<oaf:relatedPublication>
175
								<xsl:attribute name="id">
176
									<xsl:value-of
177
											select="concat($namespacePrefix,'::', dnet:md5($publicationID))"/>
178
								</xsl:attribute>
179
							</oaf:relatedPublication>
180
						</xsl:when>
181
					</xsl:choose>
182
				</xsl:for-each>
183

  
184
				<xsl:choose>
185
					<xsl:when test="string-length($parent_uri) &gt; 0">
186
						<xsl:variable name="dataset_relate_ID">
187
							<xsl:value-of select="stringUtils:substringAfter($parent_uri,'doi:')"/>
188
						</xsl:variable>
189
						<xsl:choose>
190
							<xsl:when test="string-length($dataset_relate_ID) &gt; 0">
191
								<oaf:relatedDataSet>
192
									<xsl:attribute name="id">
193
										<xsl:value-of
194
												select="concat($namespacePrefix,'::', dnet:md5($dataset_relate_ID))"/>
195
									</xsl:attribute>
196
								</oaf:relatedDataSet>
197
							</xsl:when>
198
						</xsl:choose>
199

  
200
					</xsl:when>
201
				</xsl:choose>
202

  
203
				<oaf:about>
204
					<oaf:datainfo>
205
						<oaf:inferred>false</oaf:inferred>
206
						<oaf:deletedbyinference>false</oaf:deletedbyinference>
207
						<oaf:trust>0.9</oaf:trust>
208
						<oaf:inferenceprovenance/>
209
						<oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive"
210
											  classname="sysimport:crosswalk:datasetarchive"
211
											  schemeid="dnet:provenanceActions"
212
											  schemename="dnet:provenanceActions"/>
213
					</oaf:datainfo>
214
				</oaf:about>
215
			</oai:metadata>
216
		</oai:record>
217
	</xsl:template>
218
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/xsl/DatasetfromPangaeaTransform.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
				xmlns:oai="http://www.openarchives.org/OAI/2.0/"
4
				xmlns:datetime="http://exslt.org/dates-and-times"
5
				xmlns:dri="http://www.driver-repository.eu/namespace/dri"
6
				xmlns:md="http://www.pangaea.de/MetaData"
7
				xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf"
8
				xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"
9
				xmlns:stringUtils="org.apache.commons.lang.StringUtils"
10
				version="1.0"
11
				exclude-result-prefixes="xsl dnet oaa fn stringUtils datetime">
12
	<xsl:param name="namespacePrefix"/>
13
	<xsl:param name="dataSourceId"/>
14
	<xsl:param name="parentDatasourceId"/>
15
	<xsl:param name="dataprovider_name"/>
16
	<xsl:param name="dataprovider_id"/>
17

  
18
	<xsl:template match="/">
19

  
20

  
21
		<xsl:variable name="identifier_datacite">
22
			<xsl:value-of select="oai:record/oai:header/dri:objIdentifier"/>
23
		</xsl:variable>
24

  
25
		<xsl:variable name="dataset_identifier">
26
			<xsl:value-of
27
					select="stringUtils:substringAfter(//md:citation/md:URI,'doi:')"/>
28
		</xsl:variable>
29
		<xsl:variable name="openaire_dataset_identifier">
30
			<xsl:value-of
31
					select="concat($namespacePrefix,'::', dnet:md5($dataset_identifier))"/>
32
		</xsl:variable>
33

  
34
		<xsl:variable name="parentURI">
35
			<xsl:value-of select="//md:citation/md:parentURI"/>
36
		</xsl:variable>
37

  
38
		<xsl:call-template name="CreateRecord">
39
			<xsl:with-param name="openaire_dataset_identifier" select="$openaire_dataset_identifier"/>
40
			<xsl:with-param name="dataset_identifier" select="$dataset_identifier"/>
41
			<xsl:with-param name="parent_uri" select="$parentURI"/>
42
		</xsl:call-template>
43

  
44

  
45
	</xsl:template>
46
	<xsl:template name="CreateRecord">
47
		<xsl:param name="openaire_dataset_identifier"/>
48
		<xsl:param name="dataset_identifier"/>
49
		<xsl:param name="parent_uri"/>
50
		<oai:record>
51
			<oai:header>
52
				<dri:objIdentifier>
53
					<xsl:value-of select="$openaire_dataset_identifier"/>
54
				</dri:objIdentifier>
55
				<dri:recordIdentifier>
56
					<xsl:value-of select="$dataset_identifier"/>
57
				</dri:recordIdentifier>
58
				<dri:dateOfCollection>
59
					<xsl:value-of select="datetime:dateTime()"/>
60
				</dri:dateOfCollection>
61
				<dri:repositoryId>
62
					<xsl:value-of select="$dataprovider_id"/>
63
				</dri:repositoryId>
64
				<oaf:datasourceprefix>
65
					<xsl:value-of select="$namespacePrefix"/>
66
				</oaf:datasourceprefix>
67
			</oai:header>
68
			<oai:metadata>
69
				<resource
70
						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
71
						xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd"
72
						xmlns="http://datacite.org/schema/kernel-3">
73
					<identifier identifierType="DOI">
74
						<xsl:value-of
75
								select="$dataset_identifier"/>
76
					</identifier>
77
					<creators>
78
						<xsl:for-each select="//md:citation/md:author">
79
							<creator>
80
								<creatorName>
81
									<xsl:value-of select="concat(./md:firstName, ' ', ./md:lastName)"/>
82
								</creatorName>
83
								<nameIdentifier schemeURI="http://www.pangaea.de"
84
												nameIdentifierScheme="PANGAEA">
85
									<xsl:value-of select="./@id"/>
86
								</nameIdentifier>
87

  
88
							</creator>
89
						</xsl:for-each>
90
					</creators>
91
					<titles>
92
						<xsl:for-each select="//md:citation/md:title">
93
							<title xml:lang="en-us">
94
								<xsl:value-of select="."/>
95
							</title>
96
						</xsl:for-each>
97
					</titles>
98
					<publisher>PANGAEA</publisher>
99
					<publicationYear>
100
						<xsl:value-of select="//md:citation/md:year"/>
101
					</publicationYear>
102
					<resourceType resourceTypeGeneral="Dataset"/>
103
					<xsl:variable name="description">
104
						<xsl:value-of select="//md:citation/md:abstract"/>
105
					</xsl:variable>
106
					<xsl:if test="$description">
107
						<descriptions>
108
							<description descriptionType="Abstract">
109
								<xsl:value-of select="$description"/>
110
							</description>
111
						</descriptions>
112
					</xsl:if>
113
					<rights>info:eu-repo/semantics/openAccess</rights>
114
					<contributors>
115
						<contributor contributorType="Funder">
116
							<contributorName>European Commission</contributorName>
117
							<nameIdentifier nameIdentifierScheme="info">
118
								<xsl:value-of
119
										select="//oaf:projectid"/>
120
							</nameIdentifier>
121
						</contributor>
122
					</contributors>
123
				</resource>
124
				<xsl:variable name="journalName">
125
					<xsl:value-of select="//*[local-name() ='journal']/@name"/>
126
				</xsl:variable>
127
				<xsl:variable name="journalISSN">
128
					<xsl:value-of select="//*[local-name() ='journal']/@issn"/>
129
				</xsl:variable>
130
				<xsl:variable name="journalDSId">
131
					<xsl:value-of select="//*[local-name() ='journal']/@datasourceid"/>
132
				</xsl:variable>
133

  
134
				<xsl:choose>
135
					<xsl:when test="string-length($journalISSN) &gt; 0">
136
						<oaf:journal issn="{$journalISSN}" eissn="">
137
							<xsl:value-of select="$journalName"/>
138
						</oaf:journal>
139
						<oaf:hostedBy>
140
							<xsl:attribute name="id">
141
								<xsl:value-of select="$journalDSId"/>
142
							</xsl:attribute>
143
							<xsl:attribute name="name">
144
								<xsl:value-of select="$journalName"/>
145
							</xsl:attribute>
146
						</oaf:hostedBy>
147
					</xsl:when>
148
					<xsl:otherwise>
149
						<oaf:hostedBy
150
								id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18"
151
								name="Unknown Repository"/>
152
					</xsl:otherwise>
153
				</xsl:choose>
154
				<xsl:for-each select="//md:citation/md:supplementTo/@id">
155
					<xsl:variable name="publicationID">
156
						<xsl:value-of select="."/>
157
					</xsl:variable>
158
					<xsl:choose>
159
						<xsl:when test="string-length($publicationID) &gt; 0">
160
							<oaf:relatedPublication>
161
								<xsl:attribute name="id">
162
									<xsl:value-of
163
											select="concat($namespacePrefix,'::', dnet:md5($publicationID))"/>
164
								</xsl:attribute>
165
							</oaf:relatedPublication>
166
						</xsl:when>
167
					</xsl:choose>
168
				</xsl:for-each>
169

  
170
				<xsl:choose>
171
					<xsl:when test="string-length($parent_uri) &gt; 0">
172
						<xsl:variable name="dataset_relate_ID">
173
							<xsl:value-of select="stringUtils:substringAfter($parent_uri,'doi:')"/>
174
						</xsl:variable>
175
						<xsl:choose>
176
							<xsl:when test="string-length($dataset_relate_ID) &gt; 0">
177
								<oaf:relatedDataSet>
178
									<xsl:attribute name="id">
179
										<xsl:value-of
180
												select="concat($namespacePrefix,'::', dnet:md5($dataset_relate_ID))"/>
181
									</xsl:attribute>
182
								</oaf:relatedDataSet>
183
							</xsl:when>
184
						</xsl:choose>
185

  
186
					</xsl:when>
187
				</xsl:choose>
188

  
189
				<oaf:about>
190
					<oaf:datainfo>
191
						<oaf:inferred>false</oaf:inferred>
192
						<oaf:deletedbyinference>false</oaf:deletedbyinference>
193
						<oaf:trust>0.9</oaf:trust>
194
						<oaf:inferenceprovenance/>
195
						<oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive"
196
											  classname="sysimport:crosswalk:datasetarchive"
197
											  schemeid="dnet:provenanceActions"
198
											  schemename="dnet:provenanceActions"/>
199
					</oaf:datainfo>
200
				</oaf:about>
201
			</oai:metadata>
202
		</oai:record>
203
	</xsl:template>
204
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql/find_journal_intersection.sql
1
select 
2
	h.entry as id,
3
	h.datasourceid as datasource,
4
	d.officialname as name,
5
	p.value as issn
6
	
7
 from hostedby_map h, datasources d, hostedby_props p  where 
8
 h.oa_source_id= 're3data_____::r3d100010134' AND
9
 h.datasourceid = d.id and p._dnet_resource_identifier_ = h._dnet_resource_identifier_ and p.key='issn'
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/xsl/DatasetsFromPangaeaIngestion.xsl
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/"
3
				xmlns:oai="http://www.openarchives.org/OAI/2.0/"
4
				xmlns:datetime="http://exslt.org/dates-and-times"
5
				xmlns:dri="http://www.driver-repository.eu/namespace/dri"
6
				xmlns:oaa="http://namespace.openaire.eu/oaa"
7
				xmlns:oaf="http://namespace.openaire.eu/oaf"
8
				xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"
9
				xmlns:stringUtils="org.apache.commons.lang.StringUtils"
10
				version="1.0"
11
				exclude-result-prefixes="xsl dc dnet oaa fn stringUtils datetime">
12

  
13
	<xsl:param name="namespacePrefix"/>
14
	<xsl:param name="dataSourceId"/>
15
	<xsl:param name="dataprovider_id"/>
16

  
17
	<xsl:template match="/">
18
		<xsl:variable name="identifier">
19
			<xsl:value-of
20
					select="stringUtils:substringAfter(/*[local-name()='datasetsRecord']/*[local-name()='metadata']/*[local-name()='MetaData']/*[local-name()='citation']/*[local-name()='URI'],'doi:')"
21
			/>
22
		</xsl:variable>
23
		<oai:record>
24
			<oai:header>
25
				<dri:objIdentifier>
26
					<xsl:value-of select="concat($namespacePrefix,'::', dnet:md5($identifier))"/>
27
				</dri:objIdentifier>
28
				<dri:recordIdentifier>
29
					<xsl:value-of select="$identifier"/>
30
				</dri:recordIdentifier>
31
				<dri:dateOfCollection>
32
					<xsl:value-of select="datetime:dateTime()"/>
33
				</dri:dateOfCollection>
34
				<dri:repositoryId>
35
					<xsl:value-of select="$dataSourceId"/>
36
				</dri:repositoryId>
37
				<oaf:datasourceprefix>
38
					<xsl:value-of select="$namespacePrefix"/>
39
				</oaf:datasourceprefix>
40
				<dri:repositoryId>
41
					<xsl:value-of select="$dataprovider_id"/>
42
				</dri:repositoryId>
43
			</oai:header>
44
			<oai:metadata>
45
				<xsl:copy-of select="."/>
46
			</oai:metadata>
47
		</oai:record>
48

  
49
	</xsl:template>
50
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/transformDatasets.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="fetchOriginals"/>
10
		<ARC to="obtainParams" />
11
	</ARCS>
12
</NODE>
13

  
14
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
15
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
18
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_dataset_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="transformDatasets"/>
23
	</ARCS>
24
</NODE>
25

  
26
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
27
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
28
	<PARAMETERS>
29
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="transformDatasets"/>
33
	</ARCS>
34
</NODE>
35

  
36
<NODE name="transformDatasets" type="ApplyXslt" isJoin="true">
37
	<DESCRIPTION>Transform original records to Datasets</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl','xsl')"></PARAM>
40
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_dataset_epr</PARAM>
41
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">datasets_epr</PARAM>		 
42
	</PARAMETERS>
43
	<ARCS>
44
		<ARC to="cleanDataset"/>
45
	</ARCS>
46
</NODE>
47

  
48
<NODE name="cleanDataset" type="Transform">
49
	<DESCRIPTION>Clean dataset records</DESCRIPTION>
50
	<PARAMETERS>
51
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
52
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">datasets_epr</PARAM>
53
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_datasets_epr</PARAM>		 
54
	</PARAMETERS>
55
	<ARCS>
56
		<ARC to="storeDatasetsRecords"/>
57
	</ARCS>
58
</NODE>
59

  
60
<NODE name="storeDatasetsRecords" type="StoreMDStoreRecords">
61
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
62
	<PARAMETERS>
63
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranODF_id")$</PARAM>
64
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
65
		<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_datasets_epr</PARAM>
66
	</PARAMETERS>
67
	<ARCS>
68
		<ARC to="UPDATE_INFO"/>
69
	</ARCS>
70
</NODE>
71

  
72
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
73
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
74
	<PARAMETERS>
75
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tranODF_id")$</PARAM>
76
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
77
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
78
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
79
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
80
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
81
	</PARAMETERS>
82
	<ARCS>
83
		<ARC to="success"/>
84
	</ARCS>
85
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/transformDatasets.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="fetchOriginals"/>
10
		<ARC to="obtainParams" />
11
	</ARCS>
12
</NODE>
13

  
14
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
15
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
18
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_dataset_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="transformDatasets"/>
23
	</ARCS>
24
</NODE>
25

  
26
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
27
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
28
	<PARAMETERS>
29
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="transformDatasets"/>
33
	</ARCS>
34
</NODE>
35

  
36
<NODE name="transformDatasets" type="ApplyXslt" isJoin="true">
37
	<DESCRIPTION>Transform original records to Datasets</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/xsl','xsl')"></PARAM>
40
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_dataset_epr</PARAM>
41
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">datasets_epr</PARAM>		 
42
	</PARAMETERS>
43
	<ARCS>
44
		<ARC to="cleanDataset"/>
45
	</ARCS>
46
</NODE>
47

  
48
<NODE name="cleanDataset" type="Transform">
49
	<DESCRIPTION>Clean dataset records</DESCRIPTION>
50
	<PARAMETERS>
51
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
52
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">datasets_epr</PARAM>
53
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_datasets_epr</PARAM>		 
54
	</PARAMETERS>
55
	<ARCS>
56
		<ARC to="storeDatasetsRecords"/>
57
	</ARCS>
58
</NODE>
59

  
60
<NODE name="storeDatasetsRecords" type="StoreMDStoreRecords">
61
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
62
	<PARAMETERS>
63
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranODF_id")$</PARAM>
64
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
65
		<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_datasets_epr</PARAM>
66
	</PARAMETERS>
67
	<ARCS>
68
		<ARC to="UPDATE_INFO"/>
69
	</ARCS>
70
</NODE>
71

  
72
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
73
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
74
	<PARAMETERS>
75
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tranODF_id")$</PARAM>
76
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
77
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
78
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
79
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
80
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
81
	</PARAMETERS>
82
	<ARCS>
83
		<ARC to="success"/>
84
	</ARCS>
85
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/transformPublications.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="fetchOriginalsForPublication"/>
10
		<ARC to="obtainParams" />
11
	</ARCS>
12
</NODE>
13
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="fetchOriginalsForPublication"/>
20
	</ARCS>
21
</NODE>
22

  
23

  
24
<NODE name="fetchOriginalsForPublication" type="FetchMDStoreRecords" isJoin="true">
25
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
26
	<PARAMETERS>
27
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
28
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
29
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_publication_epr</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="transformPublication"/>
33
	</ARCS>
34
</NODE>
35

  
36
<NODE name="transformPublication" type="ApplyXslt">
37
	<DESCRIPTION>Transform original records to Publication</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl','xsl')"></PARAM>
40
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_publication_epr</PARAM>
41
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_publication_epr</PARAM>		 
42
	</PARAMETERS>
43
	<ARCS>
44
		<ARC to="splitRecords"/>
45
	</ARCS>
46
</NODE>
47

  
48
<NODE name="splitRecords" type="SplitDatasetRecord">
49
	<DESCRIPTION>Split Records into datasets and publication</DESCRIPTION>
50
	<PARAMETERS>
51
		<PARAM required="true" type="string" name="inputEprParm" managedBy="system">packed_publication_epr</PARAM>
52
		<PARAM required="true" type="string" name="outputEprParm" managedBy="system">publication_epr</PARAM>
53
	</PARAMETERS>
54
	<ARCS>		
55
		<ARC to="findHostedBy"/>
56
	</ARCS>
57
</NODE>
58

  
59
<NODE name="findHostedBy" type="FindHostedBy">
60
	<DESCRIPTION>Patch oaf:hostedBy fields</DESCRIPTION>
61
	<PARAMETERS>
62
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">publication_epr</PARAM>
63
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">patched_epr</PARAM>
64
		<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>	
65
	</PARAMETERS>
66
	<ARCS>
67
		<ARC to="storePublicationRecords"/>
68
	</ARCS>
69
</NODE>
70

  
71
<NODE name="storePublicationRecords" type="StoreMDStoreRecords">
72
	<DESCRIPTION>Store records</DESCRIPTION>
73
	<PARAMETERS>
74
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM>
75
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
76
		<PARAM required="true" type="string" name="eprParam" managedBy="system">patched_epr</PARAM>
77
	</PARAMETERS>
78
	<ARCS>
79
		<ARC to="validateHostedByRepos"/>
80
	</ARCS>
81
</NODE>
82

  
83
<NODE name="validateHostedByRepos" type="UpsertHostedByApis">
84
	<DESCRIPTION>Validate hostedBy Repos</DESCRIPTION>
85
	<PARAMETERS>
86
		<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>
87
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tranOAF_id")$</PARAM>
88
	</PARAMETERS>
89
	<ARCS>
90
		<ARC to="success"/>
91
	</ARCS>
92
</NODE>
93

  
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/collection.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="obtainParams"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="COLLECT_REFRESH"/>
20
	</ARCS>
21
</NODE> 
22

  
23
<NODE name="COLLECT_REFRESH" type="CollectRecords">
24
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
27
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
28
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
29
	</PARAMETERS>
30
	<ARCS>
31
		<ARC to="MD_BUILDER_REFRESH"/>
32
	</ARCS>
33
</NODE>
34

  
35
<NODE name="MD_BUILDER_REFRESH" type="ApplyXslt">
36
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
37
	<PARAMETERS>
38
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/xsl','xsl')"></PARAM>
39
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
40
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
41
	</PARAMETERS>
42
	<ARCS>
43
		<ARC to="STORE_REFRESH"/>
44
	</ARCS>
45
</NODE>
46

  
47
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
48
	<DESCRIPTION>Store mdstore records</DESCRIPTION>
49
	<PARAMETERS>
50
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
51
		<PARAM required="true" type="string" name="storingType" managedBy="system">INCREMENTAL</PARAM>
52
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
53
	</PARAMETERS>
54
	<ARCS>
55
		<ARC to="UPDATE_INFO"/>
56
	</ARCS>
57
</NODE>
58

  
59
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
60
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
61
	<PARAMETERS>
62
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
63
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
64
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
65
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
66
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
67
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
68
	</PARAMETERS>
69
	<ARCS>
70
		<ARC to="success"/>
71
	</ARCS>
72
</NODE>
73

  
74

  
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl/DatasetsFromPangaeaIngestion.xsl
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/"
3
				xmlns:dr="http://www.driver-repository.eu/namespace/dr"
4
				xmlns:oai="http://www.openarchives.org/OAI/2.0/"
5
				xmlns:datetime="http://exslt.org/dates-and-times"
6
				xmlns:dri="http://www.driver-repository.eu/namespace/dri"
7
				xmlns:md="http://www.pangaea.de/MetaData"
8
				xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf"
9
				xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"
10
				xmlns:stringUtils="org.apache.commons.lang.StringUtils"
11
				version="1.0"
12
				exclude-result-prefixes="xsl dc dnet oaa fn stringUtils datetime">
13

  
14
	<xsl:param name="namespacePrefix"/>
15
	<xsl:param name="dataSourceId"/>
16
	<xsl:param name="dataprovider_id"/>
17

  
18
	<xsl:template match="/">
19
		<xsl:variable name="identifier">
20
			<xsl:value-of
21
					select="stringUtils:substringAfter(/*[local-name()='datasetsRecord']/*[local-name()='metadata']/*[local-name()='MetaData']/*[local-name()='citation']/*[local-name()='URI'],'doi:')"
22
			/>
23
		</xsl:variable>
24
		<oai:record>
25
			<oai:header>
26
				<dri:objIdentifier>
27
					<xsl:value-of select="concat($namespacePrefix,'::', dnet:md5($identifier))"/>
28
				</dri:objIdentifier>
29
				<dri:recordIdentifier>
30
					<xsl:value-of select="$identifier"/>
31
				</dri:recordIdentifier>
32
				<dri:dateOfCollection>
33
					<xsl:value-of select="datetime:dateTime()"/>
34
				</dri:dateOfCollection>
35
				<dri:repositoryId>
36
					<xsl:value-of select="$dataSourceId"/>
37
				</dri:repositoryId>
38
				<oaf:datasourceprefix>
39
					<xsl:value-of select="$namespacePrefix"/>
40
				</oaf:datasourceprefix>
41
				<dri:repositoryId>
42
					<xsl:value-of select="$dataprovider_id"/>
43
				</dri:repositoryId>
44
			</oai:header>
45
			<oai:metadata>
46
				<xsl:copy-of select="."/>
47
			</oai:metadata>
48
		</oai:record>
49

  
50
	</xsl:template>
51
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql/pangaea_journal_findmatches.sql
1
INSERT INTO hostedby_map(_dnet_resource_identifier_, oa_source_id, entry, datasourceid)
2
SELECT   p.issn||'__'||p.id ||'@@'||p.oa_source_id, p.oa_source_id, p.issn||'__'||p.id , d.id 
3
  FROM  datasources d, pangaea_temp_journals p  where 
4
	d.collectedfrom ='driver______::1790119e-d281-4b7a-aedf-866d1d853a07' and d.issn is not null and d.id like 'doajarticles::%' and p.issn = d.issn
5
	AND 
6
	(p.oa_source_id, p.issn||'__'||p.id) NOT IN
7
		(SELECT oa_source_id, entry from hostedby_map)
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/repoBye.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="DeleteMetaWorkflow"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf">
14
	<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="DeleteMDStoreDatacite"/>
20
	</ARCS>
21
</NODE>
22

  
23
<NODE name="DeleteMDStoreDatacite" type="DeleteMDStore">
24
	<DESCRIPTION>Delete the oai_datacite mdstore</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="DeleteMDStoreODF"/>
30
	</ARCS>
31
</NODE>
32

  
33
<NODE name="DeleteMDStoreODF" type="DeleteMDStore">
34
	<DESCRIPTION>Delete the IMEF mdstore</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tranODF_id")$</PARAM>
37
	</PARAMETERS>
38
	<ARCS>
39
		<ARC to="DeleteMDStoreOAF"/>
40
	</ARCS>
41
</NODE>
42

  
43
<NODE name="DeleteMDStoreOAF" type="DeleteMDStore">
44
	<DESCRIPTION>Delete the IMEF mdstore</DESCRIPTION>
45
	<PARAMETERS>
46
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM>
47
	</PARAMETERS>
48
	<ARCS>
49
		<ARC to="RemoveApiExtraFields"/>
50
	</ARCS>
51
</NODE>
52

  
53
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields">
54
	<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION>
55
	<PARAMETERS>
56
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
57
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
58
		<PARAM required="true" type="string" name="fields" managedBy="system">last_collection_total, last_collection_date, last_collection_mdId, last_aggregation_total, last_aggregation_date, last_aggregation_mdId</PARAM>
59
	</PARAMETERS>
60
	<ARCS>
61
		<ARC to="success"/>
62
	</ARCS>
63
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/pom.xml
1
<?xml version="1.0" ?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
    <parent>
4
        <groupId>eu.dnetlib</groupId>
5
        <artifactId>dnet-parent</artifactId>
6
        <version>1.0.0</version>
7
        <relativePath />
8
    </parent>
9
    <modelVersion>4.0.0</modelVersion>
10
    <groupId>eu.dnetlib</groupId>
11
    <artifactId>dnet-openaireplus-workflows</artifactId>
12
    <packaging>jar</packaging>
13
    <version>5.0.11</version>
14
    <scm>
15
        <developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11</developerConnection>
16
    </scm>
17
    <repositories>
18
        <repository>
19
            <id>dfm-releases</id>
20
            <url>http://maven.research-infrastructures.eu/nexus/content/repositories/dfm-releases</url>
21
        </repository>
22
    </repositories>
23
    <dependencies>
24
        <dependency>
25
            <groupId>eu.dnetlib</groupId>
26
            <artifactId>cnr-data-flow-monitoring-core</artifactId>
27
            <version>[0.0.0,1.0.0)</version>
28
            <exclusions>
29
                <exclusion>
30
                    <artifactId>wstx-asl</artifactId>
31
                    <groupId>org.codehaus.woodstox</groupId>
32
                </exclusion>
33
            </exclusions>
34
        </dependency>
35
        <dependency>
36
            <groupId>eu.dnetlib</groupId>
37
            <artifactId>cnr-enabling-database-api</artifactId>
38
            <version>[1.0.0,2.0.0)</version>
39
        </dependency>
40
        <dependency>
41
            <groupId>eu.dnetlib</groupId>
42
            <artifactId>dnet-msro-service</artifactId>
43
            <version>[3.0.0,4.0.0)</version>
44
        </dependency>
45
        <dependency>
46
            <groupId>eu.dnetlib</groupId>
47
            <artifactId>cnr-resultset-service</artifactId>
48
            <version>[2.0.0,3.0.0)</version>
49
        </dependency>
50
        <dependency>
51
            <groupId>eu.dnetlib</groupId>
52
            <artifactId>dnet-openaireplus-datasource-manager-service</artifactId>
53
            <version>[5.0.0,6.0.0)</version>
54
        </dependency>
55
        <dependency>
56
            <groupId>eu.dnetlib</groupId>
57
            <artifactId>dnet-openaireplus-mapping-utils</artifactId>
58
            <version>[3.0.0,4.0.0)</version>
59
        </dependency>
60
        <dependency>
61
            <groupId>eu.dnetlib</groupId>
62
            <artifactId>dnet-hadoop-service-rmi</artifactId>
63
            <version>[1.0.0,2.0.0)</version>
64
        </dependency>
65
        <dependency>
66
            <groupId>eu.dnetlib</groupId>
67
            <artifactId>dnet-index-solr-common</artifactId>
68
            <version>[1.0.0,2.0.0)</version>
69
        </dependency>
70
        <dependency>
71
            <groupId>eu.dnetlib</groupId>
72
            <artifactId>dnet-collector-plugins</artifactId>
73
            <version>[1.0.0,2.0.0)</version>
74
        </dependency>
75

  
76

  
77
        <dependency>
78
            <groupId>eu.dnetlib</groupId>
79
            <artifactId>dnet-actionmanager-api</artifactId>
80
            <version>[3.0.0,4.0.0)</version>
81
        </dependency>
82

  
83
        <dependency>
84
            <groupId>eu.dnetlib</groupId>
85
            <artifactId>dnet-oai-common-workflows</artifactId>
86
            <version>[3.0.0,4.0.0)</version>
87
        </dependency>
88

  
89
        <dependency>
90
            <groupId>eu.dnetlib</groupId>
91
            <artifactId>dnet-index-solr-client</artifactId>
92
            <version>[2.0.0,3.0.0)</version>
93
        </dependency>
94

  
95
        <dependency>
96
            <groupId>eu.dnetlib</groupId>
97
            <artifactId>dnet-validator-workflows</artifactId>
98
            <version>[1.0.0,2.0.0)</version>
99
        </dependency>
100

  
101
        <!-- modular ui and servlet api are here because of the stats controller -->
102
        <dependency>
103
            <groupId>eu.dnetlib</groupId>
104
            <artifactId>dnet-modular-vocabularies-ui</artifactId>
105
            <version>[2.0.0,3.0.0)</version>
106
        </dependency>
107

  
108
        <dependency>
109
            <groupId>org.apache.velocity</groupId>
110
            <artifactId>velocity</artifactId>
111
            <version>1.7</version>
112
        </dependency>
113
        <dependency>
114
            <groupId>org.apache.velocity</groupId>
115
            <artifactId>velocity-tools</artifactId>
116
            <version>2.0</version>
117
        </dependency>
118
        <dependency>
119
            <groupId>javax.servlet</groupId>
120
            <artifactId>javax.servlet-api</artifactId>
121
            <version>${javax.servlet.version}</version>
122
            <scope>provided</scope>
123
        </dependency>
124
        <dependency>
125
            <groupId>junit</groupId>
126
            <artifactId>junit</artifactId>
127
            <version>${junit.version}</version>
128
            <scope>test</scope>
129
        </dependency>
130
 		<dependency>
131
			<groupId>eu.dnetlib</groupId>
132
			<artifactId>dnet-openaireplus-profiles</artifactId>
133
			<version>[1.0.0,2.0.0)</version>
134
			<scope>test</scope>
135
		</dependency>
136
	</dependencies>
137

  
138
</project>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/DatasetfromPangaeaTransform.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
				xmlns:oai="http://www.openarchives.org/OAI/2.0/"
4
				xmlns:datetime="http://exslt.org/dates-and-times"
5
				xmlns:dri="http://www.driver-repository.eu/namespace/dri"
6
				xmlns:md="http://www.pangaea.de/MetaData"
7
				xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf"
8
				xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"
9
				xmlns:stringUtils="org.apache.commons.lang.StringUtils"
10
				version="1.0"
11
				exclude-result-prefixes="xsl dnet oaa fn stringUtils datetime">
12
	<xsl:param name="namespacePrefix"/>
13
	<xsl:param name="dataSourceId"/>
14
	<xsl:param name="parentDatasourceId"/>
15
	<xsl:param name="dataprovider_name"/>
16
	<xsl:param name="dataprovider_id"/>
17

  
18
	<xsl:template match="/">
19

  
20

  
21
		<xsl:variable name="identifier_datacite">
22
			<xsl:value-of select="oai:record/oai:header/dri:objIdentifier"/>
23
		</xsl:variable>
24

  
25
		<xsl:variable name="dataset_identifier">
26
			<xsl:value-of
27
					select="stringUtils:substringAfter(//md:citation/md:URI,'doi:')"/>
28
		</xsl:variable>
29
		<xsl:variable name="openaire_dataset_identifier">
30
			<xsl:value-of
31
					select="concat($namespacePrefix,'::', dnet:md5($dataset_identifier))"/>
32
		</xsl:variable>
33

  
34
		<xsl:variable name="parentURI">
35
			<xsl:value-of select="//md:citation/md:parentURI"/>
36
		</xsl:variable>
37

  
38
		<xsl:call-template name="CreateRecord">
39
			<xsl:with-param name="openaire_dataset_identifier" select="$openaire_dataset_identifier"/>
40
			<xsl:with-param name="dataset_identifier" select="$dataset_identifier"/>
41
			<xsl:with-param name="parent_uri" select="$parentURI"/>
42
		</xsl:call-template>
43
	</xsl:template>
44

  
45

  
46
	<xsl:template name="CreateRecord">
47
		<xsl:param name="openaire_dataset_identifier"/>
48
		<xsl:param name="dataset_identifier"/>
49
		<xsl:param name="parent_uri"/>
50
		<oai:record>
51
			<oai:header>
52
				<dri:objIdentifier>
53
					<xsl:value-of select="$openaire_dataset_identifier"/>
54
				</dri:objIdentifier>
55
				<dri:recordIdentifier>
56
					<xsl:value-of select="$dataset_identifier"/>
57
				</dri:recordIdentifier>
58
				<dri:dateOfCollection>
59
					<xsl:value-of select="datetime:dateTime()"/>
60
				</dri:dateOfCollection>
61
				<dri:repositoryId>
62
					<xsl:value-of select="$dataprovider_id"/>
63
				</dri:repositoryId>
64
				<oaf:datasourceprefix>
65
					<xsl:value-of select="$namespacePrefix"/>
66
				</oaf:datasourceprefix>
67
			</oai:header>
68
			<oai:metadata>
69
				<resource
70
						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
71
						xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd"
72
						xmlns="http://datacite.org/schema/kernel-3">
73
					<identifier identifierType="DOI">
74
						<xsl:value-of
75
								select="$dataset_identifier"/>
76
					</identifier>
77
					<creators>
78
						<xsl:for-each select="//md:citation/md:author">
79
							<creator>
80
								<creatorName>
81
									<xsl:value-of select="concat(./md:firstName, ' ', ./md:lastName)"/>
82
								</creatorName>
83
								<nameIdentifier schemeURI="http://www.pangaea.de"
84
												nameIdentifierScheme="PANGAEA">
85
									<xsl:value-of select="./@id"/>
86
								</nameIdentifier>
87

  
88
							</creator>
89
						</xsl:for-each>
90
					</creators>
91
					<titles>
92
						<xsl:for-each select="//md:citation/md:title">
93
							<title xml:lang="en-us">
94
								<xsl:value-of select="."/>
95
							</title>
96
						</xsl:for-each>
97
					</titles>
98
					<publisher>PANGAEA</publisher>
99
					<publicationYear>
100
						<xsl:value-of select="//md:citation/md:year"/>
101
					</publicationYear>
102
					<resourceType resourceTypeGeneral="Dataset"/>
103
					<xsl:variable name="description">
104
						<xsl:value-of select="//md:citation/md:abstract"/>
105
					</xsl:variable>
106
					<xsl:if test="$description">
107
						<descriptions>
108
							<description descriptionType="Abstract">
109
								<xsl:value-of select="$description"/>
110
							</description>
111
						</descriptions>
112
					</xsl:if>
113
					<rights>info:eu-repo/semantics/openAccess</rights>
114
					<contributors>
115
						<contributor contributorType="Funder">
116
							<contributorName>European Commission</contributorName>
117
							<nameIdentifier nameIdentifierScheme="info">
118
								<xsl:value-of
119
										select="//oaf:projectid"/>
120
							</nameIdentifier>
121
						</contributor>
122
					</contributors>
123
				</resource>
124
				<xsl:variable name="journalName">
125
					<xsl:value-of select="//*[local-name() ='journal']/@name"/>
126
				</xsl:variable>
127
				<xsl:variable name="journalISSN">
128
					<xsl:value-of select="//*[local-name() ='journal']/@issn"/>
129
				</xsl:variable>
130
				<xsl:variable name="journalDSId">
131
					<xsl:value-of select="//*[local-name() ='journal']/@datasourceid"/>
132
				</xsl:variable>
133

  
134
				<xsl:choose>
135
					<xsl:when test="string-length($journalISSN) &gt; 0">
136
						<oaf:journal issn="{$journalISSN}" eissn="">
137
							<xsl:value-of select="$journalName"/>
138
						</oaf:journal>
139
						<oaf:hostedBy>
140
							<xsl:attribute name="id">
141
								<xsl:value-of select="$journalDSId"/>
142
							</xsl:attribute>
143
							<xsl:attribute name="name">
144
								<xsl:value-of select="$journalName"/>
145
							</xsl:attribute>
146
						</oaf:hostedBy>
147
					</xsl:when>
148
					<xsl:otherwise>
149
						<oaf:hostedBy
150
								id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18"
151
								name="Unknown Repository"/>
152
					</xsl:otherwise>
153
				</xsl:choose>
154
				<xsl:for-each select="//md:citation/md:supplementTo/@id">
155
					<xsl:variable name="publicationID">
156
						<xsl:value-of select="."/>
157
					</xsl:variable>
158
					<xsl:choose>
159
						<xsl:when test="string-length($publicationID) &gt; 0">
160
							<oaf:relatedPublication>
161
								<xsl:attribute name="id">
162
									<xsl:value-of
163
											select="concat($namespacePrefix,'::', dnet:md5($publicationID))"/>
164
								</xsl:attribute>
165
							</oaf:relatedPublication>
166
						</xsl:when>
167
					</xsl:choose>
168
				</xsl:for-each>
169

  
170
				<xsl:choose>
171
					<xsl:when test="string-length($parent_uri) &gt; 0">
172
						<xsl:variable name="dataset_relate_ID">
173
							<xsl:value-of select="stringUtils:substringAfter($parent_uri,'doi:')"/>
174
						</xsl:variable>
175
						<xsl:choose>
176
							<xsl:when test="string-length($dataset_relate_ID) &gt; 0">
177
								<oaf:relatedDataSet>
178
									<xsl:attribute name="id">
179
										<xsl:value-of
180
												select="concat($namespacePrefix,'::', dnet:md5($dataset_relate_ID))"/>
181
									</xsl:attribute>
182
								</oaf:relatedDataSet>
183
							</xsl:when>
184
						</xsl:choose>
185

  
186
					</xsl:when>
187
				</xsl:choose>
188

  
189
				<oaf:about>
190
					<oaf:datainfo>
191
						<oaf:inferred>false</oaf:inferred>
192
						<oaf:deletedbyinference>false</oaf:deletedbyinference>
193
						<oaf:trust>0.9</oaf:trust>
194
						<oaf:inferenceprovenance/>
195
						<oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive"
196
											  classname="sysimport:crosswalk:datasetarchive"
197
											  schemeid="dnet:provenanceActions"
198
											  schemename="dnet:provenanceActions"/>
199
					</oaf:datainfo>
200
				</oaf:about>
201
			</oai:metadata>
202
		</oai:record>
203
	</xsl:template>
204
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/feedObjectStore.st
1
 <NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="fetchOriginals"/>		
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="mdId" managedBy="user"></PARAM>
17
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">OAF</PARAM>
18
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
19
	</PARAMETERS>
20
	<ARCS>
21
		<ARC to="STOREOBJECT"/>
22
	</ARCS>
23
</NODE>
24

  
25
<NODE name="STOREOBJECT" type="DownloadIntoObjectStore">
26
	<DESCRIPTION>Store files into objectStore</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="idXpath" managedBy="user">//*[local-name()='objIdentifier']</PARAM>		
29
		<PARAM required="true" type="string" name="objectStoreId" managedBy="system" category="OBJECTSTORE_ID">$params.("objs_id")$</PARAM>		
30
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
31
		<PARAM required="false" type="string" name="objectIsInsideEpr" managedBy="system">true</PARAM>
32
		<PARAM required="true" type="string" name="contentDescription" managedBy="system">$params.("objectStoreContentDescription")$</PARAM>
33
		
34
	</PARAMETERS>
35
	<ARCS>
36
		<ARC to="updateSizeObjectStore"/>
37
	</ARCS>
38
</NODE>
39
<NODE name="updateSizeObjectStore" type="UpdateObjectStoreSize">
40
	<DESCRIPTION>Download records</DESCRIPTION>
41
	<PARAMETERS>
42
		<PARAM required="true" type="string" name="objectStoreIdParam" managedBy="system" category="OBJECTSTORE_ID">$params.("objs_id")$</PARAM>
43
	</PARAMETERS>
44
	<ARCS>
45
		<ARC to="UPDATE_INFO"/>
46
	</ARCS>
47
</NODE>
48

  
49
<NODE name="UPDATE_INFO" type="ObjectStoreToApiExtraField">
50
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
51
	<PARAMETERS>
52
		<PARAM required="true" type="string" name="objId" managedBy="system">$params.("objs_id")$</PARAM>
53
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
54
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
55
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_download_total</PARAM>
56
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_download_date</PARAM>
57
		<PARAM required="true" type="string" name="extraFieldForObjId" managedBy="system">last_download_objId</PARAM>
58
	</PARAMETERS>
59
	<ARCS>
60
		<ARC to="success"/>
61
	</ARCS>
62
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.11/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/datacite_datarepos_2_db.xslt
1
<?xml version="1.0" encoding="UTF-8"?>
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
	<xsl:template match="/">
10
		<ROWS>
11
			<xsl:variable name="id" select="//FIELD[@name='id']" />
12
			<xsl:variable name="name" select="//FIELD[@name='name']" />
13
			<xsl:variable name="class" select="//FIELD[@name='class']" />
14
			
15
			<ROW table="datacite_temp_datarepos">
16
				<FIELD name="_dnet_resource_identifier_">
17
					<xsl:value-of select="$id" />
18
				</FIELD>
19
				<FIELD name="id">
20
					<xsl:value-of select="$id" />
21
				</FIELD>
22
				<FIELD name="name">
23
					<xsl:value-of select="$name" />
24
				</FIELD>
25
				<FIELD name="name_cleaned">
26
					<xsl:value-of select="clean:clean($name)" />
27
				</FIELD>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff