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

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

opened and closed in GLI. minor formatting changes to file

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