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

Last change on this file since 24297 was 24297, checked in by ak19, 13 years ago

Improvement to code committed previously: Fixed a bug introduced with the reset-gsdlhome target where any non-standard collecthome value written into the gsdlsite.cfg was lost on startup, since reset-gsdlhome always regenerated gsdlsite.cfg from the template file. Now, the relocation code of the reset-gsdlhome target doesn't get exected every time, only when the gsdlhome property in gsdlsite.cfg is different from GSDLHOME var (which points to the current greenstone installation directory.)

  • Property svn:keywords set to Author Date Id Revision
File size: 7.2 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 base URL of the web server. Must include the port number if not using
29# port 80. Will be automatically generated by the oaiserver program if not
30# specified here, but may use 'xxx.xxx.xxx.xxx' IP address, not a nice
31# 'www.mylibrary.com' human-readable domain name.
32#baseServerURL "http://your-domain-name:port"
33
34# the relative base path of the oaiserver.cgi
35oaiserverPath "/greenstone/cgi-bin/oaiserver.cgi"
36
37# the relative base path of the Greenstone library.cgi
38libraryPath "/greenstone/cgi-bin/library.cgi"
39
40# the relative base document root
41docRootPath "/greenstone"
42
43# The OAI repository name - human readable
44#repositoryName ""
45repositoryName "Greenstone"
46
47# The OAI repository domain name or unique identifier - used for generating
48# the document identifiers, which will be like:
49# oai:reposId:coll:oid
50#repositoryId ""
51repositoryId "greenstone"
52
53# version is which oai id scheme is used for ids. Can be 1.1 or 2.0.
54# 1.1 uses a unique id, while 2.0 uses a domain name
55repositoryIdVersion "1.1"
56
57# The central administrative email address for the repository.
58maintainer ""
59
60# Which version of OAI the repository supports, 1.1 or 2.0
61# (The server supports both)
62oaiversion "2.0"
63
64# How many records to output before needing a resumption token
65# A value of -1 will return all records for a request
66resumeafter 250
67
68# Other free text items describing the repository. There is no restriction
69# on the number of items, or item names
70# The format is like the following:
71# oaiinfo "item name" "item value"
72# Examples may include sponsor, purpose, size...
73
74# A list of collections that should be made available to OAI clients. By
75# default, collections are not available.
76# There can be more than one line: each line must start with oaicollection,
77# and this is followed by one or more collection names. The collection name
78# is the name of the collection's folder in the collect directory.
79oaicollection demo documented-examples/oai-e oaipdf
80
81# Optional, set name and description for each collection
82# collname is the same collection name as in the above oaicollection line
83# The format is like the following:
84# oaisetname collname "Name of Collection"
85# oaisetdescription collname "Collection description"
86
87# Set name and description can also be added for classifiers. Specify this like
88# oaisetname demo:CL1 "Titles set for Demo collection"
89
90# These can also be specified in a collection's collect.cfg. The collection
91# name is not needed, so lines will look like
92# oaisetname "demo collection"
93# oaisetname CL1 "Titles set for demo collection"
94
95# Metadata mapping information. At present, Greenstone's OAI server
96# supports the following metadata formats.
97# oai_dc (OAI standard for Dublin Core)
98# gsdl_qdc (Greenstone format for Qualified Dublin Core)
99# rfc1807 (OAI standard for RFC 1807 format)
100
101# the list of metadata formats this server should support (Choose from the
102# above list)
103oaimetadata oai_dc gsdl_qdc
104
105#### Metadata Mapping Rules ####
106################################
107
108# Metadata in other formats must be mapped to the formats specified above.
109# This can be done in this file, or, for a particular collection, in its
110# collect.cfg file.
111
112# The format is like
113# oaimapping <greenstone fieldname> <metadataPrefix.fieldname>
114
115# The Greenstone field names can be unqualified (Title, Subject) or
116# qualified by a namespace (dc.Title, dls.Subject). Capitalization must match
117# that used by Greenstone.
118# OAI field names must start with the metadataPrefix name (e.g. oai_dc.) and
119# capitalization must match that used by the appropriate schema. Valid elements
120# for each schema are listed below. Only valid elements will be included in
121# the output
122
123# OAI Dublin Core metadata schema:
124# http://www.openarchives.org/OAI/2.0/oai_dc.xsd
125# metadataPrefix: oai_dc
126# Valid elements:
127# contributor coverage creator date description format identifier language
128# publisher relation rights source subject title type
129
130# Greenstone's OAI Qualified Dublin Core metadata schema:
131# http://www.greenstone.org/namespace/gsdl_qdc/1.0/gsdl_qdc.xsd
132# metadataPrefix: gsdl_qdc
133# Valid elements:
134# title creator subject description publisher contributor date type format
135# identifier source language relation coverage rights alternative
136# tableOfContents abstract created valid available issued modified
137# dateAccepted dateCopyrighted dateSubmitted extent medium isVersionOf
138# hasVersion isReplacedBy replaces isRequiredBy requires isPartOf hasPart
139# isReferencedBy references isFormatOf hasFormat conformsTo spatial
140# temporal audience accrualMethod accrualPeriodicity accrualPolicy
141# instructionalMethod provenance rightsHolder mediator educationLevel
142# accessRights license bibliographicCitation
143
144# OAI RFC 1807 metadata schema
145# http://www.openarchives.org/OAI/1.1/rfc1807.xsd
146# metadataPrefix: rfc1807
147# Valid elements:
148# bib-version id entry organization title type revision withdraw author
149# corp-author contact date pages copyright handle other_access retrieval
150# keyword cr-category period series monitoring funding contract grant
151# language notes abstract
152
153# mappings for the dls metadata set
154# for dublin core (oai_dc metadata prefix)
155oaimapping dls.Title oai_dc.title
156oaimapping dls.Subject oai_dc.subject
157oaimapping dls.Language oai_dc.language
158oaimapping dls.Organization oai_dc.publisher
159# for qualified dublin core (gsdl_qdc metadata prefix)
160oaimapping dls.Title gsdl_qdc.title
161oaimapping dls.Subject gsdl_qdc.subject
162oaimapping dls.Language gsdl_qdc.language
163oaimapping dls.Organization gsdl_qdc.publisher
164
165
166# These mapping rules will apply to the entire repository.
167
168# Collection specific rules can also be specified in this file using a
169# collection name qualifier with the greenstone field name. This is the
170# collection name followed by a colon (demo:Title, demo:dls.Title).
171# oaimapping demo:dls.Title oai_dc.title
172# Mappings specified in a collect.cfg file do not need the collection
173# qualifier.
174
Note: See TracBrowser for help on using the repository browser.