Revision 57051
Added by Michele Artini over 4 years ago
pmf2oaidc.xml | ||
---|---|---|
1 | 1 |
<RESOURCE_PROFILE> |
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER value="23ecba9f-f152-498e-b639-2ac8022865be_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/> |
|
4 |
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/> |
|
5 |
<RESOURCE_KIND value="TransformationRuleDSResources"/> |
|
6 |
<RESOURCE_URI value=""/> |
|
7 |
<DATE_OF_CREATION value="2019-09-06T12:45:47+00:00"/> |
|
8 |
</HEADER> |
|
9 |
<BODY> |
|
10 |
<CONFIGURATION> |
|
11 |
<SOURCE_METADATA_FORMAT interpretation="cleaned" layout="store" name="pmf"/> |
|
12 |
<SINK_METADATA_FORMAT name="oai_dc"/> |
|
13 |
<IMPORTED/> |
|
14 |
<SCRIPT> |
|
15 |
<TITLE>PMF to OAI_DC</TITLE> |
|
16 |
<CODE> |
|
17 |
</CODE> |
|
18 |
</SCRIPT> |
|
19 |
</CONFIGURATION> |
|
20 |
<STATUS/> |
|
21 |
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS> |
|
22 |
</BODY> |
|
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER |
|
4 |
value="23ecba9f-f152-498e-b639-2ac8022865be_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU=" /> |
|
5 |
<RESOURCE_TYPE value="TransformationRuleDSResourceType" /> |
|
6 |
<RESOURCE_KIND value="TransformationRuleDSResources" /> |
|
7 |
<RESOURCE_URI value="" /> |
|
8 |
<DATE_OF_CREATION value="2019-09-06T12:45:47+00:00" /> |
|
9 |
</HEADER> |
|
10 |
<BODY> |
|
11 |
<CONFIGURATION> |
|
12 |
<SOURCE_METADATA_FORMAT interpretation="final" |
|
13 |
layout="oai" name="native" /> |
|
14 |
<SINK_METADATA_FORMAT name="oai_dc" /> |
|
15 |
<IMPORTED /> |
|
16 |
<SCRIPT> |
|
17 |
<TITLE>native to OAI_DC</TITLE> |
|
18 |
<CODE> |
|
19 |
<xsl:stylesheet version="2.0" |
|
20 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
21 |
xmlns:dnet="eu.dnetlib.data.utils.XsltFunctions" |
|
22 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" |
|
23 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
24 |
|
|
25 |
exclude-result-prefixes="xsl dnet oai"> |
|
26 |
|
|
27 |
<xsl:output method="xml" encoding="UTF-8" |
|
28 |
omit-xml-declaration="yes" /> |
|
29 |
|
|
30 |
<xsl:template match="/"> |
|
31 |
<xsl:for-each select="//record"> |
|
32 |
<oai_dc:dc |
|
33 |
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" |
|
34 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
35 |
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> |
|
36 |
|
|
37 |
<dc:title> |
|
38 |
<xsl:value-of select="./title" /> |
|
39 |
</dc:title> |
|
40 |
<xsl:for-each select="./creators/creator"> |
|
41 |
<dc:creator> |
|
42 |
<xsl:value-of select="." /> |
|
43 |
</dc:creator> |
|
44 |
</xsl:for-each> |
|
45 |
<xsl:for-each select="./contributors/contributor"> |
|
46 |
<dc:contributor> |
|
47 |
<xsl:value-of select="." /> |
|
48 |
</dc:contributor> |
|
49 |
</xsl:for-each> |
|
50 |
<dc:publisher> |
|
51 |
<xsl:value-of select="./publisher" /> |
|
52 |
</dc:publisher> |
|
53 |
<dc:description> |
|
54 |
<xsl:value-of select="./abstract" /> |
|
55 |
</dc:description> |
|
56 |
<xsl:for-each select="./subjects/subject"> |
|
57 |
<dc:subject> |
|
58 |
<xsl:value-of select="." /> |
|
59 |
</dc:subject> |
|
60 |
</xsl:for-each> |
|
61 |
<dc:date> |
|
62 |
<xsl:value-of select="./date" /> |
|
63 |
</dc:date> |
|
64 |
<dc:language> |
|
65 |
<xsl:value-of select="./language" /> |
|
66 |
</dc:language> |
|
67 |
<dc:type> |
|
68 |
<xsl:value-of select="./type" /> |
|
69 |
</dc:type> |
|
70 |
<dc:rights> |
|
71 |
<xsl:value-of select="./bestRights" /> |
|
72 |
</dc:rights> |
|
73 |
|
|
74 |
<dc:identifier> |
|
75 |
<xsl:value-of select="concat('people:',./identifier)" /> |
|
76 |
</dc:identifier> |
|
77 |
<xsl:for-each select="./dois/doi"> |
|
78 |
<dc:identifier> |
|
79 |
<xsl:value-of select="concat('doi:',.)" /> |
|
80 |
</dc:identifier> |
|
81 |
</xsl:for-each> |
|
82 |
<xsl:for-each select="./urls/url"> <!-- ATTENZIONE ALLE URL CON GLI ACCESS RIGHTS NON CONCORDI CON BEST RIGHTS --> |
|
83 |
<dc:identifier> |
|
84 |
<xsl:value-of select="." /> |
|
85 |
</dc:identifier> |
|
86 |
</xsl:for-each> |
|
87 |
<xsl:for-each select="./projects/project"> |
|
88 |
<dc:relation> |
|
89 |
<xsl:value-of select="concat('info:eu-repo/grantAgreement/',./funder,'/',./program,'/',./code,'/',./jurisdiction,'/',./name,'/',./acronym)" /> |
|
90 |
</dc:relation> |
|
91 |
</xsl:for-each> |
|
92 |
|
|
93 |
</oai_dc:dc> |
|
94 |
</xsl:for-each> |
|
95 |
</xsl:template> |
|
96 |
</xsl:stylesheet> |
|
97 |
</CODE> |
|
98 |
</SCRIPT> |
|
99 |
</CONFIGURATION> |
|
100 |
<STATUS /> |
|
101 |
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS> |
|
102 |
</BODY> |
|
23 | 103 |
</RESOURCE_PROFILE> |
Also available in: Unified diff