forked from DSpace/DSpace
/
xoai.xml
259 lines (240 loc) · 8.29 KB
/
xoai.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?xml version="1.0" encoding="UTF-8"?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
Developed by DSpace @ Lyncode <dspace@lyncode.com>
-->
<Configuration xmlns="http://www.lyncode.com/XOAIConfiguration"
identation="false" maxListIdentifiersSize="100" maxListRecordsSize="100"
maxListSetsSize="100" stylesheet="static/style.xsl">
<Contexts>
<Context baseurl="request">
<Format refid="oaidc" />
<Format refid="mets" />
<Format refid="xoai" />
<Format refid="didl" />
<Format refid="dim" />
<Format refid="ore" />
<Format refid="rdf" />
<Format refid="etdms" />
<Format refid="mods" />
<Format refid="qdc" />
<Format refid="marc" />
<Format refid="uketd_dc" />
</Context>
<!--
Driver Guidelines:
- http://www.driver-support.eu/documents/DRIVER_Guidelines_v2_Final_2008-11-13.pdf
Page 57 - 58
-->
<Context baseurl="driver">
<!-- Date format, field prefixes, etc are ensured by the transformer -->
<Transformer refid="driverTransformer"/>
<!-- Title : Mandatory -->
<Filter refid="titleexistsFilter" />
<!-- Author : Mandatory -->
<Filter refid="authorexistsFilter"/>
<!-- Possible Document Type -->
<Filter refid="driverdocumenttypeFilter"/>
<!-- dc.rights must contain openAccess token -->
<Filter refid="driveraccessFilter"/>
<!-- Open Access (Downloadable) -->
<Filter refid="bitstreamaccessFilter"/>
<!-- Just an alias, if fact it returns all items within the driver context -->
<Set refid="driverSet" />
<!-- Metadata Formats -->
<Format refid="oaidc"/>
<Format refid="mets" />
<Format refid="didl" />
</Context>
<!--
OpenAIRE Guidelines 1.1:
- http://www.openaire.eu/en/component/attachments/download/79%E2%8C%A9=en
There is a limitation over the embargoedEndDate parameter:
- Predefined DSpace fields don't allow to set this up with a default.
-->
<Context baseurl="openaire">
<!-- Date format, field prefixes, etc are ensured by the transformer -->
<Transformer refid="openaireTransformer" />
<!-- Title : Mandatory -->
<Filter refid="titleexistsFilter" />
<!-- Author : Mandatory -->
<Filter refid="authorexistsFilter"/>
<!-- Possible Document Type (same as Driver)-->
<Filter refid="driverdocumenttypeFilter"/>
<!-- dc.relation must has the specified prefix -->
<Filter refid="openairerelationFilter" />
<!-- Just an alias, if fact it returns all items within the driver context -->
<Set refid="openaireSet" />
<!-- Metadata Formats -->
<Format refid="oaidc" />
<Format refid="mets" />
</Context>
</Contexts>
<Formats>
<Format id="oaidc">
<Prefix>oai_dc</Prefix>
<XSLT>metadataFormats/oai_dc.xsl</XSLT>
<Namespace>http://www.openarchives.org/OAI/2.0/oai_dc/</Namespace>
<SchemaLocation>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</SchemaLocation>
</Format>
<Format id="mets">
<Prefix>mets</Prefix>
<XSLT>metadataFormats/mets.xsl</XSLT>
<Namespace>http://www.loc.gov/METS/</Namespace>
<SchemaLocation>http://www.loc.gov/standards/mets/mets.xsd</SchemaLocation>
</Format>
<!-- Shows the XOAI internal generated XML -->
<Format id="xoai">
<Prefix>xoai</Prefix>
<XSLT>metadataFormats/xoai.xsl</XSLT>
<Namespace>http://www.lyncode.com/xoai</Namespace>
<SchemaLocation>http://www.lyncode.com/schemas/xoai.xsd</SchemaLocation>
</Format>
<Format id="didl">
<Prefix>didl</Prefix>
<XSLT>metadataFormats/didl.xsl</XSLT>
<Namespace>urn:mpeg:mpeg21:2002:02-DIDL-NS</Namespace>
<SchemaLocation>http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-21_schema_files/did/didl.xsd</SchemaLocation>
</Format>
<Format id="dim">
<Prefix>dim</Prefix>
<XSLT>metadataFormats/dim.xsl</XSLT>
<Namespace>http://www.dspace.org/xmlns/dspace/dim</Namespace>
<SchemaLocation>http://www.dspace.org/schema/dim.xsd</SchemaLocation>
</Format>
<Format id="ore">
<Prefix>ore</Prefix>
<XSLT>metadataFormats/ore.xsl</XSLT>
<Namespace>http://www.w3.org/2005/Atom</Namespace>
<SchemaLocation>http://tweety.lanl.gov/public/schemas/2008-06/atom-tron.sch</SchemaLocation>
</Format>
<Format id="rdf">
<Prefix>rdf</Prefix>
<XSLT>metadataFormats/rdf.xsl</XSLT>
<Namespace>http://www.openarchives.org/OAI/2.0/rdf/</Namespace>
<SchemaLocation>http://www.openarchives.org/OAI/2.0/rdf.xsd</SchemaLocation>
</Format>
<Format id="etdms">
<Prefix>etdms</Prefix>
<XSLT>metadataFormats/etdms.xsl</XSLT>
<Namespace>http://www.ndltd.org/standards/metadata/etdms/1.0/</Namespace>
<SchemaLocation>http://www.ndltd.org/standards/metadata/etdms/1.0/etdms.xsd</SchemaLocation>
</Format>
<Format id="mods">
<Prefix>mods</Prefix>
<XSLT>metadataFormats/mods.xsl</XSLT>
<Namespace>http://www.loc.gov/mods/v3</Namespace>
<SchemaLocation>http://www.loc.gov/standards/mods/v3/mods-3-1.xsd</SchemaLocation>
</Format>
<Format id="qdc">
<Prefix>qdc</Prefix>
<XSLT>metadataFormats/qdc.xsl</XSLT>
<Namespace>http://purl.org/dc/terms/</Namespace>
<SchemaLocation>http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd</SchemaLocation>
</Format>
<Format id="marc">
<Prefix>marc</Prefix>
<XSLT>metadataFormats/marc.xsl</XSLT>
<Namespace>http://www.loc.gov/MARC21/slim</Namespace>
<SchemaLocation>http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd</SchemaLocation>
</Format>
<Format id="uketd_dc">
<Prefix>uketd_dc</Prefix>
<XSLT>metadataFormats/uketd_dc.xsl</XSLT>
<Namespace>http://naca.central.cranfield.ac.uk/ethos-oai/2.0/</Namespace>
<SchemaLocation>http://naca.central.cranfield.ac.uk/ethos-oai/2.0/uketd_dc.xsd</SchemaLocation>
</Format>
</Formats>
<Transformers>
<Transformer id="driverTransformer">
<XSLT>transformers/driver.xsl</XSLT>
</Transformer>
<Transformer id="openaireTransformer">
<XSLT>transformers/openaire.xsl</XSLT>
</Transformer>
</Transformers>
<Filters>
<Filter id="authorexistsFilter">
<Class>org.dspace.xoai.filter.DSpaceMetadataExistsFilter</Class>
<Parameter key="fields">
<Value>dc.contributor.author</Value>
</Parameter>
</Filter>
<Filter id="titleexistsFilter">
<Class>org.dspace.xoai.filter.DSpaceMetadataExistsFilter</Class>
<Parameter key="fields">
<Value>dc.title</Value>
</Parameter>
</Filter>
<Filter id="driverdocumenttypeFilter">
<Class>org.dspace.xoai.filter.DSpaceAtLeastOneMetadataFilter</Class>
<Parameter key="field">
<Value>dc.type</Value>
</Parameter>
<Parameter key="operator">
<Value>ends_with</Value>
</Parameter>
<Parameter key="value">
<Value>article</Value>
<Value>bachelorThesis</Value>
<Value>masterThesis</Value>
<Value>doctoralThesis</Value>
<Value>book</Value>
<Value>bookPart</Value>
<Value>review</Value>
<Value>conferenceObject</Value>
<Value>lecture</Value>
<Value>workingPaper</Value>
<Value>preprint</Value>
<Value>report</Value>
<Value>annotation</Value>
<Value>contributionToPeriodical</Value>
<Value>patent</Value>
<Value>other</Value>
</Parameter>
</Filter>
<Filter id="driveraccessFilter">
<Class>org.dspace.xoai.filter.DSpaceAtLeastOneMetadataFilter</Class>
<Parameter key="field">
<Value>dc.rights</Value>
</Parameter>
<Parameter key="operator">
<Value>contains</Value>
</Parameter>
<Parameter key="value">
<Value>open access</Value>
<Value>openAccess</Value>
</Parameter>
</Filter>
<Filter id="bitstreamaccessFilter">
<Class>org.dspace.xoai.filter.DSpaceAuthorizationFilter</Class>
</Filter>
<Filter id="openairerelationFilter">
<Class>org.dspace.xoai.filter.DSpaceAtLeastOneMetadataFilter</Class>
<Parameter key="field">
<Value>dc.relation</Value>
</Parameter>
<Parameter key="operator">
<Value>starts_with</Value>
</Parameter>
<Parameter key="value">
<Value>info:eurepo/grantAgreement/EC/FP</Value>
</Parameter>
</Filter>
</Filters>
<Sets>
<Set id="driverSet">
<Pattern>driver</Pattern>
<Name>Open Access DRIVERset</Name>
<!-- Just an alias -->
</Set>
<Set id="openaireSet">
<Pattern>ec_fundedresources</Pattern>
<Name>EC_fundedresources set</Name>
<!-- Just an alias -->
</Set>
</Sets>
</Configuration>