added files for OAI-PMH example
[idzebra-moved-to-github.git] / examples / oai-pmh / conf / explain.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- $Id: explain.xml,v 1.1 2008-02-01 09:45:17 marc Exp $ -->
4
5 <!-- this file configures the SRU/SRW explain response -->
6 <!-- see: http://explain.z3950.org/dtd/commentary.html -->
7 <!-- validate this using zeerex-2.0.xsd -->
8 <!-- Extensions see: http://explain.z3950.org/dtd/extensions.html -->
9
10 <explain xmlns="http://explain.z3950.org/dtd/2.0/">
11
12   <serverInfo protocol="SRW/SRU/Z39.50">
13
14     <host>localhost</host>
15
16     <port>9999</port>
17
18     <!-- <database numRecs="1314" lastUpdate="2006-03-15 09-05-33">
19          Default</database> -->
20     <database>Default</database>
21
22     <!--
23         <authentication>
24         <user>azaroth</user>
25         <group>agroup</group>
26         <password>squirrelfish</password>
27         </authentication>
28     -->
29   </serverInfo>
30
31   <databaseInfo>
32
33     <title lang="en" primary="true">OAI record  SRU/SRW/Z39.50 server</title>
34
35     <description lang="en" primary="true">
36       OAI harvested article and preprint metadata records 
37     </description>
38
39     <author>
40       Marc Cromme, Index Data Aps, 
41       http://www.indexdata.dk
42     </author>
43
44     <contact>Marc Cromme, marc(at)indexdata(dot)com</contact>
45
46     <!--<langUsage codes="en fr">
47         The records are in English and French.
48         </langUsage>  -->
49
50     <history>
51       Part of the open source Zebra information retrieval database
52       example configurations, see http://www.indexdata.com/zebra
53     </history>
54
55     <implementation  identifier="zebra" version="2.0">
56       <title>Index Data YAZ/ZEBRA http://www.indexdata.dk/zebra</title>
57     </implementation>
58     
59     <links> 
60       <link type="z39.50">http://localhost:9999</link>
61       <link type="srw">http://localhost:9999</link>
62       <link type="sru">http://localhost:9999</link>
63     </links>
64     
65   </databaseInfo>
66
67   <!--
68   <metaInfo>
69     <dateModified>2002-03-29 19:00:00</dateModified>
70     <aggregatedFrom> z39.50r://gondolin.hist.liv.ac.uk:210/IR-Explain-1?
71                    id=ghlau-1;esn=F;rs=XML </aggregatedFrom>
72     <dateAggregated>2002-03-30 06:30:00</dateAggregated>
73   </metaInfo>
74   -->
75
76
77   <indexInfo>
78     <set name="cql" identifier="info:srw/cql-context-set/1/cql-v1.1">
79       <title>CQL Standard Set</title>
80     </set>
81     <set name="rec" identifier="info:srw/cql-context-set/2/rec-1.0">
82       <title>Record Standard Set</title>
83     </set>
84     <set name="oai" identifier="info:srw/cql-context-set/1/oai-v1.1">
85       <title>Open Archive Metadata Set</title>
86     </set>
87     <set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1">
88       <title>Dublin Core Set</title>
89     </set>
90
91     <!-- CQL standard index -->
92     <index search="true" scan="true" sort="false">
93       <title lang="en">CQL Server Choice</title>
94       <map><name set="cql">serverChoice</name></map>
95       <map>
96         <attr type="1" set="bib1">dc_all</attr>
97       </map>
98     </index>
99     <index search="true" scan="true" sort="false">
100       <title lang="en">CQL All</title>
101       <map><name set="cql">all</name></map>
102       <map>
103         <attr type="1" set="bib1">dc_all</attr>
104       </map>
105     </index>
106
107     <!-- Record ID index -->
108     <index search="true" scan="true" sort="false">
109       <title lang="en">Record ID</title>
110       <map><name set="rec">id</name></map>
111       <map>
112         <attr type="1" set="bib1">rec:id</attr>
113         <attr type="4" set="bib1">3</attr>
114       </map>
115     </index>
116
117     <!-- Open Archive Metadata indexes -->
118     <index search="true" scan="true" sort="false">
119       <title lang="en">OAI Identifier</title>
120       <map><name set="oai">identifier</name></map>
121       <map>
122         <attr type="1" set="bib1">oai_identifier</attr>
123         <attr type="4" set="bib1">3</attr>
124       </map>
125     </index>
126     <index search="true" scan="true" sort="false">
127       <title lang="en">OAI Datestamp</title>
128       <map><name set="oai">date</name></map>
129       <map>
130         <attr type="1" set="bib1">oai_datestamp</attr>
131         <attr type="4" set="bib1">3</attr>
132       </map>
133     </index>
134     <index search="true" scan="true" sort="false">
135       <title lang="en">OAI Set Specification</title>
136       <map><name set="oai">set</name></map>
137       <map>
138         <attr type="1" set="bib1">oai_setspec</attr>
139         <attr type="4" set="bib1">3</attr>
140       </map>
141     </index>
142
143     <!-- Dublin Core Indexes -->
144     <index search="true" scan="true" sort="false">
145       <title lang="en">DC Title</title>
146       <map><name set="dc">title</name></map>
147       <map>
148         <attr type="1" set="bib1">dc_title</attr>
149       </map>
150     </index>
151     <index search="true" scan="true" sort="false">
152       <title lang="en">DC Creator</title>
153       <map><name set="dc">creator</name></map>
154       <map>
155         <attr type="1" set="bib1">dc_creator</attr>
156       </map>
157     </index>
158     <index search="true" scan="true" sort="false">
159       <title lang="en">DC Subject</title>
160       <map><name set="dc">subject</name></map>
161       <map>
162         <attr type="1" set="bib1">dc_subject</attr>
163         <!-- <attr type="6" set="bib1">3</attr> -->
164       </map>
165     </index>
166     <index search="true" scan="true" sort="false">
167       <title lang="en">DC Description</title>
168       <map><name set="dc">description</name></map>
169       <map>
170         <attr type="1" set="bib1">dc_description</attr>
171       </map>
172     </index>
173     <index search="true" scan="true" sort="false">
174       <title lang="en">DC Publisher</title>
175       <map><name set="dc">publisher</name></map>
176       <map>
177         <attr type="1" set="bib1">dc_publisher</attr>
178         <!-- <attr type="6" set="bib1">3</attr> -->
179       </map>
180     </index>
181     <index search="true" scan="true" sort="false">
182       <title lang="en">DC Contributor</title>
183       <map><name set="dc">contributor</name></map>
184       <map>
185         <attr type="1" set="bib1">dc_contributor</attr>
186       </map>
187     </index>
188     <index search="true" scan="true" sort="false">
189       <title lang="en">DC Date</title>
190       <map><name set="dc">date</name></map>
191       <map>
192         <attr type="1" set="bib1">dc_date</attr>
193         <attr type="4" set="bib1">3</attr>
194       </map>
195     </index>
196     <!--
197     <index search="true" scan="true" sort="false">
198       <title lang="en">DC Type</title>
199       <map><name set="dc">type</name></map>
200       <map>
201         <attr type="1" set="bib1">dc_type</attr>
202       </map>
203     </index>
204     -->
205     <index search="true" scan="true" sort="false">
206       <title lang="en">DC Format</title>
207       <map><name set="dc">format</name></map>
208       <map>
209         <attr type="1" set="bib1"></attr>
210         <attr type="4" set="bib1">3</attr>
211       </map>
212     </index>
213     <index search="true" scan="true" sort="false">
214       <title lang="en">DC Identifier</title>
215       <map><name set="dc">identifier</name></map>
216       <map>
217         <attr type="1" set="bib1">dc_identifier</attr>
218         <attr type="4" set="bib1">3</attr>
219       </map>
220     </index>
221     <index search="true" scan="true" sort="false">
222       <title lang="en">DC Source</title>
223       <map><name set="dc">source</name></map>
224       <map>
225         <attr type="1" set="bib1">dc_source</attr>
226         <attr type="4" set="bib1">3</attr>
227       </map>
228     </index>
229     <index search="true" scan="true" sort="false">
230       <title lang="en">DC Language</title>
231       <map><name set="dc">language</name></map>
232       <map>
233         <attr type="1" set="bib1">dc_language</attr>
234       </map>
235     </index>
236     <index search="true" scan="true" sort="false">
237       <title lang="en">DC Relation</title>
238       <map><name set="dc">relation</name></map>
239       <map>
240         <attr type="1" set="bib1">dc_relation</attr>
241         <attr type="4" set="bib1">3</attr>
242       </map>
243     </index>
244     <!--
245     <index search="true" scan="true" sort="false">
246       <title lang="en">DC Coverage</title>
247       <map><name set="dc">coverage</name></map>
248       <map>
249         <attr type="1" set="bib1">dc_coverage</attr>
250       </map>
251     </index>
252     -->
253     <index search="true" scan="true" sort="false">
254       <title lang="en">DC Rights</title>
255       <map><name set="dc">rights</name></map>
256       <map>
257         <attr type="1" set="bib1">dc_rights</attr>
258         <!-- <attr type="6" set="bib1">3</attr> -->
259       </map>
260     </index>
261
262   </indexInfo>
263
264   <schemaInfo>
265
266     <schema identifier="http://www.loc.gov/zing/srw/dcschema/v1.0/"
267             location="http://www.loc.gov/zing/srw/dc.xsd" 
268             name="dc"
269             retrieve="true">
270       <title lang="en">Dublin Core</title>
271     </schema>
272
273     <schema identifier="http://indexdata.dk/dc-short"
274             location="" 
275             name="oai"
276             retrieve="true">
277       <title lang="en">Open Archives Initiative</title>
278     </schema>
279
280     <schema identifier="http://indexdata.dk/zebra/xslt/retrieve"
281             location="" 
282             name="zebra"
283             retrieve="true">
284       <title lang="en">Zebra Retrieve</title>
285     </schema>
286
287     <schema identifier="http://indexdata.dk/zebra/xslt/1"
288             location="" 
289             name="index"
290             retrieve="true">
291       <title lang="en">Zebra Indexing</title>
292     </schema>
293
294   </schemaInfo>
295
296  
297   <configInfo>
298
299     <!-- default context set -->
300     <default type="contextSet">cql</default>
301
302     <default type="index">all</default>
303
304     <!-- default relation -->
305     <default type="relation">=</default>
306     <supports type="relation">&lt;</supports> <!-- 2=1 OK -->
307     <supports type="relation">&lt;=</supports> <!-- 2=2 OK -->
308     <supports type="relation">=</supports> <!-- 2=3 OK -->
309     <supports type="relation">&gt;=</supports> <!-- 2=4 OK -->
310     <supports type="relation">&gt;</supports> <!-- 2=5 OK -->
311     <!-- <supports type="relation">&lt;&gt;</supports> --><!-- 2=6 DEAD !!! -->
312     <!-- <supports type="relation">all</supports> --><!-- 2=3 OK -->
313     <!-- <supports type="relation">any</supports> --><!-- 2=3 OK -->
314
315     <supports type="relationModifier">relevant</supports><!-- -->
316     <supports type="relationModifier">phrase</supports><!-- -->
317
318
319
320
321     <!-- masking character supported (* or ?) -->
322     <supports type="maskingCharacter">*</supports>
323     <supports type="maskingCharacter">?</supports>
324
325     <!-- zebra happily accepts empty terms, if escaped in quotes -->
326     <supports type="emptyTerm"></supports>
327
328     <!-- presentation settings --> 
329
330     <!-- default number of records that a server will return at once  -->
331     <default type="numberOfRecords">0</default>
332
333     <!-- default schema used for retrieved records -->
334     <default type="retrieveSchema">oai</default>
335
336     <!-- default record packing returned (string or xml) -->
337     <default type="recordPacking">xml</default>
338
339     <!-- maximum number of records that a server will return at once -->
340     <!-- <setting type="maximumRecords">1000</setting> -->
341
342     <!-- support result sets (Empty) -->
343     <!-- <supports type="resultSets"></supports>  --> 
344
345
346     <!-- scan settings -->
347
348     <!-- scan operation supported -->
349     <supports type="scan"></supports>
350
351     <!-- default number of terms to be returned in scan -->
352     <default type="numberOfTerms">20</default>
353
354     <!-- number of seconds that a result set will be maintained for -->
355     <setting type="resultSetTTL">0</setting>
356
357   </configInfo>
358    
359 </explain>