source: main/trunk/greenstone2/etc/main.cfg@ 32758

Last change on this file since 32758 was 32758, checked in by ak19, 5 years ago

New language Cambodian (Khmer) needs to be added in. The 2 letter code (km) already exists in perllib/

  • Property svn:keywords set to Author Date Id Revision
File size: 15.5 KB
1# This file must be utf-8 encoded
3# This is the main configuration file for configuring
4# your Greenstone receptionist (the bit responsible for the way
5# things are displayed) and contains information common
6# to the interface of all collections served by the site.
8# Email address of the webmaster of this Greenstone installation
9# If maintainer is set to "NULL" EmailEvents and EmailUserEvents
10# will be disabled.
11maintainer NULL
13# GTI
14translator enabled
16# Outgoing (SMTP) mail server for this Greenstone installation.
17# This will default to mail.maintainer-domain if it's not set
18# (i.e. if maintainer is [email protected] then MailServer
19# will default to If MailServer doesn't
20# resolve to a valid SMTP server then the EmailEvents and
21# EmailUserEvents options (see below) won't be functional. Likewise,
22# turning off EmailEvents and EmailUserEvents will remove any
23# reliance on MailServer.
24MailServer NULL
26# Set status to "enabled" if you want the Maintenance and
27# Administration facility to be available.
28status enabled
30# Set collector to "enabled" if you want the "collector"
31# end-user collection building facility to be available.
32# This allows creation of new collections via a web interface.
33# No longer maintained.
34collector disabled
36# Set depositor to "enabled" if you want the "depositor"
37# (aka institutional repository) facility to be available.
38# This enables addition of new documents and metadata to existing collections
39depositor disabled
41# Set gliapplet to "enabled" if you want remote users
42# to be able to build collections on your server through an applet
43# version of GLI
44gliapplet disabled
46# Set logcgiargs to "true" to keep a log of usage information in
47# $GSDLHOME/etc/usage.txt.
48logcgiargs false
50# Set usecookies to "true" to use cookies to identify users (cookie
51# information will be written to the usage log if logcgiargs is
52# true).
53usecookies false
55# LogDateFormat sets the format that timestamps will be stored in the usage
56# log (i.e. if logcgiargs is enabled). It takes the following values:
57# LocalTime: (the default) The local time and date in the form
58# "Thu Dec 07 23:47:00 NZDT 2000".
59# UTCTime: Coordinated universal time (GMT) in the same format as LocalTime.
60# Absolute: Integer value representing the number of seconds since
61# 00:00:00 1/1/1970 GMT
62LogDateFormat LocalTime
64# Log any events that Greenstone deems important in
65# $GSDLHOME/etc/events.txt.
66# The only events that are currently implemented come from the
67# collector (e.g. someone just built/deleted the following collection)
68# LogEvents may take values of:
69# AllEvents: All important events
70# CollectorEvents: Just those events originating from the collector
71# (e.g. someone just built a collection)
72# disabled: Don't log events
73LogEvents disabled
75# Email the maintainer whenever any event occurs. EmailEvents
76# takes the same values as LogEvents.
77# Note that perl must be installed for EmailEvents or
78# EmailUserEvents to work.
79EmailEvents disabled
81# In some cases it may be appropriate to email the user about a
82# certain event (e.g. notification from the collector that a collection
83# was built successfully)
84EmailUserEvents false
87# The list of display macro files used by this receptionist
88macrofiles \
89 \
90 \
91 \
92 \
93 \
94 \
95 \
96 \
97 \
98 \
99 \
100 \
101 \
102 \
103 \
104 \
105 \
106 \
107 \
108 \
109 \
110 \
111 \
112 \
116# Define the interface languages and encodings supported by this receptionist
118# An "Encoding" line defines an encoding to be used by the receptionist.
119# Uncomment "Encoding" lines to include an encoding on your "preferences" page.
120# Encoding line options are:
121# shortname -- The standard charset label for the given encoding. The
122# shortname option is mandatory.
123# longname -- The display name of the given encoding. If longname isn't set
124# it will default to using shortname instead.
125# map -- The name of the map file (i.e. the .ump file) for use when
126# converting between unicode and the given encoding. The map
127# option is mandatory for all encoding lines except the
128# special case for utf8.
129# multibyte -- This optional argument should be set for all encodings that use
130# multibyte characters.
132# The utf8 encoding is handled internally and doesn't require a map file.
133# As a rule the utf8 encoding should always be enabled, especially if you
134# have collections of documents that may not all be in the same
135# language/encoding.
136Encoding shortname=utf-8 "longname=Unicode (UTF-8)"
138# This is very experimental, and you almost certainly don't need it
139#Encoding shortname=utf-16be "longname=Unicode (UTF-16BE)"
141# The ISO-8859 series
142Encoding shortname=iso-8859-1 "longname=Western (ISO-8859-1)" map=8859_1.ump
143#Encoding shortname=iso-8859-2 "longname=Central European (ISO-8859-2)" map=8859_2.ump
144#Encoding shortname=iso-8859-3 "longname=Latin 3 (ISO-8859-3)" map=8859_3.ump
145#Encoding shortname=iso-8859-4 "longname=Latin 4 (ISO-8859-4)" map=8859_4.ump
146#Encoding shortname=iso-8859-5 "longname=Cyrillic (ISO-8859-5)" map=8859_5.ump
147#Encoding shortname=iso-8859-6 "longname=Arabic (ISO-8859-6)" map=8859_6.ump
148#Encoding shortname=iso-8859-7 "longname=Greek (ISO-8859-7)" map=8859_7.ump
149#Encoding shortname=iso-8859-8 "longname=Hebrew (ISO-8859-8)" map=8859_8.ump
150#Encoding shortname=iso-8859-9 "longname=Turkish (ISO-8859-9)" map=8859_9.ump
151#Encoding shortname=iso-8859-15 "longname=Western (ISO-8859-15)" map=8859_15.ump
153# Windows codepages
154Encoding shortname=windows-1250 "longname=Central European (Windows-1250)" map=win1250.ump
155Encoding shortname=windows-1251 "longname=Cyrillic (Windows-1251)" map=win1251.ump
156#Encoding shortname=windows-1252 "longname=Western (Windows-1252)" map=win1252.ump
157Encoding shortname=windows-1253 "longname=Greek (Windows-1253)" map=win1253.ump
158Encoding shortname=windows-1254 "longname=Turkish (Windows-1254)" map=win1254.ump
159Encoding shortname=windows-1255 "longname=Hebrew (Windows-1255)" map=win1255.ump
160Encoding shortname=windows-1256 "longname=Arabic (Windows-1256)" map=win1256.ump
161#Encoding shortname=windows-1257 "longname=Baltic (Windows-1257)" map=win1257.ump
162#Encoding shortname=windows-1258 "longname=Vietnamese (Windows-1258)" map=win1258.ump
163#Encoding shortname=windows-874 "longname=Thai (Windows-874)" map=win874.ump
164#Encoding shortname=cp866 "longname=Cyrillic (DOS)" map=dos866.ump
165#Encoding shortname=cp850 "longname=Latin-1 (DOS)" map=dos850.ump
166#Encoding shortname=cp852 "longname=Central European (DOS)" map=dos852.ump
168# KOI8 Cyrillic encodings
169#Encoding shortname=koi8-r "longname=Cyrillic (KOI8-R)" map=koi8_r.ump
170#Encoding shortname=koi8-u "longname=Cyrillic (KOI8-U)" map=koi8_u.ump
172# CJK encodings (note that Shift-JIS Japanese isn't currently supported)
173Encoding shortname=gbk "longname=汉语 (Chinese Simplified GBK)" map=gbk.ump multibyte
174Encoding shortname=big5 "longname=挢語 (Chinese Traditional Big5)" map=big5.ump multibyte
175Encoding shortname=euc-jp "longname=Japanese (EUC)" map=euc_jp.ump multibyte
176Encoding shortname=euc-kr "longname=Korean (UHC)" map=uhc.ump multibyte
179# A "Language" line defines an interface language to be used by the
180# interface. Note that it is possible to display only a subset of the
181# specified languages on the preferences page for a given collection by
182# using the "PreferenceLanguages" format option in your collect.cfg
183# configuration file.
184# Arguments are:
185# shortname -- ISO 639 two letter language symbol. The shortname
186# argument is mandatory.
187# longname -- The display name for the given language. If longname
188# isn't set it will default to using shortname instead.
189# default_encoding -- The encoding to use by default when using the given
190# interface language. This should be set to the
191# "shortname" of a valid "Encoding" line
192Language shortname=am longname=Amharic default_encoding=utf-8
193Language shortname=ar longname=Arabic default_encoding=windows-1256
194Language shortname=bg longname=Bulgarian default_encoding=utf-8
195Language shortname=bn "longname=àŠ¬àŠŸàŠ‚àŠ²àŠŸ (Bengali)" default_encoding=utf-8
196Language shortname=ca "longname=Català (Catalan)" default_encoding=utf-8
197Language shortname=cs "longname=Česky (Czech)" default_encoding=utf-8
198Language shortname=de "longname=Deutsch (German)" default_encoding=utf-8
199Language shortname=dv longname=Dhivehi default_encoding=utf-8
200Language shortname=el "longname=ΕλληΜικά (Greek)" default_encoding=windows-1253
201Language shortname=gu "longname=ગુજરટ઀ી (Gujarati)" default_encoding=utf-8
202Language shortname=en longname=English default_encoding=utf-8
203Language shortname=es "longname=Español (Spanish)" \
204 default_encoding=utf-8
205Language shortname=fa longname=Farsi default_encoding=utf-8
206Language shortname=fi longname=Finnish default_encoding=utf-8
207Language shortname=fr "longname=Français (French)" \
208 default_encoding=utf-8
209Language shortname=gd "longname=Gaelic (Scottish)" default_encoding=utf-8
210Language shortname=gl longname=Galician default_encoding=utf-8
211Language shortname=he longname=Hebrew default_encoding=windows-1255
212Language shortname=hi longname=Hindi default_encoding=utf-8
213Language shortname=hr longname=Croatian default_encoding=windows-1250
214Language shortname=hu longname=Hungarian default_encoding=utf-8
215Language shortname=hy longname=Armenian default_encoding=utf-8
216Language shortname=id "longname=Bahasa Indonesia (Indonesian)" default_encoding=utf-8
217Language shortname=it longname=Italiano default_encoding=utf-8
218Language shortname=ja "longname=日本語 (Japanese)" default_encoding=utf-8
219Language shortname=ka longname=Georgian default_encoding=utf-8
220Language shortname=kk "longname=Қазақ (Kazakh)" default_encoding=utf-8
221Language shortname=km "longname=អក្សរខ្មែរ (Khmer Cambodian)" default_encoding=utf-8
222Language shortname=kn longname=Kannada default_encoding=utf-8
223Language shortname=ky "longname=Кыргызча (Kirghiz)" default_encoding=utf-8
224Language shortname=lo longname=Laotian default_encoding=utf-8
225Language shortname=lv longname=Latvian default_encoding=utf-8
226Language shortname=mi "longname=Māori" default_encoding=utf-8
227Language shortname=ml "longname=Malayalam" default_encoding=utf-8
228Language shortname=mr "longname=Marathi" default_encoding=utf-8
229Language shortname=mn "longname=МПМгПл (Mongolian)" default_encoding=utf-8
230Language shortname=my "longname=မဌန်မာဘာသာ(Burmese)" default_encoding=utf-8
231Language shortname=ne "longname=à€šà¥‡à€ªà€Ÿà€² (Nepali)" default_encoding=utf-8
232Language shortname=nl "longname=Nederlands (Dutch)" default_encoding=utf-8
233Language shortname=pl "longname=Polski (Polish)" default_encoding=utf-8
234Language shortname=prs "longname=Dari" default_encoding=utf-8
235Language shortname=ps "longname=Pushto" default_encoding=utf-8
236Language shortname=pt-br "longname=Português-BR (Brasil)" \
237 default_encoding=utf-8
238Language shortname=pt-pt "longname=Português-PT (Portugal)" \
239 default_encoding=utf-8
240Language shortname=ro longname=Romanian default_encoding=utf-8
241Language shortname=ru "longname=русскОй (Russian)" default_encoding=windows-1251
242Language shortname=si "longname=සිංහග (Sinhala)" default_encoding=utf-8
243Language shortname=sk "longname=Slovenčina (Slovak)" default_encoding=utf-8
244Language shortname=sr-cyr "longname=Serbian Cyrillic" default_encoding=utf-8
245Language shortname=sr-lat "longname=Serbian Latin" default_encoding=utf-8
246Language shortname=sr-bh-cyr "longname=Bosnia Herzegovina Serbian Cyrillic" default_encoding=utf-8
247Language shortname=sr-bh-lat "longname=Bosnia Herzegovina Serbian Latin" default_encoding=utf-8
248Language shortname=ta longname=Tamil default_encoding=utf-8
249Language shortname=te longname=Telugu default_encoding=utf-8
250Language shortname=th longname=Thai default_encoding=utf-8
251Language shortname=ti "longname=ትግርኛ (Tigrinya)" default_encoding=utf-8
252Language shortname=tr longname=Turkish default_encoding=windows-1254
253Language shortname=uk longname=Ukrainian default_encoding=utf-8
254Language shortname=ur longname=Urdu default_encoding=utf-8
255Language shortname=vi "longname=Tiếng Việt (Vietnamese)" default_encoding=utf-8
256Language shortname=zh "longname=简䜓䞭文 (Simplified Chinese)" default_encoding=gbk
257Language shortname=zh-tr "longname=繁體䞭文 (Traditional Chinese)" default_encoding=big5
260# Define any additional page parameters to be used by the above macro files
261# (the current default page parameters are c (collection) and l (language)
263# Define v (version -- text or graphic) page parameter and give it a default
264# value of 0 (0 = text version off)
265pageparam v 0
267# Set the precedence given to the page parameters. This effects which macro
268# will be selected for display when there are multiple versions of the same
269# macro with different page parameters.
270# e.g. Given a macroprecedence of "c,v,l" and the following macro definitions:
271# _content_ []
272# _content_ [l=en]
273# _content_ [c=demo]
274# _content_ [v=1]
275# _content_ [l=fr,v=1,c=hdl]
276# If the corresponding cgi arguments were set to l=en&v=1&c=hdl then the
277# _content_[v=1] macro would be selected for display. It would be selected
278# ahead of the _content_[l=en] macro because "v" has a higher precedence
279# than "l". The _content_[l=fr,v=1,c=hdl] macro would not be selected
280# because one of the page parameters is completely wrong ("l").
281macroprecedence c,v,l
284# Define any additional cgi arguments. Most cgi arguments are built into
285# Greenstone but it's possible to define them here (or set defaults for
286# existing built-in cgi arguments).
288# define the "v" cgi argument (to correspond to the "v" page parameter defined
289# above).
290cgiarg shortname=v longname=version multiplechar=false argdefault=0 \
291 defaultstatus=weak savedarginfo=must
293# set a default value for the built-in "a" cgi argument
294cgiarg shortname=a argdefault=p
296# set a default value for the built-in "p" cgi argument
297cgiarg shortname=p argdefault=home
299# set the default encoding to utf-8
300cgiarg shortname=w argdefault=utf-8
302# If you want an intermediate page to warn users that they've clicked on
303# an external link, then uncomment the following line
304cgiarg shortname=el argdefault=prompt
Note: See TracBrowser for help on using the repository browser.