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

Last change on this file since 19238 was 19238, checked in by kjdon, 15 years ago

changed searchtypes to format SearchTypes

  • Property svn:executable set to *
File size: 13.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 -metadata dls.Organization -bookshelf_type always -sort_leaf_nodes_using dls.Title
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
69# -- Russian strings ----------------
70collectionmeta collectionname [l=ru] "ДеЌПМстрацОя аутеМтОфОкацОО"
71
72
73# -- English text ----------------
74collectionmeta 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.
75
76<p><center><b> To access this collection try user:</b> <i>demo</i> <b>and password:</b> <i>demo</i></center></p>
77
78<h3>How the collection works</h3>\n
79
80<p>
81The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
82configuration file</a> is exactly the same as for the original demo collection apart from the authentication directives, one plugin option (and this description).
83
84<p>
85The authentication scheme controls access to the collection. It works in two
86steps. First it determines whether to restrict access to the collection as a
87whole or to individual documents in it, and in the latter case which documents
88those are (either by giving a list of private documents for which access is to
89be authenticated, or specifying that all documents are private except for a
90given list of public documents). Then for access-restricted documents it
91determines which user groups are to have access.\n
92
93<p>
94Authentication is activated by the <i>authenticate</i> directive with the value
95<i>collection</i> or <i>document</i> depending on whether authentication is to
96be performed on the full collection or on a per-document basis (the default
97value is <i>collection</i>). If authentication is on a <i>document</i> basis,
98then one can <i>either</i> specify a list of private documents (in which
99case all others are public) or a list of public documents (in which case
100all others are private) using directives <i>private_documents</i> or
101<i>public_documents</i>. The documents themselves are specified using Greenstone
102document identifiers (separated by spaces): the easiest way to determine these
103is to locate each document in the collection and look at the <i>d</i> argument
104in its Greenstone URL. \n
105
106<p>In this case, we have used the <i>-OIDtype dirname</i> option to HTMLPlugin,
107which specifies that directory names should be used as identifiers. This works
108for collections where each document is in a separate directory. We have used
109this option to ensure that identifiers remain the same across different
110platforms (which may not be the case for HASH identifiers), as we need to
111specify identifiers here for the authentication directives.\n
112
113<p>
114The <i>auth_groups</i> directive specifies the Greenstone groups for to which
115access will be permitted, if the document (or collection) is one of those that
116requires authentication. It is followed by a group name (or a list of group
117names separated by spaces). The Greenstone <i>admin</i> pages allow you to
118define groups and add members to them.\n
119"
120
121
122# -- French text ----------------
123collectionmeta collectionextra [l=fr] "
124Cette collection de démonstration contient le même contenu que la
125collection de démonstration originale fournie avec Greenstone, mais elle
126inclue également quelques commandes d'authentification basiques. Deux
127documents sont diffusés de maniÚre publique (Farming snails 1 & 2), alors
128que le reste des documents requiÚrent une authentification afin de pouvoir
129les consulter.
130
131<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>
132
133<h3>Comment marche cette collection?</h3>
134
135<p>
136_text1_
137
138<p>
139Le schéma d'authentification contrÎle l'accÚs à la collection. Il fonctionne en
140deux é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.
141
142<p>
143L'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>.
144Ces documents eux-mêmes sont specifiés en utilisant les identificateurs de
145documents de Greenstone (séparés par des espaces) : la façon la plus facile de
146les determiner est de localiser chaque document dans la collection et de
147regarder son argument <i>d</i> dans son URL Greenstone.
148
149<p>_text2_\n
150
151<p>
152La 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
153de 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.
154"
155
156
157# -- Spanish text ----------------
158collectionmeta collectionextra [l=es] "
159Esta 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.
160<p>
161
162<center><b>
163Para tener acceso a esta colección ingrese el nombre de usuario:
164</b><i>demo</i><b> y la contraseña: </b><i>demo</i>
165</center>
166<p>
167
168<h3>Cómo trabaja esta colección</h3>
169<p>
170
171_text1_
172
173<p>
174El 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.
175<p>
176
177La 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
178
179<p>_text2_\n
180
181La 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.
182"
183
184
185# -- Russian text ----------------
186collectionmeta collectionextra [l=ru] "
187ДаММая ЎеЌПМстрацОПММая кПллекцОя сПЎержОт те же ЌатерОалы чтП О ПрОгОМальМая ЎеЌПМстрацОПММая кПллекцОя ГрОМстПуМ, МП включает кПЌаМЎы базПвПй аутеМтОфОкацОО. Два ЎПкуЌеМта ЎПступМы Ўля ПткрытПгП ЎПступа (РазвеЎеМОе улОтПк 1 О 2), МП ЎругОе ЎПкуЌеМты требуют вх
188ПЎа Ўля прПсЌПтра.
189
190<p><center><b> Для ЎПступа к этПй кПллекцОО МеПбх
191ПЎОЌП ввестО user:</b> <i>demo</i> <b>О password:</b> <i>demo</i></center></p>
192
193<h3>Как рабПтает кПллекцОя</h3>\n
194
195<p>
196_text1_
197
198<p>
199Сх
200еЌа аутеМтОфОкацОО управляет ЎПступПЌ к кПллекцОО. ОМа является Ўвух
201ступеМчатПй. СМачала ПМа решает, ПграМОчОть лО ЎПступ к кПллекцОО в целПЌ ОлО к ПтЎельМыЌ ЎПкуЌеМтаЌ. В пПслеЎМеЌ случае ПпреЎеляется, какОе ЎПкуЌеМты являются такПвыЌО (ОлО преЎставляя спОсПк тех
202 ЎПкуЌеМтПв, к кПтПрыЌ требуется разрешеМОе Ма ЎПступ, ОлО же ПпреЎеляя, чтП все ЎПкуЌеМты являются МеЎПступМыЌО за ОсключеМОеЌ тех
203, чтП включеМы в спОсПк ПбщеЎПступМых
204 ЎПкуЌеМтПв). ТПгЎа Ўля ЎПкуЌеМтПв ПграМОчеММПгП ЎПступа ПпреЎеляется, какОЌ пПльзПвателяЌ разрешеМ к МОЌ ЎПступ.
205
206<p>
207_text3_ СпецОфОку саЌОх
208 ЎПкуЌеМтПв ПпреЎеляют, ОспПльзуя ОЎеМтОфОкатПры ЎПкуЌеМта в Greenstone (распреЎелеММых
209 пП ПбластяЌ). СаЌый легкОй спПсПб Ох
210 ПтМесеМОя сПстПОт в тПЌ, чтПбы ПпреЎелОть ЌестПМах
211ПжЎеМОе кажЎПгП ЎПкуЌеМта в кПллекцОО О рассЌПтреть егП <i>d</i>-аргуЌеМт в URL Greenstone.
212
213<p>_text2_\n
214<p>
215ДОректОва <i>auth_groups</i> ПпреЎеляет группы Greenstone, к кПтПрыЌ ЎПступ буЎет разрешеМ, еслО ЎПкуЌеМт (ОлО кПллекцОя) ПтМПсОтся к теЌ, Ўля кПтПрых
216 требуется аутеМтОфОкацОя. ЭтП ПпреЎеляется МазваМОеЌ группы (ОлО спОскПЌ МазваМОй групп ПпреЎелеММых
217 Пбластей). <i>Admin</i> страМОцы Greenstone пПзвПляет ПпреЎелять группы О ЎПбавлять к МОЌ МПвые.
218"
219
Note: See TracBrowser for help on using the repository browser.