Revision 56935
Added by Aenne Loehden about 5 years ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/core_springer2oaf.xml | ||
---|---|---|
1 |
<RESOURCE_PROFILE> |
|
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER value="dff3a83e-97a3-4a8b-9e57-7aed12804f30_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/> |
|
4 |
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/> |
|
5 |
<RESOURCE_KIND value="TransformationRuleDSResources"/> |
|
6 |
<RESOURCE_URI value=""/> |
|
7 |
<DATE_OF_CREATION value="2019-07-30T09:21:20+00:00"/> |
|
8 |
</HEADER> |
|
9 |
<BODY> |
|
10 |
<CONFIGURATION> |
|
11 |
<IMPORTED/> |
|
12 |
<SCRIPT> |
|
13 |
<TITLE>core_springer2oaf</TITLE> |
|
14 |
<CODE> |
|
15 |
|
|
16 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
17 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
18 |
xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
19 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
20 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:date="http://exslt.org/dates-and-times" |
|
21 |
xmlns:TransformationFunction="eu.dnetlib.data.collective.transformation.core.xsl.ext.TransformationFunctionProxy" |
|
22 |
extension-element-prefixes="date TransformationFunction" exclude-result-prefixes="xs TransformationFunction" version="2.0"> |
|
23 |
|
|
24 |
<xsl:output omit-xml-declaration="yes" indent="yes"/> |
|
25 |
<xsl:param name="varOfficialName"/> |
|
26 |
<xsl:param name="varDataSourceId"/> |
|
27 |
<xsl:variable name="tf" select="TransformationFunction:getInstance()"/> |
|
28 |
|
|
29 |
<xsl:param name="varFP7" select = "'corda_______::'"/> |
|
30 |
<xsl:param name="varH2020" select = "'corda__h2020::'"/> |
|
31 |
<xsl:param name="varAKA" select = "'aka_________::'"/> |
|
32 |
<xsl:param name="varARC" select = "'arc_________::'"/> |
|
33 |
<xsl:param name="varCONICYT" select = "'conicytf____::'"/> |
|
34 |
<xsl:param name="varDFG" select = "'dfgf________::'"/> |
|
35 |
<xsl:param name="varFCT" select = "'fct_________::'"/> |
|
36 |
<xsl:param name="varFWF" select = "'fwf_________::'"/> |
|
37 |
<xsl:param name="varHRZZ" select = "'irb_hr______::'"/> |
|
38 |
<xsl:param name="varMESTD" select = "'mestd_______::'"/> |
|
39 |
<xsl:param name="varMZOS" select = "'irb_hr______::'"/> |
|
40 |
<xsl:param name="varNHMRC" select = "'nhmrc_______::'"/> |
|
41 |
<xsl:param name="varNIH" select = "'nih_________::'"/> |
|
42 |
<xsl:param name="varNSF" select = "'nsf_________::'"/> |
|
43 |
<xsl:param name="varNWO" select = "'nwo_________::'"/> |
|
44 |
<xsl:param name="varRCUK" select = "'rcuk________::'"/> |
|
45 |
<xsl:param name="varSFI" select ="'sfi_________::'"/> |
|
46 |
<xsl:param name="varSGOV" select = "'sgov________::'"/> |
|
47 |
<xsl:param name="varSNSF" select = "'snsf________::'"/> |
|
48 |
<xsl:param name="varTARA" select = "'taraexp_____::'"/> |
|
49 |
<xsl:param name="varTUBITAK" select = "'tubitakf____::'"/> |
|
50 |
<xsl:param name="varWT" select = "'wt__________::'"/> |
|
51 |
|
|
52 |
<xsl:variable name="issn" select=".//ISSN"/> |
|
53 |
<xsl:variable name="volume" select=".//volume"/> |
|
54 |
<xsl:variable name="licence" select=".//license/URL"/> |
|
55 |
<xsl:variable name="issue" select=".//issue"/> |
|
56 |
<xsl:variable name="spage" select="normalize-space(tokenize(.//page,'-')[1])"/> |
|
57 |
<xsl:variable name="epage" select="normalize-space(tokenize(.//page,'-')[2])"/> |
|
58 |
<xsl:template match="publisher"> |
|
59 |
<dc:publisher> |
|
60 |
<xsl:value-of select="."/> |
|
61 |
</dc:publisher> |
|
62 |
</xsl:template> |
|
63 |
<xsl:template match="license"> |
|
64 |
<dc:rights> |
|
65 |
<xsl:value-of select="./URL"/> |
|
66 |
</dc:rights> |
|
67 |
<oaf:license> |
|
68 |
<xsl:value-of select="./URL"/> |
|
69 |
</oaf:license> |
|
70 |
</xsl:template> |
|
71 |
<xsl:template name="terminate"> |
|
72 |
<xsl:message terminate="yes"> |
|
73 |
record is not compliant, transformation is interrupted. |
|
74 |
</xsl:message> |
|
75 |
</xsl:template> |
|
76 |
<xsl:template match="/"> |
|
77 |
<xsl:choose> |
|
78 |
<xsl:when test=".//error or string-length(.//title) = 0"> |
|
79 |
<xsl:call-template name="terminate"/> |
|
80 |
</xsl:when> |
|
81 |
<xsl:otherwise> |
|
82 |
<record> |
|
83 |
<header> |
|
84 |
<xsl:copy-of select="//*[local-name() = 'header']/*" copy-namespaces="no"/> |
|
85 |
<dr:dateOfTransformation> |
|
86 |
<xsl:value-of select="date:date-time()"/> |
|
87 |
</dr:dateOfTransformation> |
|
88 |
</header> |
|
89 |
<metadata> |
|
90 |
<dc:language>eng</dc:language> |
|
91 |
<oaf:accessrights>OPEN</oaf:accessrights> |
|
92 |
<oaf:hostedBy id="openaire____::SpringerOA" |
|
93 |
name="SpringerOpen"/> |
|
94 |
<oaf:collectedFrom> |
|
95 |
<xsl:attribute name="name"> |
|
96 |
<xsl:value-of select="$varOfficialName"/> |
|
97 |
</xsl:attribute> |
|
98 |
<xsl:attribute name="id"> |
|
99 |
<xsl:value-of select="$varDataSourceId"/> |
|
100 |
</xsl:attribute> |
|
101 |
</oaf:collectedFrom> |
|
102 |
|
|
103 |
<xsl:apply-templates select=".//*"/> |
|
104 |
</metadata> |
|
105 |
<xsl:copy-of select="//*[local-name() = 'about']/*" copy-namespaces="no"/> |
|
106 |
</record> |
|
107 |
</xsl:otherwise> |
|
108 |
</xsl:choose> |
|
109 |
<!-- <xsl:if test="not(.//error) and string-length(.//title) > 0"> |
|
110 |
<record> |
|
111 |
<header> |
|
112 |
<xsl:copy-of select="//*[local-name() = 'header']/*" copy-namespaces="no"/> |
|
113 |
<dr:dateOfTransformation> |
|
114 |
<xsl:value-of select="date:date-time()"/> |
|
115 |
</dr:dateOfTransformation> |
|
116 |
</header> |
|
117 |
<metadata> |
|
118 |
<dc:language>eng</dc:language> |
|
119 |
<oaf:accessrights>OPEN</oaf:accessrights> |
|
120 |
<oaf:hostedBy id="openaire____::SpringerOA" |
|
121 |
name="SpringerOpen"/> |
|
122 |
<oaf:collectedFrom> |
|
123 |
<xsl:attribute name="name"> |
|
124 |
<xsl:value-of select="$varOfficialName"/> |
|
125 |
</xsl:attribute> |
|
126 |
<xsl:attribute name="id"> |
|
127 |
<xsl:value-of select="$varDataSourceId"/> |
|
128 |
</xsl:attribute> |
|
129 |
</oaf:collectedFrom> |
|
130 |
|
|
131 |
<xsl:apply-templates select=".//*"/> |
|
132 |
</metadata> |
|
133 |
<xsl:copy-of select="//*[local-name() = 'about']/*" copy-namespaces="no"/> |
|
134 |
</record> |
|
135 |
</xsl:if> |
|
136 |
--> |
|
137 |
</xsl:template> |
|
138 |
|
|
139 |
|
|
140 |
<xsl:template match="title"> |
|
141 |
<dc:title> |
|
142 |
<xsl:value-of select="normalize-space(.)"/> |
|
143 |
</dc:title> |
|
144 |
</xsl:template> |
|
145 |
|
|
146 |
<xsl:template match="author[string-length(./family) + string-length(./given) > 0]"> |
|
147 |
<dc:creator> |
|
148 |
<xsl:value-of select="concat(./family, ', ', ./given)"/> |
|
149 |
</dc:creator> |
|
150 |
</xsl:template> |
|
151 |
|
|
152 |
<xsl:template match="created"> |
|
153 |
<xsl:variable name="d"> |
|
154 |
<xsl:variable name="date" select=".//array"/> |
|
155 |
|
|
156 |
<xsl:value-of select="string-join(($date[1], $date[2], $date[3]), '-')"/> |
|
157 |
</xsl:variable> |
|
158 |
|
|
159 |
<dc:date> |
|
160 |
<xsl:value-of select="$d"/> |
|
161 |
</dc:date> |
|
162 |
|
|
163 |
|
|
164 |
</xsl:template> |
|
165 |
|
|
166 |
<xsl:template match="resource/DOI"> |
|
167 |
<dc:identifier> |
|
168 |
<xsl:value-of select="concat('http://dx.doi.org/', .)"/> |
|
169 |
</dc:identifier> |
|
170 |
<oaf:identifier identifierType="doi"> |
|
171 |
<xsl:value-of select="."/> |
|
172 |
</oaf:identifier> |
|
173 |
</xsl:template> |
|
174 |
|
|
175 |
<xsl:template match="type"> |
|
176 |
<xsl:choose> |
|
177 |
<xsl:when test=". eq 'conference-paper'"> |
|
178 |
<dc:type> |
|
179 |
<xsl:value-of select="string('info:eu-repo/semantics/conferenceObject')"/> |
|
180 |
</dc:type> |
|
181 |
<dc:type> |
|
182 |
<xsl:value-of select="string('conference paper')"/> |
|
183 |
</dc:type> |
|
184 |
<xsl:variable name='varCobjCategory' select="'0004'" /> |
|
185 |
<xsl:variable name='varSuperType' select="TransformationFunction:convertString($tf, $varCobjCategory, 'SuperTypes')" /> |
|
186 |
<dr:CobjCategory> |
|
187 |
<xsl:attribute name="type" select="$varSuperType"/> |
|
188 |
<xsl:value-of select="$varCobjCategory" /> |
|
189 |
</dr:CobjCategory> |
|
190 |
</xsl:when> |
|
191 |
<xsl:when test=". eq 'journal-article'"> |
|
192 |
<dc:type> |
|
193 |
<xsl:value-of select="string('info:eu-repo/semantics/article')"/> |
|
194 |
</dc:type> |
|
195 |
<dc:type> |
|
196 |
<xsl:value-of select="string('journal article')"/> |
|
197 |
</dc:type> |
|
198 |
<xsl:variable name='varCobjCategory' select="'0001'" /> |
|
199 |
<xsl:variable name='varSuperType' select="TransformationFunction:convertString($tf, $varCobjCategory, 'SuperTypes')" /> |
|
200 |
<dr:CobjCategory> |
|
201 |
<xsl:attribute name="type" select="$varSuperType"/> |
|
202 |
<xsl:value-of select="$varCobjCategory" /> |
|
203 |
</dr:CobjCategory> |
|
204 |
<xsl:choose> |
|
205 |
<xsl:when test="count($issn) > 0"> |
|
206 |
<oaf:journal issn="{$issn[1]}" |
|
207 |
vol="{$volume}" |
|
208 |
iss="{$issue}" |
|
209 |
sp="{$spage}" |
|
210 |
ep="{$epage}" |
|
211 |
> |
|
212 |
<xsl:value-of select="normalize-space(../container-title)"/> |
|
213 |
</oaf:journal> |
|
214 |
</xsl:when> |
|
215 |
</xsl:choose> |
|
216 |
|
|
217 |
</xsl:when> |
|
218 |
<xsl:when test=". eq book-chapter"> |
|
219 |
<dc:type> |
|
220 |
<xsl:value-of select="string('info:eu-repo/semantics/bookPart')"/> |
|
221 |
</dc:type> |
|
222 |
<dc:type> |
|
223 |
<xsl:value-of select="string('book chapter')"/> |
|
224 |
</dc:type> |
|
225 |
<dc:source> |
|
226 |
<xsl:value-of select="../container-title"/> |
|
227 |
</dc:source> |
|
228 |
<xsl:variable name='varCobjCategory' select="'0013'" /> |
|
229 |
<xsl:variable name='varSuperType' select="TransformationFunction:convertString($tf, $varCobjCategory, 'SuperTypes')" /> |
|
230 |
<dr:CobjCategory> |
|
231 |
<xsl:attribute name="type" select="$varSuperType"/> |
|
232 |
<xsl:value-of select="$varCobjCategory" /> |
|
233 |
</dr:CobjCategory> |
|
234 |
</xsl:when> |
|
235 |
|
|
236 |
</xsl:choose> |
|
237 |
</xsl:template> |
|
238 |
|
|
239 |
|
|
240 |
|
|
241 |
<xsl:template match="subject"> |
|
242 |
<dc:subject> |
|
243 |
<xsl:value-of select="."/> |
|
244 |
</dc:subject> |
|
245 |
</xsl:template> |
|
246 |
|
|
247 |
|
|
248 |
<xsl:template match="funder[./award]"> |
|
249 |
<xsl:choose> |
|
250 |
<!-- EC FP7 --> |
|
251 |
<xsl:when test="./DOI eq '10.13039/100011102' or ./name = ('European Union´s Seventh Framework Programme', 'European Commission framework seven', 'Seventh Framework Programme', 'FP7')"> |
|
252 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))[matches(., '.*\d{6}.*')]"> |
|
253 |
<oaf:project> |
|
254 |
<xsl:value-of select="concat($varFP7, replace(., '.*(\d{6}).*', '$1'))"/> |
|
255 |
</oaf:project> |
|
256 |
</xsl:for-each> |
|
257 |
</xsl:when> |
|
258 |
<!-- EC H2020 --> |
|
259 |
<xsl:when test="./DOI eq '10.13039/100010661' or ./name = ('Horizon 2020', 'H2020')"> |
|
260 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))[matches(., '.*\d{6}.*')]"> |
|
261 |
<oaf:project> |
|
262 |
<xsl:value-of select="concat($varH2020, replace(., '.*(\d{6}).*', '$1'))"/> |
|
263 |
</oaf:project> |
|
264 |
</xsl:for-each> |
|
265 |
</xsl:when> |
|
266 |
<!-- AKA --> |
|
267 |
<xsl:when test="./DOI eq '10.13039/501100002341' or ./name = ('Suomen Akatemia', 'Finlands Akademi', 'Academy of Finland', 'AKA')"> |
|
268 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
269 |
<oaf:project> |
|
270 |
<xsl:value-of select="concat($varAKA, .)"/> |
|
271 |
</oaf:project> |
|
272 |
</xsl:for-each> |
|
273 |
</xsl:when> |
|
274 |
<!-- ARC --> |
|
275 |
<xsl:when test="./DOI eq '10.13039/501100000923' or ./name = ('Australian Research Council', 'ARC')"> |
|
276 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
277 |
<oaf:project> |
|
278 |
<xsl:value-of select="concat($varARC, .)"/> |
|
279 |
</oaf:project> |
|
280 |
</xsl:for-each> |
|
281 |
</xsl:when> |
|
282 |
<!-- CONICYT --> |
|
283 |
<xsl:when test="./DOI eq '10.13039/501100002848' or ./name = ('Comisión Nacional de Investigación Científica y Tecnológica', 'CONICYT')"> |
|
284 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
285 |
<oaf:project> |
|
286 |
<xsl:value-of select="concat($varCONICYT, .)"/> |
|
287 |
</oaf:project> |
|
288 |
</xsl:for-each> |
|
289 |
</xsl:when> |
|
290 |
<!-- DFG --> |
|
291 |
<xsl:when test="./DOI eq '10.13039/501100001659' or ./name = ('Deutsche Forschungsgemeinschaft', 'Deutsche Forschungsgemeinschaft (DE)', 'DFG')"> |
|
292 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
293 |
<oaf:project> |
|
294 |
<xsl:value-of select="concat($varDFG, .)"/> |
|
295 |
</oaf:project> |
|
296 |
</xsl:for-each> |
|
297 |
</xsl:when> |
|
298 |
<!-- FCT --> |
|
299 |
<xsl:when test="./DOI eq '10.13039/501100001871' or ./name = ('Fundação para a Ciência e a Tecnologia', 'FCT')"> |
|
300 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
301 |
<oaf:project> |
|
302 |
<xsl:value-of select="concat($varFCT, .)"/> |
|
303 |
</oaf:project> |
|
304 |
</xsl:for-each> |
|
305 |
</xsl:when> |
|
306 |
<!-- FWF --> |
|
307 |
<xsl:when test="./DOI eq '10.13039/501100002428' or ./name = ('Austrian Science Fund', 'FWF')"> |
|
308 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
309 |
<oaf:project> |
|
310 |
<xsl:value-of select="concat($varFWF, .)"/> |
|
311 |
</oaf:project> |
|
312 |
</xsl:for-each> |
|
313 |
</xsl:when> |
|
314 |
<!-- MESTD --> |
|
315 |
<xsl:when test="./DOI eq '10.13039/501100004564' or ./name = ('Ministarstvo Prosvete, Nauke i Tehnološkog Razvoja', 'MESTD')"> |
|
316 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
317 |
<oaf:project> |
|
318 |
<xsl:value-of select="concat($varMESTD, .)"/> |
|
319 |
</oaf:project> |
|
320 |
</xsl:for-each> |
|
321 |
</xsl:when> |
|
322 |
<!-- MZOS --> |
|
323 |
<xsl:when test="./DOI eq '10.13039/501100006588' or ./name = ('Ministarstvo Znanosti, Obrazovanja i Sporta', 'Ministry of Science, Education and Sports', 'MZOS')"> |
|
324 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
325 |
<oaf:project> |
|
326 |
<xsl:value-of select="concat($varMZOS, .)"/> |
|
327 |
</oaf:project> |
|
328 |
</xsl:for-each> |
|
329 |
</xsl:when> |
|
330 |
<!-- NHMRC --> |
|
331 |
<xsl:when test="./DOI eq '10.13039/501100000925' or ./name = ('National Health and Medical Research Council (NHMRC) of Australia', 'National Health and Medical Research Council of Australia', 'NHMRC')"> |
|
332 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
333 |
<oaf:project> |
|
334 |
<xsl:value-of select="concat($varNHMRC, .)"/> |
|
335 |
</oaf:project> |
|
336 |
</xsl:for-each> |
|
337 |
</xsl:when> |
|
338 |
<!-- NIH --> |
|
339 |
<xsl:when test="./DOI eq '10.13039/100000002' or ./name = ('National Institutes of Health', 'NIH')"> |
|
340 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
341 |
<oaf:project> |
|
342 |
<xsl:value-of select="concat($varNIH, .)"/> |
|
343 |
</oaf:project> |
|
344 |
</xsl:for-each> |
|
345 |
</xsl:when> |
|
346 |
<!-- NSF --> |
|
347 |
<xsl:when test="./DOI eq '10.13039/100000001' or ./name = ('National Science Foundation', 'NSF')"> |
|
348 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
349 |
<oaf:project> |
|
350 |
<xsl:value-of select="concat($varNSF, .)"/> |
|
351 |
</oaf:project> |
|
352 |
</xsl:for-each> |
|
353 |
</xsl:when> |
|
354 |
<!-- NWO --> |
|
355 |
<xsl:when test="./DOI eq '10.13039/501100003246' or ./name = ('Netherlands Organisation for Scientific Research', 'Nederlandse Organisatie voor Wetenschappelijk Onderzoek', 'NWO')"> |
|
356 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
357 |
<oaf:project> |
|
358 |
<xsl:value-of select="concat($varNWO, .)"/> |
|
359 |
</oaf:project> |
|
360 |
</xsl:for-each> |
|
361 |
</xsl:when> |
|
362 |
<!-- RCUK --> |
|
363 |
<xsl:when test="./DOI eq '10.13039/501100000690' or ./name = ('Research Councils UK', 'RCUK')"> |
|
364 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
365 |
<oaf:project> |
|
366 |
<xsl:value-of select="concat($varRCUK, .)"/> |
|
367 |
</oaf:project> |
|
368 |
</xsl:for-each> |
|
369 |
</xsl:when> |
|
370 |
<!-- SFI --> |
|
371 |
<xsl:when test="./DOI eq '10.13039/501100001602' or ./name = ('SFI - Science Foundation Ireland', 'Science Foundation Ireland', 'SFI')"> |
|
372 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
373 |
<oaf:project> |
|
374 |
<xsl:value-of select="concat($varSFI, .)"/> |
|
375 |
</oaf:project> |
|
376 |
</xsl:for-each> |
|
377 |
</xsl:when> |
|
378 |
<!-- SGOV --> |
|
379 |
<xsl:when test="./DOI eq '' or ./name = ('Gobierno de Espana', 'SGOV')"> |
|
380 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
381 |
<oaf:project> |
|
382 |
<xsl:value-of select="concat($varSGOV, .)"/> |
|
383 |
</oaf:project> |
|
384 |
</xsl:for-each> |
|
385 |
</xsl:when> |
|
386 |
<!-- SNSF --> |
|
387 |
<xsl:when test="./DOI eq '10.13039/501100001711' or ./name = ('Swiss National Science Foundation', 'Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung', 'SNSF')"> |
|
388 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
389 |
<oaf:project> |
|
390 |
<xsl:value-of select="concat($varSNSF, .)"/> |
|
391 |
</oaf:project> |
|
392 |
</xsl:for-each> |
|
393 |
</xsl:when> |
|
394 |
<!-- TARA --> |
|
395 |
<xsl:when test="./name = ('Fondation Tara Expéditions', 'TARA')"> |
|
396 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
397 |
<oaf:project> |
|
398 |
<xsl:value-of select="concat($varTARA, .)"/> |
|
399 |
</oaf:project> |
|
400 |
</xsl:for-each> |
|
401 |
</xsl:when> |
|
402 |
<xsl:when test="./DOI eq '10.13039/501100004410' or ./name = ('Türkiye Bilimsel ve Teknolojik Araştırma Kurumu', 'Turkish National Science and Research Council', 'TUBITAK')"> |
|
403 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
404 |
<oaf:project> |
|
405 |
<xsl:value-of select="concat($varTUBITAK, .)"/> |
|
406 |
</oaf:project> |
|
407 |
</xsl:for-each> |
|
408 |
</xsl:when> |
|
409 |
<xsl:when test="./DOI eq '10.13039/100004440' or ./name = ('Wellcome Trust', 'WT')"> |
|
410 |
<xsl:for-each select="distinct-values(tokenize(string-join(./award, ', '), '\s*,\s*'))"> |
|
411 |
<oaf:project> |
|
412 |
<xsl:value-of select="concat($varWT, .)"/> |
|
413 |
</oaf:project> |
|
414 |
</xsl:for-each> |
|
415 |
</xsl:when> |
|
416 |
</xsl:choose> |
|
417 |
</xsl:template> |
|
418 |
|
|
419 |
<!-- ToDo: Extend with new templates for additional types of publication; Scrape ISBNs from DOIs and put into container; Funding: Take care of European Research Council ERC and double funder blocks; Perhaps add oaf:fulltext for records with creative commons license (>30K) (fulltexts seem to be already downloaded, though, on prod files_rsync API) --> |
|
420 |
|
|
421 |
<xsl:template match="* | @*"/> |
|
422 |
|
|
423 |
</xsl:stylesheet> |
|
424 |
|
|
425 |
|
|
426 |
|
|
427 |
|
|
428 |
|
|
429 |
|
|
430 |
|
|
431 |
</CODE> |
|
432 |
</SCRIPT> |
|
433 |
</CONFIGURATION> |
|
434 |
<STATUS/> |
|
435 |
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS> |
|
436 |
</BODY> |
|
437 |
</RESOURCE_PROFILE> |
Also available in: Unified diff
publication identifiers rid of funder DOIs