source: main/trunk/greenstone2/etc/oai.cfg@ 22282

Last change on this file since 22282 was 22282, checked in by kjdon, 14 years ago

adding a new field, repositoryId, to be used for generating unique document identifiers

  • Property svn:keywords set to Author Date Id Revision
File size: 6.8 KB
Line 
1# OAI Server Configuration
2
3# This is the main configuration file for configuring your Greenstone oai server.
4# The server is a cgi program called oaiserver (oaiserver.exe on Windows).
5# Some basic commands that you can send it are:
6# ....cgi-bin/oaiserver.cgi?verb=Identify
7# ....cgi-bin/oaiserver.cgi?verb=ListSets
8# ....cgi-bin/oaiserver.cgi?verb=ListMetadataFormats
9# ....cgi-bin/oaiserver.cgi?verb=ListIdentifiers&set=xxx (1.1 only)
10# ....cgi-bin/oaiserver.cgi?verb=ListIdentifiers&set=xxx&metadataPrefix=oai_dc (2.0 only)
11# ....cgi-bin/oaiserver.cgi?verb=ListRecords&set=xxx&metadataPrefix=oai_dc
12# ....cgi-bin/oaiserver.cgi?verb=GetRecord&identifier=xxx&metadataPrefix=oai_dc
13
14#The List verbs (ListSets, ListIdentifiers, ListRecords) all return a
15#sequence of items. The 'resumeafter' paramter below indicates how many
16#records to return - if this number is less than the number matching the
17#request, then a resumption token is returned. To use this to get the
18#next set of documents, you need to issue the same request again, with
19#an additional parameter: resumptionToken=xxx
20#For example,
21# ....cgi-bin/oaiserver.cgi?verb=ListRecords&set=demo&metadataPrefix=oai_dc&resumptionToken=gsdloai:demo,,11-
22
23# For more information about the OAI-PMH protocol, see
24# http://www.openarchives.org/
25
26# Strings containing spaces should be enclosed in double quotes ""
27
28#the baseURL used by the oaiserver
29#Example: baseURL "http://your-domain-name/cgi-bin/oaiserver.cgi"
30baseURL "your-own-baseURL-goes-here"
31
32# the base URL used by the Greenstone library
33#Example: baseLibraryURL "http://your-domain-name/cgi-bin/library.cgi"
34baseLibraryURL "you-own-base-Library-URL-goes-here"
35
36# the base address of gsdl directory
37#Example: baseDocRoot "http://your-domain-name/gsdl"
38baseDocRoot "your-own-base-document-root-goes-here"
39
40# The OAI repository name - human readable
41repositoryName ""
42
43# The OAI repository domain name or unique identifier - used for generating
44# the document identifiers, which will be like:
45# oai:reposId:coll:oid
46repositoryId ""
47
48# The central administrative email address for the repository.
49maintainer ""
50
51# Which version of OAI the repository supports, 1.1 or 2.0
52# (The server supports both)
53oaiversion "2.0"
54
55# How many records to output before needing a resumption token
56# A value of -1 will return all records for a request
57resumeafter 250
58
59# Other free text items describing the repository. There is no restriction
60# on the number of items, or item names
61# The format is like the following:
62# oaiinfo "item name" "item value"
63# Examples may include sponsor, purpose, size...
64
65# A list of collections that should be made available to OAI clients. By
66# default, collections are not available.
67# There can be more than one line: each line must start with oaicollection,
68# and this is followed by one or more collection names. The collection name
69# is the name of the collection's folder in the collect directory.
70oaicollection demo documented-examples/oai-e
71
72# Optional, set name and description for each collection
73# collname is the same collection name as in the above oaicollection line
74# The format is like the following:
75# oaisetname collname "Name of Collection"
76# oaisetdescription collname "Collection description"
77
78# Set name and description can also be added for classifiers. Specify this like
79# oaisetname demo:CL1 "Titles set for Demo collection"
80
81# These can also be specified in a collection's collect.cfg. The collection
82# name is not needed, so lines will look like
83# oaisetname "demo collection"
84# oaisetname CL1 "Titles set for demo collection"
85
86# Metadata mapping information. At present, Greenstone's OAI server
87# supports the following metadata formats.
88# oai_dc (OAI standard for Dublin Core)
89# gsdl_qdc (Greenstone format for Qualified Dublin Core)
90# rfc1807 (OAI standard for RFC 1807 format)
91
92# the list of metadata formats this server should support (Choose from the
93# above list)
94oaimetadata oai_dc gsdl_qdc
95
96#### Metadata Mapping Rules ####
97################################
98
99# Metadata in other formats must be mapped to the formats specified above.
100# This can be done in this file, or, for a particular collection, in its
101# collect.cfg file.
102
103# The format is like
104# oaimapping <greenstone fieldname> <metadataPrefix.fieldname>
105
106# The Greenstone field names can be unqualified (Title, Subject) or
107# qualified by a namespace (dc.Title, dls.Subject). Capitalization must match
108# that used by Greenstone.
109# OAI field names must start with the metadataPrefix name (e.g. oai_dc.) and
110# capitalization must match that used by the appropriate schema. Valid elements
111# for each schema are listed below. Only valid elements will be included in
112# the output
113
114# OAI Dublin Core metadata schema:
115# http://www.openarchives.org/OAI/2.0/oai_dc.xsd
116# metadataPrefix: oai_dc
117# Valid elements:
118# contributor coverage creator date description format identifier language
119# publisher relation rights source subject title type
120
121# Greenstone's OAI Qualified Dublin Core metadata schema:
122# http://www.greenstone.org/namespace/gsdl_qdc/1.0/gsdl_qdc.xsd
123# metadataPrefix: gsdl_qdc
124# Valid elements:
125# title creator subject description publisher contributor date type format
126# identifier source language relation coverage rights alternative
127# tableOfContents abstract created valid available issued modified
128# dateAccepted dateCopyrighted dateSubmitted extent medium isVersionOf
129# hasVersion isReplacedBy replaces isRequiredBy requires isPartOf hasPart
130# isReferencedBy references isFormatOf hasFormat conformsTo spatial
131# temporal audience accrualMethod accrualPeriodicity accrualPolicy
132# instructionalMethod provenance rightsHolder mediator educationLevel
133# accessRights license bibliographicCitation
134
135# OAI RFC 1807 metadata schema
136# http://www.openarchives.org/OAI/1.1/rfc1807.xsd
137# metadataPrefix: rfc1807
138# Valid elements:
139# bib-version id entry organization title type revision withdraw author
140# corp-author contact date pages copyright handle other_access retrieval
141# keyword cr-category period series monitoring funding contract grant
142# language notes abstract
143
144# mappings for the dls metadata set
145# for dublin core (oai_dc metadata prefix)
146oaimapping dls.Title oai_dc.title
147oaimapping dls.Subject oai_dc.subject
148oaimapping dls.Language oai_dc.language
149oaimapping dls.Organization oai_dc.publisher
150# for qualified dublin core (gsdl_qdc metadata prefix)
151oaimapping dls.Title gsdl_qdc.title
152oaimapping dls.Subject gsdl_qdc.subject
153oaimapping dls.Language gsdl_qdc.language
154oaimapping dls.Organization gsdl_qdc.publisher
155
156
157# These mapping rules will apply to the entire repository.
158
159# Collection specific rules can also be specified in this file using a
160# collection name qualifier with the greenstone field name. This is the
161# collection name followed by a colon (demo:Title, demo:dls.Title).
162# oaimapping demo:dls.Title oai_dc.title
163# Mappings specified in a collect.cfg file do not need the collection
164# qualifier.
165
Note: See TracBrowser for help on using the repository browser.