Revision 46783
Added by Alessia Bardi over 7 years ago
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/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>6.0.13</version> |
|
14 |
<scm> |
|
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13</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.1.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>[2.0.0,3.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>[6.0.0,7.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 |
<dependency> |
|
77 |
<groupId>eu.dnetlib</groupId> |
|
78 |
<artifactId>dnet-actionmanager-api</artifactId> |
|
79 |
<version>[4.0.0,5.0.0)</version> |
|
80 |
</dependency> |
|
81 |
|
|
82 |
<dependency> |
|
83 |
<groupId>eu.dnetlib</groupId> |
|
84 |
<artifactId>dnet-oai-common-workflows</artifactId> |
|
85 |
<!-- <version>[4.0.1-BASIC-AGGREGATOR-SNAPSHOT]</version> --> |
|
86 |
<version>[3.0.0,4.0.0)</version> |
|
87 |
|
|
88 |
</dependency> |
|
89 |
|
|
90 |
<dependency> |
|
91 |
<groupId>eu.dnetlib</groupId> |
|
92 |
<artifactId>dnet-index-solr-client</artifactId> |
|
93 |
<version>[2.0.0,2.9.9)</version> |
|
94 |
</dependency> |
|
95 |
|
|
96 |
<dependency> |
|
97 |
<groupId>eu.dnetlib</groupId> |
|
98 |
<artifactId>dnet-validator-workflows</artifactId> |
|
99 |
<version>[1.0.0,2.0.0)</version> |
|
100 |
</dependency> |
|
101 |
|
|
102 |
<dependency> |
|
103 |
<groupId>eu.dnetlib</groupId> |
|
104 |
<artifactId>dnet-deduplication</artifactId> |
|
105 |
<version>[1.0.0,2.0.0)</version> |
|
106 |
</dependency> |
|
107 |
|
|
108 |
<!-- modular ui and servlet api are here because of the stats controller --> |
|
109 |
<dependency> |
|
110 |
<groupId>eu.dnetlib</groupId> |
|
111 |
<artifactId>dnet-modular-vocabularies-ui</artifactId> |
|
112 |
<version>[2.0.0,3.0.0)</version> |
|
113 |
</dependency> |
|
114 |
|
|
115 |
<dependency> |
|
116 |
<groupId>org.apache.velocity</groupId> |
|
117 |
<artifactId>velocity</artifactId> |
|
118 |
<version>1.7</version> |
|
119 |
</dependency> |
|
120 |
<dependency> |
|
121 |
<groupId>org.apache.velocity</groupId> |
|
122 |
<artifactId>velocity-tools</artifactId> |
|
123 |
<version>2.0</version> |
|
124 |
</dependency> |
|
125 |
<dependency> |
|
126 |
<groupId>org.json</groupId> |
|
127 |
<artifactId>json</artifactId> |
|
128 |
<version>20160810</version> |
|
129 |
</dependency> |
|
130 |
<dependency> |
|
131 |
<groupId>javax.servlet</groupId> |
|
132 |
<artifactId>javax.servlet-api</artifactId> |
|
133 |
<version>${javax.servlet.version}</version> |
|
134 |
<scope>provided</scope> |
|
135 |
</dependency> |
|
136 |
<dependency> |
|
137 |
<groupId>junit</groupId> |
|
138 |
<artifactId>junit</artifactId> |
|
139 |
<version>${junit.version}</version> |
|
140 |
<scope>test</scope> |
|
141 |
</dependency> |
|
142 |
<dependency> |
|
143 |
<groupId>eu.dnetlib</groupId> |
|
144 |
<artifactId>dnet-openaireplus-profiles</artifactId> |
|
145 |
<version>[1.0.0,2.0.0)</version> |
|
146 |
<scope>test</scope> |
|
147 |
</dependency> |
|
148 |
</dependencies> |
|
149 |
|
|
150 |
</project> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/nih_contexts.xsl | ||
---|---|---|
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:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:output indent="yes" /> |
|
7 |
|
|
8 |
<xsl:template match="/"> |
|
9 |
<fundings> |
|
10 |
<fundingtree> |
|
11 |
<funder> |
|
12 |
<id>nih_________::NIH</id> |
|
13 |
<shortname>NIH</shortname> |
|
14 |
<name>National Institutes of Health</name> |
|
15 |
<jurisdiction>US</jurisdiction> |
|
16 |
</funder> |
|
17 |
</fundingtree> |
|
18 |
<xsl:for-each select="//IC_NAME[./text() != '']"> |
|
19 |
<fundingtree> |
|
20 |
<funder> |
|
21 |
<id>nih_________::NIH</id> |
|
22 |
<shortname>NIH</shortname> |
|
23 |
<name>National Institutes of Health</name> |
|
24 |
<jurisdiction>US</jurisdiction> |
|
25 |
</funder> |
|
26 |
<xsl:variable name="fundingName" select="fn:upper-case(normalize-space(.))"/> |
|
27 |
<funding_level_0> |
|
28 |
<id> |
|
29 |
<!-- remove space --> |
|
30 |
<xsl:value-of select="concat('nih_________::NIH::', $fundingName)" /> |
|
31 |
</id> |
|
32 |
<name> |
|
33 |
<xsl:value-of select="$fundingName" /> |
|
34 |
</name> |
|
35 |
<description> |
|
36 |
<xsl:value-of select="$fundingName" /> |
|
37 |
</description> |
|
38 |
<parent></parent> |
|
39 |
<class>nih:fundingStream</class> |
|
40 |
</funding_level_0> |
|
41 |
</fundingtree> |
|
42 |
</xsl:for-each> |
|
43 |
</fundings> |
|
44 |
</xsl:template> |
|
45 |
</xsl:stylesheet> |
|
46 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/wellcometrust_2_db.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 |
|
|
4 |
<xsl:param name="parentDatasourceId"/> |
|
5 |
<xsl:param name="namespacePrefix"/> |
|
6 |
<xsl:param name="quote">"</xsl:param> |
|
7 |
|
|
8 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::WT')"/> |
|
9 |
|
|
10 |
<xsl:variable name="stream" select="normalize-space(.//Grant/Stream)"/> |
|
11 |
<xsl:variable name="fundingID"> |
|
12 |
<xsl:choose> |
|
13 |
<xsl:when test="string-length($stream) > 0"> |
|
14 |
<xsl:value-of select="concat($funderID, '::', $stream)"/> |
|
15 |
</xsl:when> |
|
16 |
<xsl:otherwise> |
|
17 |
<xsl:value-of select="$funderID"/> |
|
18 |
</xsl:otherwise> |
|
19 |
</xsl:choose> |
|
20 |
</xsl:variable> |
|
21 |
|
|
22 |
<xsl:variable name="projectID" select="concat($namespacePrefix, '::', .//Grant/Id)"/> |
|
23 |
|
|
24 |
<xsl:variable name="orgID" select="concat($namespacePrefix, '::', translate(.//Institution/Name, ' ,', '__'))"/> |
|
25 |
<!-- |
|
26 |
personID is fine as long as WT gives us one person per project. If they fix their export, we might have 2 persons (or more). |
|
27 |
At this stage we are somehow fine to loose one of the persons (the second project with the same id overwrites the previous project |
|
28 |
--> |
|
29 |
<xsl:variable name="personID" select="concat($namespacePrefix, '::', .//Person/Alias[@Source='Wellcome Trust'])"/> |
|
30 |
<xsl:variable name="startDate" select="translate(.//Grant/StartDate,'/\','--')"/> |
|
31 |
<xsl:variable name="endDate" select="translate(.//Grant/EndDate,'/\','--')"/> |
|
32 |
|
|
33 |
<xsl:variable name="dateFormat" select="string('yyyy-MM-dd')"/> |
|
34 |
|
|
35 |
<xsl:template name="getJson"> |
|
36 |
<xsl:param name="varName"/> |
|
37 |
<xsl:param name="value"/> |
|
38 |
<xsl:value-of select="concat($quote, $varName, $quote, ':', $quote, $value, $quote)"/> |
|
39 |
</xsl:template> |
|
40 |
|
|
41 |
<xsl:template match="/"> |
|
42 |
<record> |
|
43 |
|
|
44 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
|
45 |
<metadata> |
|
46 |
<ROWS> |
|
47 |
<xsl:if test="string-length(normalize-space(.//Grant/Title)) > 0 and string-length($projectID) > 0"> |
|
48 |
<ROW table="projects"> |
|
49 |
<FIELD name="_dnet_resource_identifier_"> |
|
50 |
<xsl:value-of select="$projectID"/> |
|
51 |
</FIELD> |
|
52 |
<FIELD name="id"> |
|
53 |
<xsl:value-of select="$projectID"/> |
|
54 |
</FIELD> |
|
55 |
<FIELD name="code"> |
|
56 |
<xsl:value-of select=".//Grant/Id"/> |
|
57 |
</FIELD> |
|
58 |
<FIELD name="startdate" type="date" format="{$dateFormat}"> |
|
59 |
<xsl:value-of select="$startDate"/> |
|
60 |
</FIELD> |
|
61 |
<FIELD name="enddate" type="date" format="{$dateFormat}"> |
|
62 |
<xsl:value-of select="$endDate"/> |
|
63 |
</FIELD> |
|
64 |
<FIELD name="title"> |
|
65 |
<xsl:value-of select=".//Grant/Title"/> |
|
66 |
</FIELD> |
|
67 |
<FIELD name="contracttypeclass">UNKNOWN</FIELD> |
|
68 |
<FIELD name="contracttypescheme">wt:contractTypes</FIELD> |
|
69 |
|
|
70 |
<FIELD name="acronym"></FIELD> |
|
71 |
<FIELD name="keywords"><xsl:value-of select="normalize-space(.//Grant/Type)"/></FIELD> |
|
72 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
73 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
74 |
<FIELD name="collectedfrom"> |
|
75 |
<xsl:value-of select="$parentDatasourceId"/> |
|
76 |
</FIELD> |
|
77 |
<FIELD name="optional1"> |
|
78 |
<xsl:value-of select="concat(.//Grant/Amount, ' ', .//Grant/Amount/@Currency)"/> |
|
79 |
</FIELD> |
|
80 |
<xsl:if test="string-length(normalize-space(.//Grant/Alias/text())) > 0"> |
|
81 |
<xsl:variable name="projectAlias"> |
|
82 |
<xsl:call-template name="getJson"> |
|
83 |
<xsl:with-param name="varName">alias</xsl:with-param> |
|
84 |
<xsl:with-param name="value"><xsl:value-of select=".//Grant/Alias"/></xsl:with-param> |
|
85 |
</xsl:call-template> |
|
86 |
</xsl:variable> |
|
87 |
<xsl:variable name="jsonExtra"> |
|
88 |
<xsl:value-of select="concat('{', $projectAlias, '}')"/> |
|
89 |
</xsl:variable> |
|
90 |
<FIELD name="jsonextrainfo"><xsl:value-of select="$jsonExtra"/></FIELD> |
|
91 |
</xsl:if> |
|
92 |
</ROW> |
|
93 |
|
|
94 |
<ROW table="project_fundingpath"> |
|
95 |
<FIELD name="_dnet_resource_identifier_"> |
|
96 |
<xsl:value-of select="concat($fundingID,'@@', $projectID)"/> |
|
97 |
</FIELD> |
|
98 |
<FIELD name="funding"> |
|
99 |
<xsl:value-of select="$fundingID"/> |
|
100 |
</FIELD> |
|
101 |
<FIELD name="project"> |
|
102 |
<xsl:value-of select="$projectID"/> |
|
103 |
</FIELD> |
|
104 |
<FIELD name="startdate" type="date" format="{$dateFormat}"> |
|
105 |
<xsl:value-of select="$startDate"/> |
|
106 |
</FIELD> |
|
107 |
<FIELD name="enddate" type="date" format="{$dateFormat}"> |
|
108 |
<xsl:value-of select="$endDate"/> |
|
109 |
</FIELD> |
|
110 |
</ROW> |
|
111 |
<ROW table="persons"> |
|
112 |
<FIELD name="_dnet_resource_identifier_"> |
|
113 |
<xsl:value-of select="$personID"/> |
|
114 |
</FIELD> |
|
115 |
<FIELD name="id"> |
|
116 |
<xsl:value-of select="$personID"/> |
|
117 |
</FIELD> |
|
118 |
<FIELD name="firstname"> |
|
119 |
<xsl:value-of select=".//Person/GivenName"/> |
|
120 |
</FIELD> |
|
121 |
<FIELD name="secondnames"> |
|
122 |
<xsl:value-of select=".//Person/FamilyName"/> |
|
123 |
</FIELD> |
|
124 |
<FIELD name="collectedfrom"> |
|
125 |
<xsl:value-of select="$parentDatasourceId"/> |
|
126 |
</FIELD> |
|
127 |
<FIELD name="optional1"> |
|
128 |
<xsl:value-of select=".//Person/Title"/> |
|
129 |
</FIELD> |
|
130 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
131 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
132 |
</ROW> |
|
133 |
<xsl:if test="not(concat($namespacePrefix, '::') = $orgID)"> |
|
134 |
<ROW table="organizations"> |
|
135 |
<FIELD name="_dnet_resource_identifier_"> |
|
136 |
<xsl:value-of select="$orgID"/> |
|
137 |
</FIELD> |
|
138 |
<FIELD name="id"> |
|
139 |
<xsl:value-of select="$orgID"/> |
|
140 |
</FIELD> |
|
141 |
<FIELD name="legalname"> |
|
142 |
<xsl:value-of select=".//Institution/Name"/> |
|
143 |
</FIELD> |
|
144 |
<FIELD name="collectedfrom"> |
|
145 |
<xsl:value-of select="$parentDatasourceId"/> |
|
146 |
</FIELD> |
|
147 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
148 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
149 |
<FIELD name="trust" type="float">0.8</FIELD> |
|
150 |
</ROW> |
|
151 |
<ROW table="project_organization"> |
|
152 |
<FIELD name="_dnet_resource_identifier_"> |
|
153 |
<xsl:value-of select="concat($projectID, '@@', $orgID)"/> |
|
154 |
</FIELD> |
|
155 |
<FIELD name="participantnumber" type="int">1</FIELD> |
|
156 |
<FIELD name="startdate" type="date" format="{$dateFormat}"> |
|
157 |
<xsl:value-of select="$startDate"/> |
|
158 |
</FIELD> |
|
159 |
<FIELD name="enddate" type="date" format="{$dateFormat}"> |
|
160 |
<xsl:value-of select="$endDate"/> |
|
161 |
</FIELD> |
|
162 |
<FIELD name="project"> |
|
163 |
<xsl:value-of select="$projectID"/> |
|
164 |
</FIELD> |
|
165 |
<FIELD name="resporganization"> |
|
166 |
<xsl:value-of select="$orgID"/> |
|
167 |
</FIELD> |
|
168 |
<FIELD name="contactperson"> |
|
169 |
<xsl:value-of select="$personID"/> |
|
170 |
</FIELD> |
|
171 |
<FIELD name="semanticclass">coordinator</FIELD> |
|
172 |
<FIELD name="semanticscheme">dnet:project_organization_relations</FIELD> |
|
173 |
</ROW> |
|
174 |
</xsl:if> |
|
175 |
</xsl:if> |
|
176 |
</ROWS> |
|
177 |
</metadata> |
|
178 |
</record> |
|
179 |
</xsl:template> |
|
180 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/sfi_2_db.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" 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:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
6 |
exclude-result-prefixes="xs" version="1.0"> |
|
7 |
|
|
8 |
<xsl:param name="parentDatasourceId" /> |
|
9 |
<xsl:param name="namespacePrefix" /> |
|
10 |
|
|
11 |
<xsl:template match="/"> |
|
12 |
|
|
13 |
<xsl:variable name="prefix" select="string('sfi_________')" /> |
|
14 |
|
|
15 |
<record xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
16 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
17 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
18 |
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> |
|
19 |
|
|
20 |
<xsl:copy-of select=".//*[local-name()='header']" /> |
|
21 |
|
|
22 |
<metadata> |
|
23 |
<ROWS> |
|
24 |
<xsl:if test="normalize-space(.//column[@name='Proposal ID']) and normalize-space(.//column[@name='Project Title'])"> |
|
25 |
<xsl:variable name="projectId" select="concat($namespacePrefix, '::', normalize-space(.//column[@name='Proposal ID']))" /> |
|
26 |
<xsl:variable name="startDate" select=".//column[@name='Start Date']" /> |
|
27 |
<xsl:variable name="endDate" select=".//column[@name='End Date']" /> |
|
28 |
<ROW table="projects"> |
|
29 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$projectId" /></FIELD> |
|
30 |
<FIELD name="id"><xsl:value-of select="$projectId" /></FIELD> |
|
31 |
<FIELD name="code"><xsl:value-of select=".//column[@name='Proposal ID']" /></FIELD> |
|
32 |
<FIELD name="title"><xsl:value-of select=".//column[@name='Project Title']" /></FIELD> |
|
33 |
<FIELD name="startdate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$startDate" /></FIELD> |
|
34 |
<FIELD name="enddate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$endDate" /></FIELD> |
|
35 |
<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD> |
|
36 |
<FIELD name="provenanceactionclass">sysimport:crosswalk:entityregistry</FIELD> |
|
37 |
</ROW> |
|
38 |
|
|
39 |
<xsl:if test="normalize-space(.//column[@name='Programme Name'])"> |
|
40 |
<xsl:variable name="funderId" select="concat($prefix, '::SFI')" /> |
|
41 |
<xsl:variable name="fundingId" select="concat($funderId, '::', normalize-space(.//column[@name='Programme Name']))" /> |
|
42 |
<ROW table="project_fundingpath"> |
|
43 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($fundingId, '@@', $projectId)" /></FIELD> |
|
44 |
<FIELD name="funding"><xsl:value-of select="$fundingId" /></FIELD> |
|
45 |
<FIELD name="project"><xsl:value-of select="$projectId" /></FIELD> |
|
46 |
<FIELD name="startdate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$startDate" /></FIELD> |
|
47 |
<FIELD name="enddate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$endDate" /></FIELD> |
|
48 |
</ROW> |
|
49 |
</xsl:if> |
|
50 |
|
|
51 |
<xsl:if test="normalize-space(.//column[@name='Research Body'])"> |
|
52 |
<xsl:variable name="organizationId" select="concat($namespacePrefix, '::', normalize-space(.//column[@name='Research Body']))" /> |
|
53 |
<ROW table="organizations"> |
|
54 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$organizationId" /></FIELD> |
|
55 |
<FIELD name="id"><xsl:value-of select="$organizationId" /></FIELD> |
|
56 |
<FIELD name="legalname"><xsl:value-of select=".//column[@name='Research Body']" /></FIELD> |
|
57 |
<FIELD name="countryclass">IE</FIELD> |
|
58 |
<FIELD name="countryscheme">dnet:countries</FIELD> |
|
59 |
<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD> |
|
60 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
61 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
62 |
</ROW> |
|
63 |
<ROW table="project_organization"> |
|
64 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select='concat($projectId, "@@", $organizationId)' /></FIELD> |
|
65 |
<FIELD name="project"><xsl:value-of select="$projectId" /></FIELD> |
|
66 |
<FIELD name="resporganization"><xsl:value-of select="$organizationId" /></FIELD> |
|
67 |
<FIELD name="participantnumber" type="int">1</FIELD> |
|
68 |
<FIELD name="semanticclass">coordinator</FIELD> |
|
69 |
<FIELD name="semanticscheme">dnet:project_organization_relations</FIELD> |
|
70 |
</ROW> |
|
71 |
</xsl:if> |
|
72 |
</xsl:if> |
|
73 |
</ROWS> |
|
74 |
</metadata> |
|
75 |
</record> |
|
76 |
</xsl:template> |
|
77 |
|
|
78 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/wt_contexts.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" version="1.0" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('wt__________')"/> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::WT')"/> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<fundings> |
|
11 |
<fundingtree> |
|
12 |
<funder> |
|
13 |
<id> |
|
14 |
<xsl:value-of select="$funderID"/> |
|
15 |
</id> |
|
16 |
<shortname>WT</shortname> |
|
17 |
<name>Wellcome Trust</name> |
|
18 |
<jurisdiction></jurisdiction> |
|
19 |
</funder> |
|
20 |
<xsl:variable name="stream" select="normalize-space(.//Grant/Stream)"/> |
|
21 |
<xsl:if test="string-length($stream) > 0"> |
|
22 |
<funding_level_0> |
|
23 |
<id> |
|
24 |
<xsl:value-of select="concat($funderID, '::', $stream)"/> |
|
25 |
</id> |
|
26 |
<description> |
|
27 |
<xsl:value-of select="$stream"/> |
|
28 |
</description> |
|
29 |
<name> |
|
30 |
<xsl:value-of select="$stream"/> |
|
31 |
</name> |
|
32 |
<parent></parent> |
|
33 |
<class>wt:fundingStream</class> |
|
34 |
</funding_level_0> |
|
35 |
</xsl:if> |
|
36 |
</fundingtree> |
|
37 |
</fundings> |
|
38 |
</xsl:template> |
|
39 |
|
|
40 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/doaj2db.xsl | ||
---|---|---|
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 |
<xsl:choose> |
|
11 |
<xsl:when test="//column[./@name='Journal ISSN (print version)'] != ''"> |
|
12 |
<xsl:call-template name="createJournal"> |
|
13 |
<xsl:with-param name="rid" select="normalize-space(//column[./@name='Journal ISSN (print version)'])"/> |
|
14 |
</xsl:call-template> |
|
15 |
</xsl:when> |
|
16 |
<xsl:when test="//column[./@name='Journal EISSN (online version)'] != ''"> |
|
17 |
<xsl:call-template name="createJournal"> |
|
18 |
<xsl:with-param name="rid" select="normalize-space(//column[./@name='Journal EISSN (online version)'])"/> |
|
19 |
</xsl:call-template> |
|
20 |
</xsl:when> |
|
21 |
<xsl:otherwise><record/></xsl:otherwise> |
|
22 |
</xsl:choose> |
|
23 |
</xsl:template> |
|
24 |
|
|
25 |
<xsl:template name="createJournal"> |
|
26 |
<xsl:param name="rid"/> |
|
27 |
|
|
28 |
<record> |
|
29 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
|
30 |
<metadata> |
|
31 |
<xsl:variable name="datasourceId" select="concat($namespacePrefix, '::', $rid)"/> |
|
32 |
<xsl:variable name="ISSNNS" select="stringUtils:replace($rid,'-','')"/> |
|
33 |
<xsl:variable name="oName" select="normalize-space(//column[./@name='Journal title'])"/> |
|
34 |
<xsl:variable name="organizationId" |
|
35 |
select="translate(concat($namespacePrefix, '::', $oName), ' ', '_')"/> |
|
36 |
<ROWS> |
|
37 |
<ROW table="datasources"> |
|
38 |
<FIELD name="id"> |
|
39 |
<xsl:value-of select="$datasourceId"/> |
|
40 |
</FIELD> |
|
41 |
<FIELD name="_dnet_resource_identifier_"> |
|
42 |
<xsl:value-of select="$datasourceId"/> |
|
43 |
</FIELD> |
|
44 |
<FIELD name="officialname"> |
|
45 |
<xsl:value-of select="normalize-space(//column[./@name='Journal title'])"/> |
|
46 |
</FIELD> |
|
47 |
<FIELD name="englishname"> |
|
48 |
<xsl:value-of select="normalize-space(//column[./@name='Journal title'])"/> |
|
49 |
</FIELD> |
|
50 |
<FIELD name="od_contenttypes"> |
|
51 |
<xsl:value-of select="string('Journal articles')"/> |
|
52 |
</FIELD> |
|
53 |
<FIELD name="issn"> |
|
54 |
<xsl:value-of select="normalize-space(//column[./@name='Journal ISSN (print version)'])"/> |
|
55 |
</FIELD> |
|
56 |
<FIELD name="eissn"> |
|
57 |
<xsl:value-of select="normalize-space(//column[./@name='Journal EISSN (online version)'])"/> |
|
58 |
</FIELD> |
|
59 |
<FIELD name="websiteurl"> |
|
60 |
<xsl:value-of select="normalize-space(//column[./@name='Journal URL'])"/> |
|
61 |
</FIELD> |
|
62 |
<FIELD name="namespaceprefix"> |
|
63 |
<xsl:value-of select="concat('doaj', $ISSNNS)"/> |
|
64 |
</FIELD> |
|
65 |
<FIELD name="datasourceclass">pubsrepository::journal</FIELD> |
|
66 |
<FIELD name="collectedfrom"> |
|
67 |
<xsl:value-of select="$parentDatasourceId"/> |
|
68 |
</FIELD> |
|
69 |
</ROW> |
|
70 |
</ROWS> |
|
71 |
</metadata> |
|
72 |
</record> |
|
73 |
</xsl:template> |
|
74 |
|
|
75 |
|
|
76 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/sfi_contexts.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<xsl:stylesheet version="1.0" |
|
4 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
5 |
exclude-result-prefixes="fn"> |
|
6 |
|
|
7 |
<xsl:variable name="namespacePrefix" select="string('sfi_________')" /> |
|
8 |
<xsl:variable name="funderId" select="concat($namespacePrefix, '::SFI')" /> |
|
9 |
|
|
10 |
<xsl:template match="/"> |
|
11 |
<fundingtree> |
|
12 |
<funder> |
|
13 |
<id><xsl:value-of select="$funderId" /></id> |
|
14 |
<shortname>SFI</shortname> |
|
15 |
<name><xsl:value-of select=".//column[@name='Funder Name']" /></name> |
|
16 |
<jurisdiction>IE</jurisdiction> |
|
17 |
</funder> |
|
18 |
<xsl:variable name="funding" select="normalize-space(.//column[@name='Programme Name'])" /> |
|
19 |
<xsl:if test="$funding"> |
|
20 |
<funding_level_0> |
|
21 |
<id><xsl:value-of select="concat($funderId, '::', $funding)" /></id> |
|
22 |
<description><xsl:value-of select="$funding" /></description> |
|
23 |
<name><xsl:value-of select="$funding" /></name> |
|
24 |
<parent></parent> |
|
25 |
<class>sfi:fundingStream</class> |
|
26 |
</funding_level_0> |
|
27 |
</xsl:if> |
|
28 |
</fundingtree> |
|
29 |
</xsl:template> |
|
30 |
</xsl:stylesheet> |
|
31 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/rcuk_contexts.xsl | ||
---|---|---|
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:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('rcuk________')" /> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::RCUK')" /> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<xsl:variable name="funding" select="//funder/name"/> |
|
11 |
|
|
12 |
|
|
13 |
<fundingtree> |
|
14 |
<funder> |
|
15 |
<id> |
|
16 |
<xsl:value-of select="$funderID" /> |
|
17 |
</id> |
|
18 |
<shortname>RCUK</shortname> |
|
19 |
<name>Research Council UK</name> |
|
20 |
<jurisdiction>GB</jurisdiction> |
|
21 |
</funder> |
|
22 |
<funding_level_0> |
|
23 |
<id> |
|
24 |
<xsl:value-of select="concat($funderID, '::', $funding)" /> |
|
25 |
</id> |
|
26 |
<description> |
|
27 |
<xsl:value-of select="$funding" /> |
|
28 |
</description> |
|
29 |
<name> |
|
30 |
<xsl:value-of select="$funding" /> |
|
31 |
</name> |
|
32 |
<parent></parent> |
|
33 |
<class>rcuk:fundingStream</class> |
|
34 |
</funding_level_0> |
|
35 |
</fundingtree> |
|
36 |
</xsl:template> |
|
37 |
|
|
38 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/opendoar_2_db.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/" xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
3 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oaa="http://namespace.openaire.eu/oaa" |
|
4 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
5 |
xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" version="1.0"> |
|
6 |
|
|
7 |
<xsl:param name="parentDatasourceId"/> |
|
8 |
<xsl:param name="namespacePrefix"/> |
|
9 |
|
|
10 |
<xsl:template match="/"> |
|
11 |
<record xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
12 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
13 |
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
14 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> |
|
15 |
|
|
16 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
|
17 |
<metadata> |
|
18 |
<xsl:variable name="rid" select="normalize-space(//repository/@rID)"/> |
|
19 |
<xsl:variable name="datasourceId" select="concat($namespacePrefix, '::', $rid)"/> |
|
20 |
<xsl:variable name="oUrl" select="normalize-space(//oUrl)"/> |
|
21 |
<xsl:variable name="oName" select="normalize-space(//oName)"/> |
|
22 |
<xsl:variable name="organizationId" select="translate(concat($namespacePrefix, '::', $oName), ' ', '_')"/> |
|
23 |
<xsl:variable name="repositoryType"> |
|
24 |
<xsl:choose> |
|
25 |
<xsl:when test="normalize-space(//repositoryType) = 'Institutional'"> |
|
26 |
<xsl:value-of select="string('pubsrepository::institutional')"/> |
|
27 |
</xsl:when> |
|
28 |
<xsl:when test="normalize-space(//repositoryType) = 'Disciplinary'"> |
|
29 |
<xsl:value-of select="string('pubsrepository::thematic')"/> |
|
30 |
</xsl:when> |
|
31 |
<xsl:when test="normalize-space(//repositoryType) = 'Aggregating'"> |
|
32 |
<xsl:value-of select="string('aggregator::pubsrepository::unknown')"/> |
|
33 |
</xsl:when> |
|
34 |
<xsl:otherwise> |
|
35 |
<xsl:value-of select="string('pubsrepository::unknown')"/> |
|
36 |
</xsl:otherwise> |
|
37 |
</xsl:choose> |
|
38 |
</xsl:variable> |
|
39 |
|
|
40 |
<xsl:variable name="contenttypes"> |
|
41 |
<xsl:for-each select=".//contentType"> |
|
42 |
<xsl:if test="position() > 1">-</xsl:if> |
|
43 |
<xsl:value-of select="."/> |
|
44 |
</xsl:for-each> |
|
45 |
</xsl:variable> |
|
46 |
<xsl:variable name="languages"> |
|
47 |
<xsl:for-each select=".//lName"> |
|
48 |
<xsl:if test="position() > 1">,</xsl:if> |
|
49 |
<xsl:value-of select="."/> |
|
50 |
</xsl:for-each> |
|
51 |
</xsl:variable> |
|
52 |
<ROWS> |
|
53 |
<ROW table="datasources"> |
|
54 |
<FIELD name="id"> |
|
55 |
<xsl:value-of select="$datasourceId"/> |
|
56 |
</FIELD> |
|
57 |
<FIELD name="_dnet_resource_identifier_"> |
|
58 |
<xsl:value-of select="$datasourceId"/> |
|
59 |
</FIELD> |
|
60 |
<FIELD name="officialname"> |
|
61 |
<xsl:value-of select="normalize-space(//rName)"/> |
|
62 |
</FIELD> |
|
63 |
<FIELD name="englishname"> |
|
64 |
<xsl:value-of select="normalize-space(//rAcronym)"/> |
|
65 |
</FIELD> |
|
66 |
<FIELD name="od_contenttypes"> |
|
67 |
<xsl:value-of select="normalize-space($contenttypes)"/> |
|
68 |
</FIELD> |
|
69 |
<FIELD name="od_languages"> |
|
70 |
<xsl:value-of select="normalize-space($languages)"/> |
|
71 |
</FIELD> |
|
72 |
<FIELD name="od_numberofitems"> |
|
73 |
<xsl:value-of select="normalize-space(//rNumOfItems)"/> |
|
74 |
</FIELD> |
|
75 |
<FIELD name="od_numberofitemsdate"> |
|
76 |
<xsl:value-of select="normalize-space(//rDateHarvested)"/> |
|
77 |
</FIELD> |
|
78 |
<FIELD name="description"> |
|
79 |
<xsl:value-of select="normalize-space(//rDescription)"/> |
|
80 |
</FIELD> |
|
81 |
<FIELD name="contactEmail"> |
|
82 |
<xsl:value-of select="normalize-space(//pEmail)"/> |
|
83 |
</FIELD> |
|
84 |
<FIELD name="latitude" type="float"> |
|
85 |
<xsl:value-of select="normalize-space(//paLatitude)"/> |
|
86 |
</FIELD> |
|
87 |
<FIELD name="longitude" type="float"> |
|
88 |
<xsl:value-of select="normalize-space(//paLongitude)"/> |
|
89 |
</FIELD> |
|
90 |
<FIELD name="websiteurl"> |
|
91 |
<xsl:value-of select="normalize-space(//rUrl)"/> |
|
92 |
</FIELD> |
|
93 |
<FIELD name="logourl"></FIELD> |
|
94 |
<FIELD name="namespaceprefix"> |
|
95 |
<xsl:value-of select="dnet:generateNsPrefix('od', $rid)"/> |
|
96 |
</FIELD> |
|
97 |
<FIELD name="datasourceclass"> |
|
98 |
<xsl:value-of select="$repositoryType"/> |
|
99 |
</FIELD> |
|
100 |
<FIELD name="datasourcescheme">dnet:datasource_typologies</FIELD> |
|
101 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
102 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
103 |
<FIELD name="typology"> |
|
104 |
<xsl:value-of select="normalize-space(//rSoftWareName)"/> |
|
105 |
</FIELD> |
|
106 |
<FIELD name="optional1"></FIELD> |
|
107 |
<FIELD name="optional2"></FIELD> |
|
108 |
<FIELD name="collectedfrom"> |
|
109 |
<xsl:value-of select="$parentDatasourceId"/> |
|
110 |
</FIELD> |
|
111 |
</ROW> |
|
112 |
|
|
113 |
<xsl:for-each select=".//class"> |
|
114 |
<xsl:variable name="subjectId" select="normalize-space(concat($parentDatasourceId, '::', ./clCode))"/> |
|
115 |
<xsl:variable name="subjectValue" select="normalize-space(./clTitle)"/> |
|
116 |
<ROW table="subjects"> |
|
117 |
<FIELD name="id"> |
|
118 |
<xsl:value-of select="$subjectId"/> |
|
119 |
</FIELD> |
|
120 |
<FIELD name="name"> |
|
121 |
<xsl:value-of select="$subjectValue"/> |
|
122 |
</FIELD> |
|
123 |
<FIELD name="semanticclass">dnet:od_subjects</FIELD> |
|
124 |
<FIELD name="semanticscheme">dnet:subject_classification_typologies</FIELD> |
|
125 |
<FIELD name="_dnet_resource_identifier_"> |
|
126 |
<xsl:value-of select="$subjectId"/> |
|
127 |
</FIELD> |
|
128 |
</ROW> |
|
129 |
<ROW table="datasource_subject"> |
|
130 |
<FIELD name="datasource"> |
|
131 |
<xsl:value-of select="$datasourceId"/> |
|
132 |
</FIELD> |
|
133 |
<FIELD name="subject"> |
|
134 |
<xsl:value-of select="$subjectId"/> |
|
135 |
</FIELD> |
|
136 |
<FIELD name="_dnet_resource_identifier_"> |
|
137 |
<xsl:value-of select="concat($datasourceId, '@@', $subjectId)"/> |
|
138 |
</FIELD> |
|
139 |
</ROW> |
|
140 |
</xsl:for-each> |
|
141 |
|
|
142 |
<xsl:variable name="apiId" select="concat('api_________::', $datasourceId, '::0')"/> |
|
143 |
<ROW table="api"> |
|
144 |
<FIELD name="id"> |
|
145 |
<xsl:value-of select="$apiId"/> |
|
146 |
</FIELD> |
|
147 |
<FIELD name="_dnet_resource_identifier_"> |
|
148 |
<xsl:value-of select="$apiId"/> |
|
149 |
</FIELD> |
|
150 |
<FIELD name="protocolclass">oai</FIELD> |
|
151 |
<FIELD name="datasource"> |
|
152 |
<xsl:value-of select="$datasourceId"/> |
|
153 |
</FIELD> |
|
154 |
<FIELD name="contentdescriptionclass">metadata</FIELD> |
|
155 |
<FIELD name="typologyclass"> |
|
156 |
<xsl:value-of select="$repositoryType"/> |
|
157 |
</FIELD> |
|
158 |
</ROW> |
|
159 |
|
|
160 |
<ROW table="apicollections"> |
|
161 |
<FIELD name="api"> |
|
162 |
<xsl:value-of select="$apiId"/> |
|
163 |
</FIELD> |
|
164 |
<FIELD name="param">baseUrl</FIELD> |
|
165 |
<FIELD name="_dnet_resource_identifier_"> |
|
166 |
<xsl:value-of select="concat($apiId, '@@baseUrl')"/> |
|
167 |
</FIELD> |
|
168 |
<xsl:choose> |
|
169 |
<xsl:when test="string-length(normalize-space(//rOaiBaseUrl)) > 0"> |
|
170 |
<FIELD name="original"> |
|
171 |
<xsl:value-of select="normalize-space(//rOaiBaseUrl)"/> |
|
172 |
</FIELD> |
|
173 |
</xsl:when> |
|
174 |
<xsl:otherwise> |
|
175 |
<FIELD name="original">unknown</FIELD> |
|
176 |
</xsl:otherwise> |
|
177 |
</xsl:choose> |
|
178 |
</ROW> |
|
179 |
|
|
180 |
<ROW table="apicollections"> |
|
181 |
<FIELD name="api"> |
|
182 |
<xsl:value-of select="$apiId"/> |
|
183 |
</FIELD> |
|
184 |
<FIELD name="param">format</FIELD> |
|
185 |
<FIELD name="_dnet_resource_identifier_"> |
|
186 |
<xsl:value-of select="concat($apiId, '@@format')"/> |
|
187 |
</FIELD> |
|
188 |
<FIELD name="original">oai_dc</FIELD> |
|
189 |
</ROW> |
|
190 |
|
|
191 |
<ROW table="apicollections"> |
|
192 |
<FIELD name="api"> |
|
193 |
<xsl:value-of select="$apiId"/> |
|
194 |
</FIELD> |
|
195 |
<FIELD name="param">metadata_identifier_path</FIELD> |
|
196 |
<FIELD name="_dnet_resource_identifier_"> |
|
197 |
<xsl:value-of select="concat($apiId, '@@metadata_identifier_path')"/> |
|
198 |
</FIELD> |
|
199 |
<FIELD name="original">//*[local-name()='header']/*[local-name()='identifier']</FIELD> |
|
200 |
<FIELD name="accessparam" type="boolean">false</FIELD> |
|
201 |
</ROW> |
|
202 |
|
|
203 |
<ROW table="organizations"> |
|
204 |
<FIELD name="id"> |
|
205 |
<xsl:value-of select="$organizationId"/> |
|
206 |
</FIELD> |
|
207 |
<FIELD name="_dnet_resource_identifier_"> |
|
208 |
<xsl:value-of select="$organizationId"/> |
|
209 |
</FIELD> |
|
210 |
<FIELD name="legalname"> |
|
211 |
<xsl:value-of select="$oName"/> |
|
212 |
</FIELD> |
|
213 |
<FIELD name="legalshortname"> |
|
214 |
<xsl:value-of select="normalize-space(//oAcronym)"/> |
|
215 |
</FIELD> |
|
216 |
<FIELD name="websiteurl"> |
|
217 |
<xsl:choose> |
|
218 |
<xsl:when test="starts-with(normalize-space(//oUrl), 'http')"> |
|
219 |
<xsl:value-of select="normalize-space(//oUrl)" /> |
|
220 |
</xsl:when> |
|
221 |
<xsl:when test="string-length(normalize-space(//oUrl)) > 0"> |
|
222 |
<xsl:value-of select="concat('http://', normalize-space(//oUrl))" /> |
|
223 |
</xsl:when> |
|
224 |
</xsl:choose> |
|
225 |
</FIELD> |
|
226 |
<FIELD name="countryClass"> |
|
227 |
<xsl:choose> |
|
228 |
<xsl:when test="normalize-space(//cIsoCode) = 'GB'">UK</xsl:when> |
|
229 |
<xsl:otherwise> |
|
230 |
<xsl:value-of select="normalize-space(//cIsoCode)"></xsl:value-of> |
|
231 |
</xsl:otherwise> |
|
232 |
</xsl:choose> |
|
233 |
</FIELD> |
|
234 |
<FIELD name="countryScheme">dnet:countries</FIELD> |
|
235 |
<FIELD name="collectedfrom"> |
|
236 |
<xsl:value-of select="$parentDatasourceId"/> |
|
237 |
</FIELD> |
|
238 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
239 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
240 |
<FIELD name="trust" type="float">0.8</FIELD> |
|
241 |
</ROW> |
|
242 |
|
|
243 |
<ROW table="datasource_organization"> |
|
244 |
<FIELD name="datasource"> |
|
245 |
<xsl:value-of select="$datasourceId"/> |
|
246 |
</FIELD> |
|
247 |
<FIELD name="organization"> |
|
248 |
<xsl:value-of select="$organizationId"/> |
|
249 |
</FIELD> |
|
250 |
<FIELD name="_dnet_resource_identifier_"> |
|
251 |
<xsl:value-of select="concat($datasourceId,'@@',$organizationId)"/> |
|
252 |
</FIELD> |
|
253 |
</ROW> |
|
254 |
|
|
255 |
</ROWS> |
|
256 |
</metadata> |
|
257 |
</record> |
|
258 |
</xsl:template> |
|
259 |
|
|
260 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/tara_contexts.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
3 |
|
|
4 |
<xsl:output indent="yes" /> |
|
5 |
|
|
6 |
<xsl:template match="/"> |
|
7 |
<fundings> |
|
8 |
<fundingtree> |
|
9 |
<funder> |
|
10 |
<id>taraexp_____::tara</id> |
|
11 |
<shortname>TARA</shortname> |
|
12 |
<name>Tara Expeditions Foundation</name> |
|
13 |
<originalname>Fondation Tara Expéditions</originalname> |
|
14 |
<jurisdiction>FR</jurisdiction> |
|
15 |
</funder> |
|
16 |
</fundingtree> |
|
17 |
</fundings> |
|
18 |
</xsl:template> |
|
19 |
</xsl:stylesheet> |
|
20 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/tara_2_db.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" 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:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
6 |
exclude-result-prefixes="xs" version="1.0"> |
|
7 |
|
|
8 |
<xsl:param name="parentDatasourceId" /> |
|
9 |
<xsl:param name="namespacePrefix" /> |
|
10 |
|
|
11 |
<xsl:template match="/"> |
|
12 |
|
|
13 |
<xsl:variable name="funderId" select="string('taraexp_____::tara')" /> |
|
14 |
|
|
15 |
<record xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
16 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
17 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
18 |
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> |
|
19 |
|
|
20 |
<xsl:copy-of select=".//*[local-name()='header']" /> |
|
21 |
|
|
22 |
<metadata> |
|
23 |
<ROWS> |
|
24 |
<xsl:variable name="projectId" select="concat($namespacePrefix, '::', normalize-space(.//column[@name='PROJECT ID']))" /> |
|
25 |
<xsl:variable name="startDate" select=".//column[@name='START DATE']" /> |
|
26 |
<xsl:variable name="endDate" select=".//column[@name='END DATE']" /> |
|
27 |
|
|
28 |
<ROW table="projects"> |
|
29 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$projectId" /></FIELD> |
|
30 |
<FIELD name="id"><xsl:value-of select="$projectId" /></FIELD> |
|
31 |
<FIELD name="code"><xsl:value-of select=".//column[@name='PROJECT ID']" /></FIELD> |
|
32 |
<FIELD name="title"><xsl:value-of select=".//column[@name='PROJECT TITLE']" /></FIELD> |
|
33 |
<FIELD name="jsonextrainfo"><xsl:value-of select=".//column[@name='DM KEYWORDS']" /></FIELD> |
|
34 |
<FIELD name="startdate" type="date" format="yyyy"><xsl:value-of select="$startDate" /></FIELD> |
|
35 |
<FIELD name="enddate" type="date" format="yyyy"><xsl:value-of select="$endDate" /></FIELD> |
|
36 |
<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD> |
|
37 |
<FIELD name="provenanceactionclass">sysimport:crosswalk:entityregistry</FIELD> |
|
38 |
</ROW> |
|
39 |
|
|
40 |
<ROW table="project_fundingpath"> |
|
41 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($funderId, '@@', $projectId)" /></FIELD> |
|
42 |
<FIELD name="funding"><xsl:value-of select="$funderId" /></FIELD> |
|
43 |
<FIELD name="project"><xsl:value-of select="$projectId" /></FIELD> |
|
44 |
<FIELD name="startdate" type="date" format="yyyy"><xsl:value-of select="$startDate" /></FIELD> |
|
45 |
<FIELD name="enddate" type="date" format="yyyy"><xsl:value-of select="$endDate" /></FIELD> |
|
46 |
</ROW> |
|
47 |
|
|
48 |
</ROWS> |
|
49 |
</metadata> |
|
50 |
</record> |
|
51 |
</xsl:template> |
|
52 |
|
|
53 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/snsf_contexts.xsl | ||
---|---|---|
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:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('snsf________')" /> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::SNSF')" /> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<fundings> |
|
11 |
<xsl:variable name="p0" select="normalize-space(.//column[@name='Funding Instrument Hierarchy'])" /> |
|
12 |
<xsl:variable name="p1" select="normalize-space(.//column[@name='Funding Instrument'])" /> |
|
13 |
|
|
14 |
<fundingtree> |
|
15 |
<funder> |
|
16 |
<id><xsl:value-of select="$funderID" /></id> |
|
17 |
<shortname>SNSF</shortname> |
|
18 |
<name>Swiss National Science Foundation</name> |
|
19 |
<jurisdiction>CH</jurisdiction> |
|
20 |
</funder> |
|
21 |
<xsl:if test="string-length($p1) > 0"> |
|
22 |
<xsl:choose> |
|
23 |
<xsl:when test="(string-length($p0) > 0) and (string-length($p1) > 0)"> |
|
24 |
<xsl:variable name="level0" select="concat($funderID, '::', $p0)" /> |
|
25 |
<xsl:variable name="level1" select="concat($funderID, '::', $p0, '::', $p1)" /> |
|
26 |
<funding_level_1> |
|
27 |
<id><xsl:value-of select="$level1" /></id> |
|
28 |
<description><xsl:value-of select="$p1" /></description> |
|
29 |
<name><xsl:value-of select="$p1" /></name> |
|
30 |
<parent> |
|
31 |
<funding_level_0> |
|
32 |
<id><xsl:value-of select="$level0" /></id> |
|
33 |
<description><xsl:value-of select="$p0" /></description> |
|
34 |
<name><xsl:value-of select="$p0" /></name> |
|
35 |
<parent /> |
|
36 |
<class>snsf:fundingStream</class> |
|
37 |
</funding_level_0> |
|
38 |
</parent> |
|
39 |
</funding_level_1> |
|
40 |
</xsl:when> |
|
41 |
<xsl:when test="string-length($p0) > 0"> |
|
42 |
<xsl:variable name="level0" select="concat($funderID, '::', $p0)" /> |
|
43 |
<funding_level_0> |
|
44 |
<id><xsl:value-of select="$level0" /></id> |
|
45 |
<description><xsl:value-of select="$p0" /></description> |
|
46 |
<name><xsl:value-of select="$p0" /></name> |
|
47 |
<parent /> |
|
48 |
<class>snsf:fundingStream</class> |
|
49 |
</funding_level_0> |
|
50 |
</xsl:when> |
|
51 |
<xsl:when test="string-length($p1) > 0"> |
|
52 |
<xsl:variable name="level0" select="concat($funderID, '::', $p1)" /> |
|
53 |
<funding_level_0> |
|
54 |
<id><xsl:value-of select="$level0" /></id> |
|
55 |
<description><xsl:value-of select="$p1" /></description> |
|
56 |
<name><xsl:value-of select="$p1" /></name> |
|
57 |
<parent /> |
|
58 |
<class>snsf:fundingStream</class> |
|
59 |
</funding_level_0> |
|
60 |
</xsl:when> |
|
61 |
<xsl:otherwise><!-- Funding columns are empty --></xsl:otherwise> |
|
62 |
</xsl:choose> |
|
63 |
</xsl:if> |
|
64 |
</fundingtree> |
|
65 |
</fundings> |
|
66 |
</xsl:template> |
|
67 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/nwo_2_db.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" 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:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
6 |
exclude-result-prefixes="xs" version="1.0"> |
|
7 |
|
|
8 |
<xsl:param name="parentDatasourceId" /> |
|
9 |
<xsl:param name="namespacePrefix" /> |
|
10 |
<xsl:param name="quote">"</xsl:param> |
|
11 |
|
|
12 |
<xsl:template name="getJson"> |
|
13 |
<xsl:param name="varName"/> |
|
14 |
<xsl:param name="value"/> |
|
15 |
<xsl:value-of select="concat($quote, $varName, $quote, ':', $quote, $value, $quote)"/> |
|
16 |
</xsl:template> |
|
17 |
|
|
18 |
|
|
19 |
<xsl:template match="/"> |
|
20 |
|
|
21 |
<xsl:variable name="prefix" select="string('nwo_________')" /> |
|
22 |
|
|
23 |
<record xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
24 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
25 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
26 |
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> |
|
27 |
|
|
28 |
<xsl:copy-of select=".//*[local-name()='header']" /> |
|
29 |
|
|
30 |
<metadata> |
|
31 |
<ROWS> |
|
32 |
<xsl:variable name="projectId" select="concat($namespacePrefix, '::', normalize-space(.//column[@name='ProjectID']))" /> |
|
33 |
<xsl:variable name="startDate" select=".//column[@name='Werk startdat']" /> |
|
34 |
<xsl:variable name="endDate" select=".//column[@name='Werk einddat']" /> |
|
35 |
<xsl:variable name="dossiernr"> |
|
36 |
<xsl:call-template name="getJson"> |
|
37 |
<xsl:with-param name="varName">dossiernr</xsl:with-param> |
|
38 |
<xsl:with-param name="value"><xsl:value-of select=".//column[@name='Dossiernr']"/></xsl:with-param> |
|
39 |
</xsl:call-template> |
|
40 |
</xsl:variable> |
|
41 |
<xsl:variable name="NWOgebied"> |
|
42 |
<xsl:call-template name="getJson"> |
|
43 |
<xsl:with-param name="varName">NWOgebied</xsl:with-param> |
|
44 |
<xsl:with-param name="value"><xsl:value-of select=".//column[@name='NWO gebied']"/></xsl:with-param> |
|
45 |
</xsl:call-template> |
|
46 |
</xsl:variable> |
|
47 |
|
|
48 |
<xsl:variable name="jsonExtra"> |
|
49 |
<xsl:value-of select="concat('{', $dossiernr, ',', $NWOgebied, '}')"/> |
|
50 |
</xsl:variable> |
|
51 |
<ROW table="projects"> |
|
52 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$projectId" /></FIELD> |
|
53 |
<FIELD name="id"><xsl:value-of select="$projectId" /></FIELD> |
|
54 |
<FIELD name="code"><xsl:value-of select=".//column[@name='ProjectID']" /></FIELD> |
|
55 |
<FIELD name="title"><xsl:value-of select=".//column[@name='Proj titel']" /></FIELD> |
|
56 |
<FIELD name="startdate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$startDate" /></FIELD> |
|
57 |
<FIELD name="enddate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$endDate" /></FIELD> |
|
58 |
<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD> |
|
59 |
<FIELD name="provenanceactionclass">sysimport:crosswalk:entityregistry</FIELD> |
|
60 |
<FIELD name="optional1"><xsl:value-of select=".//column[@name='Dossiernr']" /></FIELD> |
|
61 |
<FIELD name="optional2"><xsl:value-of select=".//column[@name='NWO gebied']" /></FIELD> |
|
62 |
<FIELD name="jsonextrainfo"><xsl:value-of select="$jsonExtra"/></FIELD> |
|
63 |
</ROW> |
|
64 |
|
|
65 |
<xsl:variable name="funderId" select="concat($prefix, '::NWO')" /> |
|
66 |
<ROW table="project_fundingpath"> |
|
67 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($funderId, '@@', $projectId)" /></FIELD> |
|
68 |
<FIELD name="funding"><xsl:value-of select="$funderId" /></FIELD> |
|
69 |
<FIELD name="project"><xsl:value-of select="$projectId" /></FIELD> |
|
70 |
<FIELD name="startdate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$startDate" /></FIELD> |
|
71 |
<FIELD name="enddate" type="date" format="dd/MM/yyyy"><xsl:value-of select="$endDate" /></FIELD> |
|
72 |
</ROW> |
|
73 |
|
|
74 |
</ROWS> |
|
75 |
</metadata> |
|
76 |
</record> |
|
77 |
</xsl:template> |
|
78 |
|
|
79 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/irdb2db.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
version="1.0"> |
|
4 |
|
|
5 |
<xsl:param name="parentDatasourceId"/> |
|
6 |
<xsl:param name="namespacePrefix"/> |
|
7 |
|
|
8 |
<xsl:template match="/"> |
|
9 |
<xsl:variable name="oName" select="normalize-space(//column[./@name='1'])"/> |
|
10 |
|
|
11 |
<xsl:choose> |
|
12 |
<xsl:when test="string-length($oName) > 0"> |
|
13 |
<record> |
|
14 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
|
15 |
<metadata> |
|
16 |
<xsl:variable name="rid" select="normalize-space(//column[./@name='journalid'])"/> |
|
17 |
<xsl:variable name="datasourceId" select="concat($namespacePrefix, '::', $rid)"/> |
|
18 |
<xsl:variable name="namespacePrefix" select='format-number($rid, "00000")'/> |
|
19 |
|
|
20 |
<ROWS> |
|
21 |
<ROW table="datasources"> |
|
22 |
<FIELD name="id"> |
|
23 |
<xsl:value-of select="$datasourceId"/> |
|
24 |
</FIELD> |
|
25 |
<FIELD name="_dnet_resource_identifier_"> |
|
26 |
<xsl:value-of select="$datasourceId"/> |
|
27 |
</FIELD> |
|
28 |
<FIELD name="officialname"> |
|
29 |
<xsl:value-of select="$oName"/> |
|
30 |
</FIELD> |
|
31 |
<FIELD name="englishname"> |
|
32 |
<xsl:value-of select="$oName"/> |
|
33 |
</FIELD> |
|
34 |
<FIELD name="od_contenttypes"> |
|
35 |
<xsl:value-of select="string('Journal articles')"/> |
|
36 |
</FIELD> |
|
37 |
<FIELD name="websiteurl"> |
|
38 |
<xsl:value-of select="normalize-space(//column[./@name='2'])"/> |
|
39 |
</FIELD> |
|
40 |
<FIELD name="namespaceprefix"> |
|
41 |
<xsl:value-of select="concat('irdb___',$namespacePrefix)"/> |
|
42 |
</FIELD> |
|
43 |
<FIELD name="datasourceclass">pubsrepository::journal</FIELD> |
|
44 |
<FIELD name="collectedfrom"> |
|
45 |
<xsl:value-of select="$parentDatasourceId"/> |
|
46 |
</FIELD> |
|
47 |
</ROW> |
|
48 |
</ROWS> |
|
49 |
</metadata> |
|
50 |
</record> |
|
51 |
</xsl:when> |
|
52 |
<xsl:otherwise> |
|
53 |
<JUNK/> |
|
54 |
</xsl:otherwise> |
|
55 |
</xsl:choose> |
|
56 |
</xsl:template> |
|
57 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/fwf_contexts.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" version="1.0" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('fwf_________')"/> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::FWF')"/> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<xsl:variable name="fundingName" select="normalize-space(.//column[@name='Grant_Type'])"/> |
|
11 |
<xsl:variable name="fundingCode" select="normalize-space(.//column[@name='Grant_Type_Code'])"/> |
|
12 |
<fundingtree> |
|
13 |
<funder> |
|
14 |
<id><xsl:value-of select="$funderID"/></id> |
|
15 |
<shortname>FWF</shortname> |
|
16 |
<name>Austrian Science Fund (FWF)</name> |
|
17 |
<originalname>Fonds zur Förderung der Wissenschaftlichen Forschung</originalname> |
|
18 |
<jurisdiction>AT</jurisdiction> |
|
19 |
</funder> |
|
20 |
<xsl:if test="string-length($fundingCode) > 0"> |
|
21 |
<funding_level_0> |
|
22 |
<id> |
|
23 |
<xsl:value-of select="concat($funderID, '::', $fundingCode)"/> |
|
24 |
</id> |
|
25 |
<description> |
|
26 |
<xsl:value-of select="$fundingName"/> |
|
27 |
</description> |
|
28 |
<name> |
|
29 |
<xsl:value-of select="$fundingName"/> |
|
30 |
</name> |
|
31 |
<parent></parent> |
|
32 |
<class>fwf:programmes</class> |
|
33 |
</funding_level_0> |
|
34 |
</xsl:if> |
|
35 |
</fundingtree> |
|
36 |
|
|
37 |
</xsl:template> |
|
38 |
|
|
39 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/nhmrc_2_db.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
3 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
xmlns:ands="http://ands.org.au/standards/rif-cs/registryObjects"> |
|
5 |
|
|
6 |
<xsl:output indent="yes"/> |
|
7 |
|
|
8 |
<xsl:param name="parentDatasourceId" /> |
|
9 |
|
|
10 |
<xsl:template match="/"> |
|
11 |
<record xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
12 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
13 |
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
14 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> |
|
15 |
|
|
16 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
|
17 |
|
|
18 |
<metadata> |
|
19 |
<ROWS> |
|
20 |
<xsl:for-each select="//ands:registryObject[@group='National Health and Medical Research Council']/ands:activity[@type='grant']"> |
|
21 |
<xsl:variable name="projectId" select="concat('nhmrc_______::', normalize-space(./ands:identifier[@type='nhmrc']))"/> |
|
22 |
<xsl:variable name="fundingId"> |
|
23 |
<xsl:choose> |
|
24 |
<xsl:when test="string-length(./ands:description[@type='fundingScheme']) > 0"> |
|
25 |
<xsl:value-of select="concat('nhmrc_______::NHMRC::', normalize-space(./ands:description[@type='fundingScheme']))"/> |
|
26 |
</xsl:when> |
|
27 |
<xsl:otherwise> |
|
28 |
<xsl:value-of select="string('nhmrc_______::NHMRC')"/> |
|
29 |
</xsl:otherwise> |
|
30 |
</xsl:choose> |
|
31 |
</xsl:variable> |
|
32 |
|
|
33 |
<ROW table="projects"> |
|
34 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$projectId" /></FIELD> |
|
35 |
<FIELD name="id"><xsl:value-of select="$projectId" /></FIELD> |
|
36 |
<FIELD name="code"><xsl:value-of select="normalize-space(.//ands:identifier[@type='nhmrc'])" /></FIELD> |
|
37 |
<FIELD name="title"><xsl:value-of select="./ands:name[@type='primary']/ands:namePart" /></FIELD> |
|
38 |
<FIELD name="websiteurl"><xsl:value-of select="./ands:identifier[@type='purl']"/></FIELD> |
|
39 |
|
|
40 |
<xsl:for-each select="./ands:existenceDates/ands:startDate[@dateFormat='W3CDTF']"> |
|
41 |
<FIELD name="startdate" type="date" format="dd-MM-yyyy"><xsl:value-of select="concat('01-01-', normalize-space(.))" /></FIELD> |
|
42 |
</xsl:for-each> |
|
43 |
<xsl:for-each select="./ands:existenceDates/ands:endDate[@dateFormat='W3CDTF']"> |
|
44 |
<FIELD name="enddate" type="date" format="dd-MM-yyyy"><xsl:value-of select="concat('31-12-', normalize-space(.))" /></FIELD> |
|
45 |
</xsl:for-each> |
|
46 |
|
|
47 |
<xsl:variable name="keywords"> |
|
48 |
<xsl:for-each select="./ands:subject[@type='local']"> |
|
49 |
<xsl:if test="position() != 1">, </xsl:if> |
|
50 |
<xsl:value-of select="."/> |
|
51 |
</xsl:for-each> |
|
52 |
</xsl:variable> |
|
53 |
<FIELD name="keywords"><xsl:value-of select="normalize-space($keywords)" /></FIELD> |
|
54 |
<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD> |
|
55 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
56 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
57 |
</ROW> |
|
58 |
|
|
59 |
<ROW table="project_fundingpath"> |
|
60 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($fundingId, '@@', $projectId)" /></FIELD> |
|
61 |
<FIELD name="funding"><xsl:value-of select="$fundingId" /></FIELD> |
|
62 |
<FIELD name="project"><xsl:value-of select="$projectId" /></FIELD> |
|
63 |
<xsl:for-each select="./ands:existenceDates/ands:startDate[@dateFormat='W3CDTF']"> |
|
64 |
<FIELD name="startdate" type="date" format="dd-MM-yyyy"><xsl:value-of select="concat('01-01-', normalize-space(.))" /></FIELD> |
|
65 |
</xsl:for-each> |
|
66 |
<xsl:for-each select="./ands:existenceDates/ands:endDate[@dateFormat='W3CDTF']"> |
|
67 |
<FIELD name="enddate" type="date" format="dd-MM-yyyy"><xsl:value-of select="concat('31-12-', normalize-space(.))" /></FIELD> |
|
68 |
</xsl:for-each> |
|
69 |
</ROW> |
|
70 |
|
|
71 |
</xsl:for-each> |
|
72 |
</ROWS> |
|
73 |
</metadata> |
|
74 |
</record> |
|
75 |
</xsl:template> |
|
76 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/mestd_contexts.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" version="1.0" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:output indent="yes"/> |
|
7 |
|
|
8 |
<xsl:template match="/"> |
|
9 |
<fundings> |
|
10 |
<fundingtree> |
|
11 |
<funder> |
|
12 |
<id>mestd_______::MESTD</id> |
|
13 |
<shortname>MESTD</shortname> |
|
14 |
<name>Ministry of Education, Science and Technological Development of Republic of Serbia</name> |
|
15 |
<originalname>Ministarstvo Prosvete, Nauke i Tehnološkog Razvoja</originalname> |
|
16 |
<jurisdiction>RS</jurisdiction> |
|
17 |
</funder> |
|
18 |
</fundingtree> |
|
19 |
<fundingtree> |
|
20 |
<funder> |
|
21 |
<id>mestd_______::MESTD</id> |
|
22 |
<shortname>MESTD</shortname> |
|
23 |
<name>Ministry of Education, Science and Technological Development of Republic of Serbia</name> |
|
24 |
<originalname>Ministarstvo Prosvete, Nauke i Tehnološkog Razvoja</originalname> |
|
25 |
<jurisdiction>RS</jurisdiction> |
|
26 |
</funder> |
|
27 |
<funding_level_0> |
|
28 |
<id> |
|
29 |
<xsl:value-of select="concat('mestd_______::MESTD::', normalize-space(//column[./@name='FUNDING STREAM(S)']))"/> |
|
30 |
</id> |
|
31 |
<name> |
|
32 |
<xsl:value-of select="normalize-space(//column[./@name='FUNDING STREAM(S)'])"/> |
|
33 |
</name> |
|
34 |
<description> |
|
35 |
<xsl:value-of select="normalize-space(//column[./@name='FUNDING STREAM(S)'])"/> |
|
36 |
</description> |
|
37 |
<parent></parent> |
|
38 |
<class>mestd:fundingStream</class> |
|
39 |
</funding_level_0> |
|
40 |
</fundingtree> |
|
41 |
|
|
42 |
</fundings> |
|
43 |
</xsl:template> |
|
44 |
</xsl:stylesheet> |
|
45 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-6.0.13/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/openaireMdBuilder.xslt.st | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common" |
|
5 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" |
|
6 |
xmlns:dnet="eu.dnetlib.miscutils.functional.xml.DnetXsltFunctions" |
|
7 |
xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
8 |
exclude-result-prefixes="xsl datetime exslt dnet" |
|
9 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri"> |
|
10 |
|
|
11 |
<xsl:variable name="status" select="/*[local-name() = 'record']/*[local-name() = 'header']/@status" /> |
|
12 |
|
|
13 |
<xsl:template match="/"> |
|
14 |
<oai:record xmlns="http://namespace.openaire.eu/" |
|
15 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
16 |
xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
17 |
xmlns:prov="http://www.openarchives.org/OAI/2.0/provenance" |
|
18 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
19 |
|
|
20 |
<xsl:variable name="datestamp" select="datetime:dateTime()" /> |
|
21 |
|
|
22 |
<oai:header> |
|
23 |
<xsl:if test="\$status"> |
|
24 |
<xsl:attribute name="status" > |
|
25 |
<xsl:value-of select="\$status"/> |
|
26 |
</xsl:attribute> |
|
27 |
</xsl:if> |
|
28 |
<xsl:if test="not(.//dri:objIdentifier)"> |
|
29 |
<dri:objIdentifier><xsl:value-of select="concat('$namespacePrefix$::', dnet:md5($xpath$))"/></dri:objIdentifier> |
|
30 |
</xsl:if> |
|
31 |
<xsl:if test="not(.//dri:recordIdentifier)"> |
|
32 |
<dri:recordIdentifier><xsl:value-of select="$xpath$"/></dri:recordIdentifier> |
|
33 |
</xsl:if> |
|
34 |
<xsl:if test="not(.//dri:dateOfCollection)"> |
|
35 |
<dri:dateOfCollection><xsl:value-of select="\$datestamp"/></dri:dateOfCollection> |
|
36 |
</xsl:if> |
|
37 |
<xsl:if test="not(.//dri:repositoryId)"> |
|
38 |
<dri:repositoryId>$datasourceId$</dri:repositoryId> |
|
39 |
</xsl:if> |
|
40 |
<xsl:if test="not(.//oaf:datasourceprefix)"> |
|
41 |
<oaf:datasourceprefix>$namespacePrefix$</oaf:datasourceprefix> |
|
42 |
</xsl:if> |
|
43 |
|
|
44 |
<xsl:for-each select="/*[local-name() = 'record']/*[local-name() = 'header']/*"> |
|
45 |
<xsl:copy-of select="."/> |
|
46 |
</xsl:for-each> |
|
47 |
</oai:header> |
|
48 |
<xsl:choose> |
|
49 |
<xsl:when test="count(/*[local-name() = 'record']/*[local-name() = 'metadata']) > 0"> |
|
50 |
<xsl:copy-of select="/*[local-name() = 'record']/*[local-name() = 'metadata']"/> |
|
51 |
</xsl:when> |
|
52 |
<xsl:when test="\$status = 'deleted'" /> |
|
53 |
<xsl:otherwise> |
|
54 |
<oai:metadata> |
|
55 |
<xsl:copy-of select="."/> |
|
56 |
</oai:metadata> |
|
57 |
</xsl:otherwise> |
|
58 |
</xsl:choose> |
|
59 |
<xsl:if test="not(\$status) or \$status != 'deleted'"> |
|
60 |
<about> |
|
61 |
<provenance xmlns="http://www.openarchives.org/OAI/2.0/provenance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/provenance http://www.openarchives.org/OAI/2.0/provenance.xsd"> |
|
62 |
<originDescription harvestDate="{\$datestamp}" altered="true"> |
|
63 |
<baseURL>$baseurl$</baseURL> |
|
64 |
<identifier><xsl:value-of select="//*[local-name()='header']/*[local-name()='identifier']"/></identifier> |
|
65 |
<datestamp><xsl:value-of select="//*[local-name()='header']/*[local-name()='datestamp']"/></datestamp> |
|
66 |
<metadataNamespace>$metadatanamespace$</metadataNamespace> |
|
67 |
<xsl:copy-of select="//*[local-name()='provenance']/*[local-name() = 'originDescription']"/> |
|
68 |
</originDescription> |
|
69 |
</provenance> |
|
70 |
<oaf:datainfo> |
|
71 |
<oaf:inferred>$inferred$</oaf:inferred> |
|
72 |
<oaf:deletedbyinference>$deletedbyinference$</oaf:deletedbyinference> |
|
73 |
<oaf:trust>$trust$</oaf:trust> |
Also available in: Unified diff
[maven-release-plugin] copy for tag dnet-openaireplus-workflows-6.0.13