source: documented-examples/trunk/authen-e/etc/collect.cfg@ 22902

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

keeping this up to date with demo collection

  • Property svn:executable set to *
File size: 19.4 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mgpp
6infodbtype gdbm
7
8indexes text dls.Title,ex.Title dls.Subject dls.Organization dls.Keyword
9
10levels section document
11
12plugin GreenstoneXMLPlugin
13plugin HTMLPlugin -description_tags -OIDtype dirname
14plugin MetadataXMLPlugin
15plugin ArchivesInfPlugin
16plugin DirectoryPlugin
17
18classify List -metadata dls.Title -partition_type_within_level constant_size
19
20classify Hierarchy -metadata dls.Subject -sort dls.Title
21
22classify List -sort_leaf_nodes_using dls.Title -metadata dls.Organization -bookshelf_type always -partition_type_within_level constant_size
23
24classify List -metadata dls.Keyword -partition_type_within_level constant_size -buttonname Howto
25
26format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
27
28format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All\': \'):Title],[parent(All\': \'):Title]:}[link][Title][/link]</td>"
29
30format VList "<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]{If}{[Date],<br><small><i>_textdate_[Date]</i></small>}{If}{[NumPages],<br><small><i>_textnumpages_[NumPages]</i></small>}{If}{[Source],<br><small><i>_textsource_[dmsafe:Source]</i></small>}</td>"
31
32format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]"
33format DocumentImages true
34format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
35format DocumentSearchResultLinks true
36
37format HList "[link][highlight][Title][/highlight][/link]"
38
39format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
40
41format SearchTypes "plain,form"
42
43# Authentication directives
44
45authenticate document
46public_documents Jfb33fe Jfb34fe
47
48auth_group demo
49
50# strings that use macros
51# these don't need translating unless you want something different from the
52# default
53collectionmeta .text [l=en] "_labeltext_"
54collectionmeta .dls.Title,Title [l=en] "_labelTitle_"
55collectionmeta .dls.Subject [l=en] "_labelSubject_"
56collectionmeta .dls.Organization [l=en] "_labelOrganization_"
57collectionmeta .dls.Keyword [l=en] "_labelHowto_"
58
59collectionmeta .document [l=en] "_textbook_"
60collectionmeta .section [l=en] "_textchapter_"
61
62# -- English strings ----------------
63collectionmeta collectionname [l=en] "Authentication demo"
64
65collectionmeta depositormetadata [l=en] "{\"name\":\"dls.Title\",\"label\":\"Title\",\"tooltip\":\"dls.Title: The title of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Organization\",\"label\":\"Organization\",\"tooltip\":\"dls.Organization: The organization responsible for producing this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Subject\",\"label\":\"Subject\",\"tooltip\":\"dls.Subject: The subject of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Keyword\",\"label\":\"Keyword\",\"tooltip\":\"dls.Keyword: A more specific indication of what the resource can be used for.\",\"type\":\"text\"}, {\"name\":\"dls.Language\",\"label\":\"Language\",\"tooltip\":\"dls.Language: The language of this resource.\",\"type\":\"text\"}"
66
67# -- French strings ----------------
68collectionmeta collectionname [l=fr] "Démonstration d\'authentification"
69
70# -- Spanish strings ----------------
71collectionmeta collectionname [l=es] "Demostración de autenticación"
72
73# -- Russian strings ----------------
74collectionmeta collectionname [l=ru] "ДеЌПМстрацОя аутеМтОфОкацОО"
75
76# -- Simplified Chinese strings ----------------
77collectionmeta collectionname [l=zh] "讀证挔瀺銆藏"
78
79# -- English text ----------------
80collectionmeta collectionextra [l=en] "This demonstration collection contains the same material as the original Greenstone demo collection, but it includes some basic authentication commands. Two documents are publicly available (Farming snails 1 & 2), while the others require logging in to view.
81
82<p><center><b> To access this collection try user:</b> <i>demo</i> <b>and password:</b> <i>demo</i></center></p>
83
84<h3>How the collection works</h3>\n
85
86<p>
87The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
88configuration file</a> is exactly the same as for the original demo collection apart from the authentication directives, one plugin option (and this description).
89
90<p>
91The authentication scheme controls access to the collection. It works in two
92steps. First it determines whether to restrict access to the collection as a
93whole or to individual documents in it, and in the latter case which documents
94those are (either by giving a list of private documents for which access is to
95be authenticated, or specifying that all documents are private except for a
96given list of public documents). Then for access-restricted documents it
97determines which user groups are to have access.\n
98
99<p>
100Authentication is activated by the <i>authenticate</i> directive with the value
101<i>collection</i> or <i>document</i> depending on whether authentication is to
102be performed on the full collection or on a per-document basis (the default
103value is <i>collection</i>). If authentication is on a <i>document</i> basis,
104then one can <i>either</i> specify a list of private documents (in which
105case all others are public) or a list of public documents (in which case
106all others are private) using directives <i>private_documents</i> or
107<i>public_documents</i>. The documents themselves are specified using Greenstone
108document identifiers (separated by spaces): the easiest way to determine these
109is to locate each document in the collection and look at the <i>d</i> argument
110in its Greenstone URL. \n
111
112<p>In this case, we have used the <i>-OIDtype dirname</i> option to HTMLPlugin,
113which specifies that directory names should be used as identifiers. This works
114for collections where each document is in a separate directory. We have used
115this option to ensure that identifiers remain the same across different
116platforms (which may not be the case for HASH identifiers), as we need to
117specify identifiers here for the authentication directives.\n
118
119<p>
120The <i>auth_groups</i> directive specifies the Greenstone groups for to which
121access will be permitted, if the document (or collection) is one of those that
122requires authentication. It is followed by a group name (or a list of group
123names separated by spaces). The Greenstone <i>admin</i> pages allow you to
124define groups and add members to them.\n
125"
126
127# -- French text ----------------
128collectionmeta collectionextra [l=fr] "
129Cette collection de démonstration contient le même contenu que la
130collection de démonstration originale fournie avec Greenstone, mais elle
131inclue également quelques commandes d\'authentification basiques. Deux
132documents sont diffusés de maniÚre publique (Farming snails 1 & 2), alors
133que le reste des documents requiÚrent une authentification afin de pouvoir
134les consulter.
135
136<p><center><b>Pour accéder à cette collection, essayez utilisateur : </b> <i>demo</i> <b> et mot de passe : </b> <i>demo.</i></center></p>
137
138<h3>Comment marche cette collection?</h3>
139
140<p>
141Ce <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de configuration de collection</a> est exactement le même que celui de la collection de démonstration originale sauf pour les directives d'authentification, une option de plugiciel (et cette description).
142
143<p>
144Le schéma d\'authentification contrÎle l\'accÚs à la collection. Il fonctionne en
145deux étapes. Dans un premier temps il détermine s\'il faut restreindre l\'accÚs à la collection dans son ensemble ou à des documents spécifiques qu\'elle contient, et dans ce dernier cas, de quels documents il s\'agit (soit en donnant une liste de documents privés dont l\'accÚs nécessite une authentification, soit en déclarant que tous les documents sont privés à l\'exeption d\'une liste de documents publics donnée). Ensuite, pour les documents à accÚs restreint, il détermine les utilisateurs qui y ont accÚs.
146
147<p>
148L\'authentification est activée par la directive <i>authenticate</i> avec la valeur <i>collection</i> ou <i>document</i>, suivant que la restriction d\'accÚs s\'applique à toute la collection ou sur des documents spécifiques (la valeur par défaut est <i>collection</i>). Si l\'authentification est effectuée sur la base <i>document</i>, on peut donc soit spécifier une liste de documents privés (dans ce cas tous les autres sont publiques), soit une liste de documents publics (dans ce cas tous les autres sont privés)en utilisant les directives <i>private_documents</i> ou <i>public_documents</i>.
149Ces documents eux-mêmes sont specifiés en utilisant les identificateurs de
150documents de Greenstone (séparés par des espaces) : la façon la plus facile de
151les determiner est de localiser chaque document dans la collection et de
152regarder son argument <i>d</i> dans son URL Greenstone.
153
154<p>Dans ce cas, nous avons utilisé l'option <i>-OIDtype dirname</i> du plugiciel HTMLPlugin, qui précise que les noms de répertoires seront utilisés comme identifiants. Cela fonctionne pour les collections dans lesquelles chaque document est stocké dans un répertoire distinct. Nous avons utilisé cette option pour que les identifiants restent identiques sur différentes plateformes (ce qui ne pourrait être le cas avec les identifiants de hachage), puisque nous avons besoin ici de préciser les identifiants pour définir les options d'identification.\n
155
156<p>
157La directive <i>auth-groups</i> précise les groupes Greenstone pour lesquels l\'accÚs sera permis, si le document (ou la collection) est de ceux qui exigent une authentification. Il est suivi par un nom de groupe (ou une liste de noms
158de groupe séparés par des espaces). Les pages <i>admin</i>de Greenstone vous permettent de définir des groupes et d\'y ajouter des membres.
159"
160
161# -- Spanish text ----------------
162collectionmeta collectionextra [l=es] "
163Esta colección de demostración de Greenstone contiene el mismo material que la colección de demo original, pero incluye además algunos comandos de autenticación básica. Solo dos documentos tienen libre acceso (Farming snails 1 & 2), mientras que los restantes requieren autenticación para poder visualizarse.
164<p>
165
166<center><b>
167Para tener acceso a esta colección ingrese el nombre de usuario:
168</b><i>demo</i><b> y la contraseña: </b><i>demo</i>
169</center>
170<p>
171
172<h3>Cómo trabaja esta colección</h3>
173<p>
174El <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración</a> es exactamente el mismo que el de la demo original salvo las directivas para la autenticación (y su descripción).
175
176<p>
177El esquema de autenticación controla el acceso a la colección. Consiste de dos pasos. Primero determina si se va a restringir el acceso a toda la colección o sólo a documentos individuales dentro de la misma y, en este último caso, a qué documentos (ya sea dando una lista de los documentos confidenciales para los cuales el acceso está limitado a determinadas cuentas o especificando que todos los documentos son confidenciales, excepto por una lista dada de documentos del dominio público). A continuación para los documentos con acceso restringido determina qué usuarios tendrán acceso a ellos.
178<p>
179
180La función de autenticación se activa por medio de la directiva <i>authenticate</i> con el valor <i>collection</i> o <i>document</i>, dependiendo de si la autenticación se debe realizar para tener acceso a toda la colección o por cada documento (el valor por omisión es <i>colección</i>). Si la autenticación se va a realizar con base en cada <i>documento</i>, entonces se puede establecer una lista de documentos confidenciales (en cuyo caso todos los demás son del dominio público) o una lista de documentos de dominio público (en cuyo caso todos los demás documentos son confidenciales) usando las directivas <i>private_documents</i> o <i>public_documents</i>. Los documentos mismos se especifican por medio de los identificadores de documento de Greenstone (separados por espacios). La forma más fácil de determinarlos es localizar cada documento en la colección y ver el argumento d en su URL.\n
181
182<p>En este caso, hemos usado la opción <i>-OIDtype dirname</i> del HTMLPlugin,
183la cual especifica que deben usarse los nombres de las carpetas como identificadores. Esto funciona para cualquier colección en donde cada documento está en una carpeta separada. Hemos usado esta opción para asegurarnos de que los identificadores permanezcan inalterados en diferentes plataformas (lo cual no es el caso de los identificadores HASH), ya que aquí necesitamos especificar identificadores en las directivas de autenticación.\n
184
185La directiva <i>auth_groups</i> especifica los grupos a los cuales se permite el acceso, si el documento (o la colección) es uno de los que requieren autenticación. Está seguida por el nombre del grupo (o una lista de nombres de grupos separados por espacios). Las páginas <i>admin</i> de Greenstone le permiten definir los grupos y añadir miembros.
186"
187
188# -- Russian text ----------------
189collectionmeta collectionextra [l=ru] "
190ДаММая ЎеЌПМстрацОПММая кПллекцОя сПЎержОт те же ЌатерОалы чтП О ПрОгОМальМая ЎеЌПМстрацОПММая кПллекцОя ГрОМстПуМ, МП включает кПЌаМЎы базПвПй аутеМтОфОкацОО. Два ЎПкуЌеМта ЎПступМы Ўля ПткрытПгП ЎПступа (РазвеЎеМОе улОтПк 1 О 2), МП ЎругОе ЎПкуЌеМты требуют вх
191ПЎа Ўля прПсЌПтра.
192
193<p><center><b> Для ЎПступа к этПй кПллекцОО МеПбх
194ПЎОЌП ввестО user:</b> <i>demo</i> <b>О password:</b> <i>demo</i></center></p>
195
196<h3>Как рабПтает кПллекцОя</h3>\n
197
198<p>
199<!-- _text1_ -->
200The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
201configuration file</a> is exactly the same as for the original demo collection apart from the authentication directives, one plugin option (and this description).
202
203<p>
204Сх
205еЌа аутеМтОфОкацОО управляет ЎПступПЌ к кПллекцОО. ОМа является Ўвух
206ступеМчатПй. СМачала ПМа решает, ПграМОчОть лО ЎПступ к кПллекцОО в целПЌ ОлО к ПтЎельМыЌ ЎПкуЌеМтаЌ. В пПслеЎМеЌ случае ПпреЎеляется, какОе ЎПкуЌеМты являются такПвыЌО (ОлО преЎставляя спОсПк тех
207 ЎПкуЌеМтПв, к кПтПрыЌ требуется разрешеМОе Ма ЎПступ, ОлО же ПпреЎеляя, чтП все ЎПкуЌеМты являются МеЎПступМыЌО за ОсключеМОеЌ тех
208, чтП включеМы в спОсПк ПбщеЎПступМых
209 ЎПкуЌеМтПв). ТПгЎа Ўля ЎПкуЌеМтПв ПграМОчеММПгП ЎПступа ПпреЎеляется, какОЌ пПльзПвателяЌ разрешеМ к МОЌ ЎПступ.
210
211<p>
212<!-- _text3_ -->Authentication is activated by the <i>authenticate</i> directive with the value
213<i>collection</i> or <i>document</i> depending on whether authentication is to
214be performed on the full collection or on a per-document basis (the default
215value is <i>collection</i>). If authentication is on a <i>document</i> basis,
216then one can <i>either</i> specify a list of private documents (in which
217case all others are public) or a list of public documents (in which case
218all others are private) using directives <i>private_documents</i> or
219<i>public_documents</i>. СпецОфОку саЌОх
220 ЎПкуЌеМтПв ПпреЎеляют, ОспПльзуя ОЎеМтОфОкатПры ЎПкуЌеМта в Greenstone (распреЎелеММых
221 пП ПбластяЌ). СаЌый легкОй спПсПб Ох
222 ПтМесеМОя сПстПОт в тПЌ, чтПбы ПпреЎелОть ЌестПМах
223ПжЎеМОе кажЎПгП ЎПкуЌеМта в кПллекцОО О рассЌПтреть егП <i>d</i>-аргуЌеМт в URL Greenstone.
224
225<p><!-- _text2_ -->
226In this case, we have used the <i>-OIDtype dirname</i> option to HTMLPlugin,
227which specifies that directory names should be used as identifiers. This works
228for collections where each document is in a separate directory. We have used
229this option to ensure that identifiers remain the same across different
230platforms (which may not be the case for HASH identifiers), as we need to
231specify identifiers here for the authentication directives.\n
232
233<p>
234ДОректОва <i>auth_groups</i> ПпреЎеляет группы Greenstone, к кПтПрыЌ ЎПступ буЎет разрешеМ, еслО ЎПкуЌеМт (ОлО кПллекцОя) ПтМПсОтся к теЌ, Ўля кПтПрых
235 требуется аутеМтОфОкацОя. ЭтП ПпреЎеляется МазваМОеЌ группы (ОлО спОскПЌ МазваМОй групп ПпреЎелеММых
236 Пбластей). <i>Admin</i> страМОцы Greenstone пПзвПляет ПпреЎелять группы О ЎПбавлять к МОЌ МПвые.
237"
238
239# -- Simplified Chinese text ----------------
240collectionmeta collectionextra [l=zh] "
241本挔瀺銆藏所包
242含的文档䞎Greenstone挔瀺銆藏䞭䞀样䜆本銆藏还包
243括䞀些基本的讀证功胜。
244å…
245¶äž­äž€äžªæ–‡æ¡£æ˜¯å…
246¬å…
247±å¯è§çš„Farming snails 1 和 2而å…
248¶ä»–的文档则芁求å…
249ˆç™»åœ•å†æµè§ˆã€‚
250<p><center><b>芁访问本銆藏甚户名䞺</b> <i>demo</i> <b>密码䞺:</b>
251<i>demo</i></center></p>
252
253<h3>本銆藏劂䜕工䜜</h3>\n
254
255<p>陀了讀证é…
256çœ®ïŒŒäž€äžªæ’件参数以及本銆藏描述之倖本銆藏的
257<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>é…
258çœ®æ–‡ä»¶</a>䞎挔瀺銆藏的
259é…
260çœ®æ–‡ä»¶äž€æš¡äž€æ ·ã€‚
261
262<p>讀证暡匏控制本銆藏的访问权限。讀证暡匏分䞀步。銖å…
263ˆå®ƒç¡®å®šæ˜¯åŠå¯¹æ•ŽäžªéŠ†è—æˆ–者
264銆藏䞭的单
265䞪文档进行访问限制而圚后者
266情
267况䞋芁么讟定䞀䞪需芁讀证才胜访问的私有文档列衚或者
268给定
269䞀䞪å…
270¬å…
271±æ–‡æ¡£åˆ—衚陀该列衚之倖所有文档均䞺私有文档。然后对限制性访问的文档确定哪些甚户组
272拥有访问权限。\n
273
274<p>讀证暡匏由讟定<i>authenticate</i>参数的倌䞺<i>collection</i>或者
275<i>document</i>
276来激掻取哪䞪倌取决于是吊圚敎䞪銆藏或者
277单䞪文档的基础䞊进行讀证猺省倌䞺<i>collection</i>。
278劂果讀证是基于<i>document</i>文档的则<i>芁么</i>讟定䞀䞪私有文档的列衚歀时所有å…
279¶ä»–
280文档郜将是å…
281¬å…
282±æ–‡æ¡£ïŒ‰ïŒŒæˆ–者
283讟定䞀䞪å…
284¬å…
285±æ–‡æ¡£åˆ—衚歀时所有å…
286¶ä»–文档郜是私有文档这通过䜿甚
287<i>private_documents</i>或者
288<i>public_documents</i>参数来讟眮。文档本身甚Greenstone的
289文档标识笊以空栌闎隔确定这些文档的最简单方匏是圚銆藏䞭扟到这些文档然后查看它们
290Greenstone URL的<i>d</i>参数倌。\n
291
292<p>圚这种情
293况䞋我们已经讟眮了HTMLPlugin的<i>-OIDtype dirname</i>参数该参数指明文件目圕名
294应被甚䜜标识笊。这种讟眮适甚于每䞪文档郜圚䞀䞪单独的文件目圕䞭。我们䜿甚这䞪选项来确保圚䞍同系统䞋
295这些标识笊郜是䞀样的而HASH标识笊圚䞍同系统䞭可胜䞍同因䞺我们需芁圚<i>authenticate</i>参数
296䞭甚到这些标识笊。\n
297
298<p><i>auth_groups</i>参数指定了å…
299è®žè®¿é—®çš„Greenstone甚户组劂果该文档或銆藏是需芁讀证的。
300圚这䞪参数后面是䞀䞪组名或者
301是䞀䞪甚空栌闎隔的组名列衚。Greenstone <i>admin</i>页面提䟛了
302定义甚户组以及添加甚户到甚户组的功胜。\n
303"
Note: See TracBrowser for help on using the repository browser.