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

Last change on this file since 20507 was 20507, checked in by anna, 15 years ago

Improved Spanish translations of the documented example collections. Many thanks to Diego Spano.

  • Property svn:executable set to *
File size: 19.7 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mgpp
6
7indexes text dls.Title,Title dls.Subject dls.Organization dls.Keyword
8
9levels section document
10
11plugin GreenstoneXMLPlugin
12plugin HTMLPlugin -description_tags -OIDtype dirname
13plugin MetadataXMLPlugin
14plugin ArchivesInfPlugin
15plugin DirectoryPlugin
16
17classify List -metadata dls.Title
18
19classify Hierarchy -metadata "dls.Subject" -sort dls.Title
20
21classify List -sort_leaf_nodes_using dls.Title -metadata dls.Organization -bookshelf_type always
22
23classify List -metadata dls.Keyword -buttonname Howto
24
25format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
26
27format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All\': \'):Title],[parent(All\': \'):Title]:}[link][Title][/link]</td>"
28
29format 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_[Source]</i></small>}</td>"
30
31format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]"
32format DocumentImages true
33format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
34format DocumentSearchResultLinks true
35
36format HList "[link][highlight][Title][/highlight][/link]"
37
38format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
39
40format SearchTypes "plain,form"
41
42# Authentication directives
43
44authenticate document
45public_documents Jfb33fe Jfb34fe
46
47auth_group demo
48
49# -- English strings ----------------
50collectionmeta collectionname [l=en] "Authentication demo"
51
52collectionmeta .text [l=en] "text"
53collectionmeta .dls.Title,Title [l=en] "titles"
54collectionmeta .dls.Subject [l=en] "subjects"
55collectionmeta .dls.Organization [l=en] "organizations"
56collectionmeta .dls.Keyword [l=en] "how to"
57
58collectionmeta .document [l=en] "book"
59collectionmeta .section [l=en] "chapter"
60
61collectionmeta 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\"}"
62
63# -- French strings ----------------
64collectionmeta collectionname [l=fr] "Démonstration d\'authentification"
65
66# -- Spanish strings ----------------
67collectionmeta collectionname [l=es] "Demostración de autenticación"
68
69collectionmeta .text [l=es] "texto"
70collectionmeta .dls.Title,Title [l=es] "títulos"
71collectionmeta .dls.Subject [l=es] "temas"
72collectionmeta .dls.Organization [l=es] "Organizaciones"
73collectionmeta .dls.Keyword [l=es] "cómo"
74
75collectionmeta .document [l=es] "libro"
76collectionmeta .section [l=es] "capítulo"
77
78# -- Russian strings ----------------
79collectionmeta collectionname [l=ru] "ДеЌПМстрацОя аутеМтОфОкацОО"
80
81# -- Simplified Chinese strings ----------------
82collectionmeta collectionname [l=zh] "讀证挔瀺銆藏"
83
84collectionmeta .text [l=zh] "文本"
85collectionmeta .dls.Title,Title [l=zh] "题名"
86collectionmeta .dls.Subject [l=zh] "䞻题"
87collectionmeta .dls.Organization [l=zh] "机构"
88collectionmeta .dls.Keyword [l=zh] "劂䜕"
89
90collectionmeta .document [l=zh] "乊"
91collectionmeta .section [l=zh] "ç« "
92
93# -- English text ----------------
94collectionmeta 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.
95
96<p><center><b> To access this collection try user:</b> <i>demo</i> <b>and password:</b> <i>demo</i></center></p>
97
98<h3>How the collection works</h3>\n
99
100<p>
101The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
102configuration file</a> is exactly the same as for the original demo collection apart from the authentication directives, one plugin option (and this description).
103
104<p>
105The authentication scheme controls access to the collection. It works in two
106steps. First it determines whether to restrict access to the collection as a
107whole or to individual documents in it, and in the latter case which documents
108those are (either by giving a list of private documents for which access is to
109be authenticated, or specifying that all documents are private except for a
110given list of public documents). Then for access-restricted documents it
111determines which user groups are to have access.\n
112
113<p>
114Authentication is activated by the <i>authenticate</i> directive with the value
115<i>collection</i> or <i>document</i> depending on whether authentication is to
116be performed on the full collection or on a per-document basis (the default
117value is <i>collection</i>). If authentication is on a <i>document</i> basis,
118then one can <i>either</i> specify a list of private documents (in which
119case all others are public) or a list of public documents (in which case
120all others are private) using directives <i>private_documents</i> or
121<i>public_documents</i>. The documents themselves are specified using Greenstone
122document identifiers (separated by spaces): the easiest way to determine these
123is to locate each document in the collection and look at the <i>d</i> argument
124in its Greenstone URL. \n
125
126<p>In this case, we have used the <i>-OIDtype dirname</i> option to HTMLPlugin,
127which specifies that directory names should be used as identifiers. This works
128for collections where each document is in a separate directory. We have used
129this option to ensure that identifiers remain the same across different
130platforms (which may not be the case for HASH identifiers), as we need to
131specify identifiers here for the authentication directives.\n
132
133<p>
134The <i>auth_groups</i> directive specifies the Greenstone groups for to which
135access will be permitted, if the document (or collection) is one of those that
136requires authentication. It is followed by a group name (or a list of group
137names separated by spaces). The Greenstone <i>admin</i> pages allow you to
138define groups and add members to them.\n
139"
140
141# -- French text ----------------
142collectionmeta collectionextra [l=fr] "
143Cette collection de démonstration contient le même contenu que la
144collection de démonstration originale fournie avec Greenstone, mais elle
145inclue également quelques commandes d\'authentification basiques. Deux
146documents sont diffusés de maniÚre publique (Farming snails 1 & 2), alors
147que le reste des documents requiÚrent une authentification afin de pouvoir
148les consulter.
149
150<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>
151
152<h3>Comment marche cette collection?</h3>
153
154<p>
155Ce <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).
156
157<p>
158Le schéma d\'authentification contrÎle l\'accÚs à la collection. Il fonctionne en
159deux é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.
160
161<p>
162L\'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>.
163Ces documents eux-mêmes sont specifiés en utilisant les identificateurs de
164documents de Greenstone (séparés par des espaces) : la façon la plus facile de
165les determiner est de localiser chaque document dans la collection et de
166regarder son argument <i>d</i> dans son URL Greenstone.
167
168<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
169
170<p>
171La 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
172de 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.
173"
174
175# -- Spanish text ----------------
176collectionmeta collectionextra [l=es] "
177Esta 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.
178<p>
179
180<center><b>
181Para tener acceso a esta colección ingrese el nombre de usuario:
182</b><i>demo</i><b> y la contraseña: </b><i>demo</i>
183</center>
184<p>
185
186<h3>Cómo trabaja esta colección</h3>
187<p>
188El <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).
189
190<p>
191El 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.
192<p>
193
194La 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
195
196<p>En este caso, hemos usado la opción <i>-OIDtype dirname</i> del HTMLPlugin,
197la 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
198
199La 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.
200"
201
202# -- Russian text ----------------
203collectionmeta collectionextra [l=ru] "
204ДаММая ЎеЌПМстрацОПММая кПллекцОя сПЎержОт те же ЌатерОалы чтП О ПрОгОМальМая ЎеЌПМстрацОПММая кПллекцОя ГрОМстПуМ, МП включает кПЌаМЎы базПвПй аутеМтОфОкацОО. Два ЎПкуЌеМта ЎПступМы Ўля ПткрытПгП ЎПступа (РазвеЎеМОе улОтПк 1 О 2), МП ЎругОе ЎПкуЌеМты требуют вх
205ПЎа Ўля прПсЌПтра.
206
207<p><center><b> Для ЎПступа к этПй кПллекцОО МеПбх
208ПЎОЌП ввестО user:</b> <i>demo</i> <b>О password:</b> <i>demo</i></center></p>
209
210<h3>Как рабПтает кПллекцОя</h3>\n
211
212<p>
213<!-- _text1_ -->
214The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
215configuration file</a> is exactly the same as for the original demo collection apart from the authentication directives, one plugin option (and this description).
216
217<p>
218Сх
219еЌа аутеМтОфОкацОО управляет ЎПступПЌ к кПллекцОО. ОМа является Ўвух
220ступеМчатПй. СМачала ПМа решает, ПграМОчОть лО ЎПступ к кПллекцОО в целПЌ ОлО к ПтЎельМыЌ ЎПкуЌеМтаЌ. В пПслеЎМеЌ случае ПпреЎеляется, какОе ЎПкуЌеМты являются такПвыЌО (ОлО преЎставляя спОсПк тех
221 ЎПкуЌеМтПв, к кПтПрыЌ требуется разрешеМОе Ма ЎПступ, ОлО же ПпреЎеляя, чтП все ЎПкуЌеМты являются МеЎПступМыЌО за ОсключеМОеЌ тех
222, чтП включеМы в спОсПк ПбщеЎПступМых
223 ЎПкуЌеМтПв). ТПгЎа Ўля ЎПкуЌеМтПв ПграМОчеММПгП ЎПступа ПпреЎеляется, какОЌ пПльзПвателяЌ разрешеМ к МОЌ ЎПступ.
224
225<p>
226<!-- _text3_ -->Authentication is activated by the <i>authenticate</i> directive with the value
227<i>collection</i> or <i>document</i> depending on whether authentication is to
228be performed on the full collection or on a per-document basis (the default
229value is <i>collection</i>). If authentication is on a <i>document</i> basis,
230then one can <i>either</i> specify a list of private documents (in which
231case all others are public) or a list of public documents (in which case
232all others are private) using directives <i>private_documents</i> or
233<i>public_documents</i>. СпецОфОку саЌОх
234 ЎПкуЌеМтПв ПпреЎеляют, ОспПльзуя ОЎеМтОфОкатПры ЎПкуЌеМта в Greenstone (распреЎелеММых
235 пП ПбластяЌ). СаЌый легкОй спПсПб Ох
236 ПтМесеМОя сПстПОт в тПЌ, чтПбы ПпреЎелОть ЌестПМах
237ПжЎеМОе кажЎПгП ЎПкуЌеМта в кПллекцОО О рассЌПтреть егП <i>d</i>-аргуЌеМт в URL Greenstone.
238
239<p><!-- _text2_ -->
240In this case, we have used the <i>-OIDtype dirname</i> option to HTMLPlugin,
241which specifies that directory names should be used as identifiers. This works
242for collections where each document is in a separate directory. We have used
243this option to ensure that identifiers remain the same across different
244platforms (which may not be the case for HASH identifiers), as we need to
245specify identifiers here for the authentication directives.\n
246
247<p>
248ДОректОва <i>auth_groups</i> ПпреЎеляет группы Greenstone, к кПтПрыЌ ЎПступ буЎет разрешеМ, еслО ЎПкуЌеМт (ОлО кПллекцОя) ПтМПсОтся к теЌ, Ўля кПтПрых
249 требуется аутеМтОфОкацОя. ЭтП ПпреЎеляется МазваМОеЌ группы (ОлО спОскПЌ МазваМОй групп ПпреЎелеММых
250 Пбластей). <i>Admin</i> страМОцы Greenstone пПзвПляет ПпреЎелять группы О ЎПбавлять к МОЌ МПвые.
251"
252
253# -- Simplified Chinese text ----------------
254collectionmeta collectionextra [l=zh] "
255本挔瀺銆藏所包
256含的文档䞎Greenstone挔瀺銆藏䞭䞀样䜆本銆藏还包
257括䞀些基本的讀证功胜。
258å…
259¶äž­äž€äžªæ–‡æ¡£æ˜¯å…
260¬å…
261±å¯è§çš„Farming snails 1 和 2而å…
262¶ä»–的文档则芁求å…
263ˆç™»åœ•å†æµè§ˆã€‚
264<p><center><b>芁访问本銆藏甚户名䞺</b> <i>demo</i> <b>密码䞺:</b>
265<i>demo</i></center></p>
266
267<h3>本銆藏劂䜕工䜜</h3>\n
268
269<p>陀了讀证é…
270çœ®ïŒŒäž€äžªæ’件参数以及本銆藏描述之倖本銆藏的
271<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>é…
272çœ®æ–‡ä»¶</a>䞎挔瀺銆藏的
273é…
274çœ®æ–‡ä»¶äž€æš¡äž€æ ·ã€‚
275
276<p>讀证暡匏控制本銆藏的访问权限。讀证暡匏分䞀步。銖å…
277ˆå®ƒç¡®å®šæ˜¯åŠå¯¹æ•ŽäžªéŠ†è—æˆ–者
278銆藏䞭的单
279䞪文档进行访问限制而圚后者
280情
281况䞋芁么讟定䞀䞪需芁讀证才胜访问的私有文档列衚或者
282给定
283䞀䞪å…
284¬å…
285±æ–‡æ¡£åˆ—衚陀该列衚之倖所有文档均䞺私有文档。然后对限制性访问的文档确定哪些甚户组
286拥有访问权限。\n
287
288<p>讀证暡匏由讟定<i>authenticate</i>参数的倌䞺<i>collection</i>或者
289<i>document</i>
290来激掻取哪䞪倌取决于是吊圚敎䞪銆藏或者
291单䞪文档的基础䞊进行讀证猺省倌䞺<i>collection</i>。
292劂果讀证是基于<i>document</i>文档的则<i>芁么</i>讟定䞀䞪私有文档的列衚歀时所有å…
293¶ä»–
294文档郜将是å…
295¬å…
296±æ–‡æ¡£ïŒ‰ïŒŒæˆ–者
297讟定䞀䞪å…
298¬å…
299±æ–‡æ¡£åˆ—衚歀时所有å…
300¶ä»–文档郜是私有文档这通过䜿甚
301<i>private_documents</i>或者
302<i>public_documents</i>参数来讟眮。文档本身甚Greenstone的
303文档标识笊以空栌闎隔确定这些文档的最简单方匏是圚銆藏䞭扟到这些文档然后查看它们
304Greenstone URL的<i>d</i>参数倌。\n
305
306<p>圚这种情
307况䞋我们已经讟眮了HTMLPlugin的<i>-OIDtype dirname</i>参数该参数指明文件目圕名
308应被甚䜜标识笊。这种讟眮适甚于每䞪文档郜圚䞀䞪单独的文件目圕䞭。我们䜿甚这䞪选项来确保圚䞍同系统䞋
309这些标识笊郜是䞀样的而HASH标识笊圚䞍同系统䞭可胜䞍同因䞺我们需芁圚<i>authenticate</i>参数
310䞭甚到这些标识笊。\n
311
312<p><i>auth_groups</i>参数指定了å…
313è®žè®¿é—®çš„Greenstone甚户组劂果该文档或銆藏是需芁讀证的。
314圚这䞪参数后面是䞀䞪组名或者
315是䞀䞪甚空栌闎隔的组名列衚。Greenstone <i>admin</i>页面提䟛了
316定义甚户组以及添加甚户到甚户组的功胜。\n
317"
Note: See TracBrowser for help on using the repository browser.