source: collections/documented-examples/trunk/dls-e/etc/collect.cfg@ 19317

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

still working on this, committing where I am up to

  • Property svn:executable set to *
File size: 62.1 KB
RevLine 
[19198]1creator [email protected]
2public true
3
4
5plugin HTMLPlugin -description_tags -input_encoding iso_8859_1 -OIDtype dirname
6plugin GreenstoneXMLPlugin
[19060]7plugin MetadataXMLPlugin
[19198]8plugin ArchivesInfPlugin
9plugin DirectoryPlugin
10
11indexes section:text section:Title document:text
12
13classify Hierarchy -metadata dls.Subject -sort Title -buttonname Subject -hfile dls.Subject.txt
14classify Hierarchy -hlist_at_top -metadata dls.AZList -sort Title -buttonname Title -hfile dls.AZList.txt
15classify Hierarchy -metadata dls.Organization -sort Title -buttonname Organization -hfile dls.Organization.txt
16classify Hierarchy -metadata dls.Keyword -sort Title -buttonname Howto -hfile dls.Keyword.txt
17
18format VList "<td valign=top>[link][icon][/link]</td>
19<td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]
20<i><small>{If}{[Date],<br>_textdate_[Date]}{If}{[NumPages],
21<br>_textnumpages_[NumPages]}{If}{[Source],<br>_textsource_[Source]}</small></i>
22</td>"
23
24format SearchVList "<td valign=top>[link][icon][/link]</td>
25<td>{If}{[parent(All\': \'):Title],
26[parent(All\': \'):Title]:}
27[link][Title][/link]</td>"
28
29format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]"
30format DocumentImages true
31format DocumentButtons "Expand Text|Expand Contents|Detach|Highlight"
32
33
34# -- English strings ----------------
35collectionmeta collectionname [l=en] "Development Library Subset collection"
36
37collectionmeta .section:text [l=en] "chapters"
38collectionmeta .section:Title [l=en] "section titles"
39collectionmeta .document:text [l=en] "entire documents"
40
41# -- French strings ----------------
42collectionmeta collectionname [l=fr] "Sous-ensemble de la collection BibliothÚque de Développement"
43
44collectionmeta .section:text [l=fr] "chapitres"
45collectionmeta .section:Title [l=fr] "titres des sections"
46collectionmeta .document:text [l=fr] "documents entiers"
47
48# -- Spanish strings ----------------
49collectionmeta collectionname [l=es] "Subconjunto de la Biblioteca para el Desarrollo"
50
51collectionmeta .section:text [l=es] "capítulos"
52collectionmeta .section:Title [l=es] "títulos de las secciones"
53collectionmeta .document:text [l=es] "documentos completos"
54
55# -- Russian strings ----------------
56collectionmeta collectionname [l=ru] "СубкПллекцОя БОблОПтекО развОтОя"
57
58collectionmeta .section:text [l=ru] "Главы"
59collectionmeta .section:Title [l=ru] "НазваМОя разЎелПв"
60collectionmeta .document:text [l=ru] "ППлМые ЎПкуЌеМты"
61
62# -- English text ----------------
63collectionmeta collectionextra [l=en] "The Humanitarian Development Libraries
64represent a large collection of practical information aimed at helping
65reduce poverty, increasing human potential, and providing a practical and
66useful education for all. This subset contains about 25
67publications--documents, reports, and periodical articles--in various areas
68of human development, from agricultural practice to economic policies, from
69water and sanitation to society and culture, from education to
70manufacturing, from disaster mitigation to micro-enterprises.
71
72<p> The editors of this collection are Human Info NGO, HumanityCD Ltd, and
73participating organizations. Contact us at Humanitarian and Development
74Libraries Project, Oosterveldiaan 196, B-2610 Antwerp, Belgium, Tel
7532-3-448.05.54, Fax 32-3-449.75.74,
76email <a href=mailto:[email protected]>[email protected]</a>.\n
77
78<h3>How the collection works</h3>\n
79
80<p>
81The DLS collection is fairly complex. If you\'re
82just starting out you might prefer to look at some other
83collections first (e.g.
84<a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/wrdpdf-e&a=p&p=about\">Word and PDF demonstration</a>, or the
85<a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/gsarch-e&a=p&p=about\">Greenstone Archives</a>, or the
86<a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/image-e&a=p&p=about\">Simple Image collection</a>).\n
87
88<p>
89The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
90configuration file</a>, like all collection configuration files, begins with a
91line (\"creator\") that gives the email address of the collection\'s creator, and
92another (\"public\") that determines whether the collection will appear on the
[19317]93home page of the Greenstone installation. Note that setting \"public\" to \"false\" only removes it from the home page; it will still be accessible in the library to anyone that knows the URL (a=p&p=about&c=coll-shortname). \n
[19198]94
95<p>
[19317]96<b>Plugins</b>. The \"plugin\" lines in the
[19198]97<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>configuration file</a>
[19317]98give the plugins used by the collection. The documents in the DLS collection
[19198]99are in HTML, so <i>HTMLPlugin</i> must be included. The <i>description_tags</i>
100option processes tags in the text that define sections and section titles as
101described below. \n
102
103<p>
104The other plugins, <i>GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin, and DirectoryPlugin</i>, are used by Greenstone
105for internal purposes and are standard in almost all collections.
106
107<p>
108<b>Searchable indexes</b>. The block of lines starting with <i>indexes</i>
109specifies what searchable indexes will be available. In this collection there
110are three: you can see them when you pull down the \"Search for\" menu on the
111<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">search page</a>.
112The first index is called \"chapters\", the second \"section titles\",
113and the third \"entire documents\". The names of these three indexes are given by
114three <i>collectionmeta</i> statements.\n
115
116<p>
117The contents of the indexes -- that is, the specification of what it is that
118will be searched -- are defined by the <i>indexes</i> line at the beginning of
119this block. This specifies three indexes, two at the section level (beginning
120with <i>section:</i>) and one at the document level (beginning with
121<i>document:</i>). The difference is that a multi-word query will only match a
122section-level index if all query terms appear in the same section, whereas it
123will match a document-level index if the terms appear anywhere within the
124document (which typically comprises several sections). The first and third
125indexes are <i>section:text</i> and <i>document:text</i>, and the <i>:text</i>
126means that the full text of sections and documents respectively will be
127searched. The second is <i>section:Title</i>, which means that <i>Title</i>
128metadata will be searched -- in this case, section titles (rather than document
129titles). The three indexes appear in the order in which they are specified on
130the <i>indexes</i> line.\n
131
132<p>
133<b>Classifiers</b>. The block of lines labeled <i>classify</i> define the
134browsing indexes, called \"classifiers\" in Greenstone. There are four of them,
135corresponding to four buttons on the navigation bar at the top of each page in
136the collection (e.g. the <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">search page</a>):
137<i>subjects</i>, <i>titles</i>, <i>organisations</i>, and <i>keywords</i>
138The <i>search</i> button comes first, then come the four classifiers, in order.\n
139
140******* updated to here*******
141<p>
142The first classifier provides access by subject. It is a <i>Hierarchy</i>
143classifier whose hierarchy is defined in the file
144<a href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a>
145(the <i>hfile</i> argument); this file is discussed below. This classifier is
146based on <i>Subject</i> metadata, and when several books appear at a leaf of
147the hierarchy they are sorted by <i>Title</i> metadata (as you can see
148<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1.4.1\">here</a>).
149
150The second provides access by title: it is an <i>AZList</i> classifier based on
151<i>Title</i> metadata. The third provides access by organization: it is a
152<i>Hierarchy</i> classifier based on <i>Organization</i> metadata whose
153hierarchy is defined in
154<a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a>;
155this file is discussed below. Again, the leaves of the hierarchy are sorted by
156<i>Title</i> metadata. The fourth provides access by <i>Keyword</i> metadata:
157it also is a <i>Hierarchy classifer</i> (see below).\n
158
159<p>
160<b>Cover images</b>. Greenstone looks for a cover image for each document, whose name is the same as the document\'s but with a <i>.jpg</i>
161extension. This image is associated with the document, and may be displayed on the document page (see below). Cover images can be switched off by setting the -no_cover_image flag for each plugin. \n
162
163<p>
164<b>Format statements</b>. The next block contains five format statements. The
[19317]165first applies to <i>VLists</i>. These are lists of items displayed vertically
[19198]166down the page, like the the lists displayed by the <i>titles</i> browser,
167those at the leaves of the <i>subject</i> and <i>organisation</i> hierarchies,
168and the tables of contents of the target documents themselves. However, for the
169search results page it is overridden by the second format statement
170(<i>SearchVList</i>). The third governs how the document text is formatted,
171with <i>Title</i> metadata ([<i>Title</i>]) in HTML &lt;<i>h3</i>&gt; format
172followed by the text of the document [<i>Text</i>]. The fourth ensures that
173cover images are shown with each document. The fifth calls for the <i>Expand
174Text, Expand Contents, Detach</i> and <i>Highlight</i> buttons to be shown with
175each document.\n
176
177<p>
178Most format statements contain a string specified in an augmented form of
179HTML. Metadata names in square brackets (e.g. [<i>Title</i>], [<i>Creator</i>])
180give the value of that metadata; [<i>Text</i>] gives the document text. A
181hyperlink to the document can be made using [<i>link</i>] ...[<i>/link</i>]; an
182appropriate icon is produced by [<i>icon</i>]. Format strings can include
183{<i>If</i>}{... , ...} and {<i>Or</i>}{... , ...}; the first two give
184examples. These two are fairly complex format statements; we will not explain
185them here. In Greenstone, changes in format strings take effect immediately
186unless you are using the local library server, in which case the server needs
187to be restarted. This makes it easy to experiment with different versions of a
188format statement and see what happens.\n
189
[19317]190
[19198]191<p>
[19317]192<b>Collection-level metadata</b>. The <i>collectionmeta</i> lines in the
193configuration file are also standard in all Greenstone collections. They give
194general information about the collection, defining its name, and a
195description that appears on its home page. The description (in <i>collectionextra</i>) can be
196seen on the DLS collection\'s home page (this text is part of it).\n
197
198
199<p>
[19198]200<b>Language translations</b>. The last part of the
201<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
202configuration file</a> gives the collection-level metadata in French and
203Spanish respectively. The languages are indicated by square brackets:
204[<i>fr</i>] and [<i>es</i>]. If there is no language specification, English is
205assumed by default. The configuration file shows accented characters
206(e.g. French <i>é</i>). This file is in UTF-8, and these characters are
207represented by multi-byte sequences (&lt;C3&gt;&lt;A9&gt; in this
208case). Alternatively they could be represented by their HTML entity names (like
209<i>&amp;eacute</i>). It makes no difference: they look the same on the
210screen. However, if the text were <i>searchable</i> it would make a difference;
211Greenstone uses Unicode internally to ensure that searching works as expected
212for non-English languages.\n
213
214<p>
[19317]215<b>Description tags</b>. The description tags recognized by <i>HTMLPlugin</i>
[19198]216are inserted into the HTML source text of the documents to define where
217sections begin and end, and to specify section titles. They look like this:
218<pre>
219&lt;!--\n
220&lt;Section&gt;\n
221&lt;Description&gt;\n
222&lt;Metadata name=\"Title\"&gt;\n
223Realizing human rights for poor people: Strategies\n
224for achieving the international development targets\n
225&lt;/Metadata&gt;\n
226&lt;/Description&gt;\n
227--&gt;\n
228(text of section goes here)\n
229&lt;!--\n
230&lt;/Section&gt;\n
231-->\n
232</pre>
233The &lt;!-- ... --&gt; markers are used to ensure that these tags are marked as
234comments in HTML and therefore do not affect document formatting. In the
235<i>Description</i> part other kinds of metadata can be specified, but this is
236not done for the style of collection we are describing here. Exactly the same
237specification (including the &lt;!-- ... --&gt markers) can be used in Word
238documents too.\n
239
240<p>
241<b>Metadata Files</b>. Metadata for all documents in the DLS collection
242is provided in metadata.xml files, one per document folder.
[19317]243The <a href=\"_httpcollection_/import/r0087e/metadata.xml\" target=text>metadata.xml</a> file for one book -- <i>Income generation and money management: training women as entrepreneurs</i>
[19198]244-- is a block of about ten lines encased in &lt;<i>FileSet</i>&gt; ...
245&lt;<i>/FileSet</i>&gt; tags. It defines
[19317]246<i>dls.Title</i>, <i>dls.Language</i>, <i>dls.Subject</i> and <i>dls.AZList</i> metadata. More
247than one value can be specified for any metadata item. For example, this book has two dls.Subject classifications. Both of these
[19198]248are stored as metadata values for this particular document (because
249<i>mode=accumulate</i> is specified; the alternative, and the default, is
250<i>mode=override</i>).\n
251
252<p><b>Hierarchy files</b>. The subject hierarchy file <a
253href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> contains a
254succession of lines each of which has three items. The first and last items
255are text strings, and they are the same. The middle item is a number that
256defines the position in the hierarchy. The first string is matched against the
257metadata that occurs in the <i>metadata.xml</i> file described above; the last
258one is the string that describes that node of the hierarchy on the web pages
259that Greenstone generates.\n
260
261<p>
262For example, the first line contains the three items \"Industry, Manufacture
263and Services\", 1, and \"Industry, Manufacture and Services\". The middle one,
264the numeral 1, indicates that this subject appears at the first position of the
265<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">subject hierarchy</a>).
266The first item, the string \"Industry, Manufacture and Services\", is what appears in
267the <a href=\"_httpcollection_/import/t0021e/metadata.xml\" target=text>metadata.xml</a> file
268as <i>Subject</i> metadata. The third item, which happens to be the same string,
269is what appears as the text in the first position of the subject hierarchy.
270
271<p>
272The organization hierarchy file
273<a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a>
274has exactly the same structure. Again, the first and last text strings on each
275line are the same because the metadata values in <i>metadata.xml</i> are
276exactly what should be shown on the Greenstone web pages. The number between
277defines the position in the hierarchy: in this case the hierarchy is flat and
278the position is simply an integer that determines the order of the list.\n
279
280<p>
281The <i>Keyword</i> classifier is also a hierarchy classifier, in this case
282based on <i>Keyword</i> metadata. This is to allow for the possibility that two
283different documents have the same keyword.\n
284"
285
286# -- French text ----------------
287collectionmeta collectionextra [l=fr] "Les BibliothÚques humanitaires pour le
288Développement constituent une collection importante dont les objectifs sont
289d\'aider à réduire la pauvreté, de promouvoir l\'accroissement du
290potentiel humain, et d\'offrir une éducation pratique et utile à tous.
291Cette collection contient environ 25 publications -- documents, rapports, et
292articles de périodiques -- qui traitent de différents sujets liés au
293développement humain. On y trouve des informations concernant les pratiques
294agricoles aussi bien que les politiques économiques; les mesures d\'hygiÚne
295pour l\'eau et la société et la culture; l\'éducation et la petite
296industrie; la prévention des désastres et les micro-entreprises.
297<p>
298Les éditeurs
299de cette collection sont Human Info NGO, HumanityCD Ltd, and organisations
300ayant contribué. Vous pouvez nous contacter à Humanitarian and Development
301Libraries Project, Oosterveldiaan 196, B-2610 Antwerp, Belgium, Tel
30232-3-448.05.54, Fax 32-3-449.75.74, courriel <a
303href=mailto:[email protected]>[email protected]</a>.
304
305<h3>Comment, marche la collection</h3>
306
307<p>
308La collection DLS est assez
309complexe. Pour un débutant, il serait préférable de consulter d\'abord d\'autres collections
310(par exemple <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/wrdpdf-e&a=p&p=about\">Démonstration Word et PDF</a> ou les <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/gsarch-e&a=p&p=about\">Greenstone Archives</a> ou la collection <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/image-e&a=p&p=about\">Simple Image</a>).
311
312<p>
[19317]313Le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de configuration</a> de la collection, comme tous les fichiers de configuration de collection, commence avec une ligne (\"creator\") qui donne l\'adresse e-mail du créateur de la collection et une autre ligne (\"public\") qui détermine la maniÚre d\'apparition de la collection sur la page d\'accueil de Greenstone. _text3_
[19198]314
315<p>
[19317]316<b>Plugins</b>. _text4_ Les documents dans la collection DLS sont en HTML, ainsi <i>HTMLPlugin</i> doit être inclus. L\'option <i>description_tags</i> traite des onglets dans le texte qui définissent les sections et les titres de section comme décrit ci-dessous.
[19198]317
318<p>
319Les autres plugins, <i>GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin et DirectoryPlugin</i> sont utilisés par Greenstone pour des objectifs internes et sont des références dans presque toutes les collections.
320
321<p>
322<b>Index recherchables</b>. Le bloc de lignes qui commence avec <i>index</i>
323précise les type d\'index de recherche disponibles. Dans cette collection on en compte trois. Vous pouvez les voir en déroulant le menu \"Rechercher des\" sur la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">page de recherche</a>. Le premier index est appelé \"chapitre\" , le second \"titres de section\" et le troisiÚme \"documents entiers\". Les noms de ces trois index sont donnés par les trois déclarations <i>collectionmeta</i>.
324
325<p>
326Les contenus des trois index, à savoir la spécification de ce qui sera recherché, sont définies
327par la ligne des <i>index</i> au début de ce bloc. Trois index sont spécifiés, deux au niveau section (commençant par <i>section:</i>) et un autre au niveau document (commençant par <i>document:</i>.) La différence est qu\'une requête à mots multiples ne conviendra qu\'à un index de niveau section si tous les termes recherchés se trouvent dans la même section, tandis qu\'elle conviendra à un index de niveau document si les termes apparaissent n\'importe où dans le document
328(qui typiquement, comprend plusieurs sections). Le premier et le troisiÚme index sont
329<i>section:text</i> et <i>document:text</i>, et <i>:text</i> signifie que le texte complet des sections et celui des documents seront respectivement recherchés. Le second est <i>section:Title</i>, qui signifie que la méta-donnée <i>Title</i> sera recherchée -- dans ce cas, les titres de section (plutÎt que les titres de document). Les trois index apparaissent dans l\'ordre dans lequel ils sont précisés sur la ligne <i>indexes</i>.
330
331<p>
332<b>Classificateurs</b>. Le bloc de lignes libellé <i>classify</i> définit les index de navigation appelés \"classifiers\" dans Greenstone. Ils sont quatre, correspondant aux quatre boutons sur la barre de navigation en haut de chaque page dans la collection (c\'est à dire la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">page de recherche</a>): <i>thÚmes</i>, <i>titres</i>, <i>organisation</i> et <i>comment faire</i>. Le bouton de <i>recherche</i> vient en premier, les quatre classificateurs.
333
334<p>
335Le premier classificateur fournit un accÚs par sujet. C\'est un classificateur <i>Hierarchy</i> dont la hiérarchie est définie dans le fichier <a href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> (l\'argument \"<i>hfile</i>\"); ce fichier est présenté ci-dessous. Ce classificateur est basé sur la méta-donnée <i>Subject</i> et quand plusieurs livres apparaissent sur une feuille de la hiérarchie, ils sont triés suivant la méta-donnée <i>Title</i> (comme visible <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1.4.1\">ici</a>). Le second fournit un accÚs par titre: c\'est un classificateur <i>AZList</i> basé sur les méta-données <i>Title</i>. Le troisiÚme fournit un accÚs par organisation: c\'est un classificateur <i>Hierarchy</i> basé sur les méta-données <i>Organization</i> dont la hiérarchie est définie dans <a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a>; ce fichier est présenté ci-dessous. De même, les feuilles de la hiérarchie sont triées suivant les meta-données <i>Title</i>. Le quatriÚme fournit un accÚs par méta-donnée <i>Keyword</i>: c\'est aussi un classificateur <i>Hierarchy</i> (voir ci-dessous).
336
337<p>
338<b>Images Couverture</b>. Greenstone cherche une image couverture pour chaque document, dont le nom est le même que le document\'s mais avec une extension <i>.jpg</i>. Cette image est associée avec le document et pourrais être visualisé sur la page du document (voir ce-dessous). Les images couverture peuvent-être éteintes en réglant le drapeau -no_cover_image pour chauqe plug-in. \n
339
340<p>
[19317]341<b>Déclarations de format</b>. Le bloc suivant contient cinq déclarations de format. La premiÚre s\'applique à <i>VLists</i>. Ce sont des listes d\'articles affichés verticalement vers le bas de la page, comme les listes visualisées par le navigateur <i>titres</i>, celles qui sont sur les feuilles de hiérarchie <i>thÚmes</i> et <i>organisation</i>, et les tables des matiÚres des documents cibles eux-mêmes. Cependant, la page des résultats de recherche est écrasée par la seconde déclaration de format (<i>SearchVList</i>). La troisiÚme gouverne le formatage du texte du document avec des méta-données <i>Title</i> ([<i>Title</i>]) au format HTML &lt;<i>h3</i>&gt suivi du texte du document [<i>Text</i>]. La quatriÚme assure que les images de couverture
[19198]342sont affichées avec chaque document. La cinquiÚme exige que les boutons <i>Expand text</i>,
343<i>Expand contents</i>, <i>Detach</i> et <i>Highlight</i> soient affichés avec chaque document.
344
345
346<p>
347La plupart des déclarations de format contiennent une chaîne spécifiée en HTML mise en valeur.
348Les noms de méta-données entre crochets (c\'et à dire [<i>Title</i>], [<i>Creator</i>]), donne la valeur de ces méta-données; [<i>Text</i>] donne le document texte. Un hyperlien au document peut être obtenu en utilisant [<i>link</i>] ... [<i>/link</i>]; une icÎne appropriée est générée par [<i>icon</i>]. Des chaînes de format peuvent inclure {<i>If</i>} {...,...} et {<i>Or</i>} {...,...}; les deux premiÚres en donnent des exemples. Ces deux sont des déclarations de format assez complexes qui ne seront pas expliquées ici. Dans Greenstone, les changements dans les chaînes de format prennent effet immédiatement à moins que vous n\'utilisiez le serveur de la bibliothÚque locale, auquel cas, le serveur à besoin d\'être réinitialisé. Cela rend facile l\'expérimentation de versions différentes d\'une déclaration de format et de voir ce qui se passe.
349
350<p>
[19317]351<b>Méta-données de niveau collection</b>. Les lignes <i>collectionmeta </i> dans le fichier de configuration sont aussi standard dans toutes les collections Greenstone.
352Elles donnent une information générale sur la collection par la définition de son nom, et par une description qui apparaît sur la page d\'accueil. La description (dans <i>collectionextra</i>) peut être vue sur la page
353d\'accueil de la collection (_text2_).
354
355<p>
[19198]356<b>Traduction de langues</b>. La derniÚre partie du <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de configuration de la collection</a> donne les méta-données de niveau collection en Français et en Espagnol respectivement. Les langues sont indiquées par des crochets:[<i>fr</i>] et [<i>es</i>]. Si aucune langue n\'est spécifiée, l\'Anglais est supposé par défaut. Le fichier de configuration montre des caractÚres mis en valeur (par exemple le \"<i>é</i>\" français). Ce fichier est en UTF-8, et ces caractÚres sont représentés par des séquences multi-octets (&lt;C3&gt;&lt;A9&gt) dans ce cas). Autrement, elles pourraient être représentées par leurs noms d\'entité (comme <i>&amp;eacute</i>). Cela ne présente aucune différence: ils sont identiques à l\'écran. Cependant si les textes faisaient l\'objet d\'une recherche, une différence aurait été notée; Greenstone utilise Unicode de façon interne pour s\'assurer que le processus de recherche fonctionne comme prévu pour les langues autre que l\'anglais.
357
358<p>
[19317]359<b>Etiquettes de description</b>. Les étiquettes de description identifiées par \"HTMLPlugin\" sont insÚrées dans le texte source HTML des documents pour délimiter le début et la fin des sections et pour spécifier les titres de section. Ils se présentent comme suit:
[19198]360<pre>
361&lt;!--\n
362&lt;Section&gt;\n
363&lt;Description&gt;\n
364&lt;Metadata name=\"Title\"&gt;\n
365Realizing human rights for poor people: Strategies\n
366for achieving the international development targets\n
367&lt;/Metadata&gt;\n
368&lt;/Description&gt;\n
369--&gt;\n
370(text of section goes here)\n
371&lt;!--\n
372&lt;/Section&gt;\n
373-->\n
374</pre>
375Les marqueurs &lt;!-- ... --&gt; sont utilisés pour assurer que ces étiquettes sont indiquées comme
376commentaires dans HTML et par conséquent n\'ont aucun effet sur le formatage. Dans la partie
377<i>Description</i>, d\'autres types de méta-données peuvent être spécifiés mais ceci n\'est pas fait pour le style de collection décrit ici. La même spécification (y compris les marqueurs &lt;!-- ... --&gt;) peut être utilisée de façon tout à fait identique dans les documents Word.
378
379<p>
[19317]380<b>Fichiers de méta-données</b>. Les méta-données pour tous les documents de la collection DLS sont fournies dans le fichier metadata.xml. Le fichier <a href=\"_httpcollection_/import/r0087e/metadata.xml\" target=text>metadata.xml</a> pour le livre--<i>Income generation and money management: training women as entrepreneurs</i> --est un bloc de dix lignes comprises entre les étiquettes &lt;<i>FileSet</i>&gt; ... &lt;<i>/FileSet</i>&gt;. Elle définit les méta-données <i>dls.Title</i>, <i>dls.Language</i>, <i>dls.Subject</i> et <i>dls.AZList</i>. Plus d\'une valeur peut être spécifiée pour n\'importe quel élément de méta-donnée. _text5_ Toutes les deux sont enregistrées comme comme valeurs de méta-donnée pour ce document particulier (parce que <i>mode=accumulate</i> est spécifié; autrement, le défaut est <i>mode=override</i>).
[19198]381
382<p>
383<b>Fichiers d\'hiérarchie</b>. Le fichier d\'hiérarchie de sujet <a
384href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> contient
385une suite de lignes dont chacune a trois éléments. Le premier et le dernier élément sont
386des chaînes de textes, et ils sont identiques. L\'élément du milieu est un nombre qui définit la position dans la hiérarchie. La premiÚre chaîne est ajustée sur la méta-donnée qui intervient dans le fichier <i>metadata.xml</i> décrit ci-dessus; la derniÚre est la chaîne qui décrit le n\'ud de la
387hiérarchie sur les pages web que Greenstone génÚre.
388
389<p>
390Par exemple, la premiÚre ligne contient les trois éléments \"Industry, Manufacture, and Services\", 1, et \"Industry, Manufacture and Services\". Celui du milieu, le nombre 1, indique que ce sujet apparaît en premiÚre position de <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">subject Hierarchy</a>). Le premier élément, la chaîne \"Industry, Manufacture and Services\", apparaît dans le fichier <a href=\"_httpcollection_/import/t0021e/metadata.xml\" target=text>metadata.xml</a> comme méta-donnée <i>Subject</i>. Le troisiÚme élément qui se trouve être la même chaîne, apparaît dans le texte en premiÚre position de la hiérarchie de sujet.
391
392<p>
393Le fichier d\'hiérarchie d\'organisation <a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a> a exactement la même structure. De nouveau, les premiÚres et derniÚres chaînes de texte sont les mêmes sur chaque ligne parce que les valeurs de méta-donnée dans <i>metadata.xml</i> sont exactement ce qui doit être affiché sur les pages d\'accueil de Greenstone. Le nombre intermédiaire définit la position dans la hiérarchie: dans ce cas-ci, la hiérarchie est plate et la position est tout simplement un entier qui détermine l\'ordre de la liste.
394
395<p>
396Le classificateur <i>Keyword</i> est aussi un classificateur de hiérarchie, basé dans ce cas-ci sur la méta-donnée <i>Keyword</i>. Ceci pour offrir la possibilité à deux documents différents d\'avoir le même mot-clé.
397"
398
399# -- Spanish text ----------------
400collectionmeta collectionextra [l=es] "
401Las Bibliotecas sobre Aspectos
402Humanitarios y de Desarrollo representan una extensa colecci&oacute;n de
403informaci&oacute;n pr&aacute;ctica cuyo prop&oacute;sito es ayudar a
404reducir la pobreza, acrecentar el potencial humano y proveer una
405educaci&oacute;n pr&aacute;ctica y &uacute;til para todos. Este subconjunto
406comprende unas 25 publicaciones - documentos, informes t&eacute;cnicos y
407art&iacute;culos de publicaciones peri&oacute;dicas - en varias
408&aacute;reas del desarrollo humano, desde pr&aacute;cticas agr&iacute;colas
409a pol&iacute;ticas econ&oacute;micas, desde agua y saneamiento a sociedad y
410cultura, desde educaci&oacute;n a manufactura, desde mitigaci&oacute;n de
411desastres a microemprendimientos.\n<p>\nLos editores de esta
412colecci&oacute;n son la ONG Human Info, HumanityCD Ltd y dem&aacute;s
413organizaciones participantes. Cont&aacute;ctenos en: Proyecto de
414Bibliotecas sobre Aspectos Humanitarios y de Desarrollo , Oosterveldiaan
415196, B-2610 Antwerp, B&eacute;lgica, Tel 32-3-448.05.54, Fax
41632-3-449.75.74, correo electr&oacute;nico <a
417href=mailto:[email protected]>[email protected]</a>.
418
419<h3>Cómo trabaja esta colección</h3>
420
421La colección DLS es bastante compleja. Si apenas está empezando a familiarizarse con su uso quizá fuera mejor que se fijara primero en alguna otra colección (como la <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/wrdpdf-e&a=p&p=about\">Demostración en Word y PDF</a>, los <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/gsarch-e&a=p&p=about\">Archivos Greenstone</a> o la <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/image-e&a=p&p=about\">colección de imágenes sencillas</a>).
422<p>
423
[19317]424Al igual que todos los archivos de configuración de colecciones, el <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración de esta colección</a>, empieza con una línea (\"creador\") que proporciona la dirección de correo electrónico del creador de la colección y otra (\"pública\") que determina si la colección aparecerá en la página principal del programa Greenstone. _text3_
[19198]425
426<p>
427
[19317]428<b>Plugins</b>. _text4_ Los documentos en la colección DLS están en HTML, por lo que se deberá incluir <i>HTMLPlugin</i>. La opción <i>description_tags</i> procesa las etiquetas en el texto que definen secciones y títulos de secciones tal como se describe a continuación.
[19198]429<p>
430
431Los otros plugins, GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin, y DirectoryPlugin, son empleados por Greenstone con fines particulares y son estándar en casi todas las colecciones.
432<p>
433
434<b>Índices de búsqueda</b>. El bloque de líneas que empieza con <i>índices</i> especifica los índices de búsqueda que están disponibles. En esta colección hay tres, los cuales se pueden ver al momento de desplegar el menú \"Buscar\" en la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">página de búsqueda</a>. El primer índice se llama \"capítulos\", el segundo \"títulos de sección\" y el tercero \"documentos enteros\". Los nombres de estos tres índices están dados por tres enunciados <i>collectionmeta</i>.
435<p>
436
437El contenido de los índices -- es decir, la especificación de lo que se va a buscar -- se define por medio de la línea que se encuentra al principio de este bloque. Esta especifica tres índices, dos a nivel de sección (los cuales empiezan con <i>section:</i>) y uno a nivel de documento (el cual empieza con <i>document:</i>). La diferencia está en que una consulta de varias palabras únicamente encontrará una correspondencia en un índice a nivel de sección si todos los términos de la consulta aparecen en la misma sección, mientras que encontrará la correspondencia en un índice a nivel de documento si los términos aparecen en cualquier parte del documento (el cual consiste normalmente de varias secciones). El primero y tercer índices son <i>section:text</i> y <i>document:text</i>, donde <i>:text</i> significa que se buscará en todo el texto de la sección o el documento, respectivamente. El segundo es <i>section:Title</i>, el cual indica que se buscarán metadatos de <i>Título</i>, en este caso títulos de secciones (más que títulos de documentos). Los tres índices aparecerán en el orden en que se especificaron en la línea de <i>índices</i>.
438<p>
439
440<b>Clasificadores</b>. El bloque de líneas con la etiqueta <i>clasificar</i> define los índices de exploración, llamados \"clasificadores\" en Greenstone. Hay cuatro de ellos correspondientes a los cuatro botones en la barra de navegación que se encuentra en la parte superior de cada página de la colección (p. ej. la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">página de búsqueda</a>): <i>asuntos, títulos de la \"a\" a la \"z\", organizaciones y palabras clave</i>. El botón de <i>búsqueda</i> aparece primero y a continuación los cuatro clasificadores en orden.
441<p>
442
443El primer clasificador le da acceso al asunto. Es un clasificador <i>de Jerarquía</i>, el cual se define en el archivo <a href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> (el argumento <i>hfile</i>); este archivo se describe más adelante. El clasificador se basa en el metadato <i>Sujeto</i> y cuando varios libros aparecen en una hoja de la jerarquía se ordenan por medio del metadato <i>Título</i> (como se puede ver <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1.4.1\">aquí</a>). El segundo le da acceso al título. Es un clasificador <i>AZList</i> basado en el metadato <i>Título</i>. El tercero le da acceso a la organización. Es un clasificador <i>de Jerarquía</i> basado en el metadato Organización, cuya jerarquía se define en <a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a>; este archivo se describe más adelante. Nuevamente, las hojas de la jerarquía se ordenan por medio del metadato <i>Título</i>. El cuarto le da acceso por medio del metadato de <i>palabra clave</i>. También es un <i>clasificador de Jerarquía</i> (véase más adelante).
444<p>
445
446<p>
447<b>Imágenes de Portada</b>. Greenstone buscar una imágen de portada para cada documento cuyo nombre sea el mismo al documento pero con una extensión <i>.jpg</i>. Esta imágen está asociada con el documento, y puede ser mostrada en la página del documento (ver aqui abajo). Las imágenes de portada pueden ser apagadas al ajustar el -no_imágen_de_portada para cada entrada. \n
448
449
[19317]450<b>Enunciados de formato</b>. El siguiente bloque contiene cinco enunciados de formato. El primero es aplicable a las <i>VLists</i>. Éstas son listas de ítems que se despliegan verticalmente en la página, al igual que las listas desplegadas por el explorador de <i>títulos de la \"a\" a la \"z\"</i>, las que se encuentran en el último nodo de las jerarquías de <i>asunto y organización</i>, y las tablas de contenidos de los documentos mismos. Sin embargo, para la página de resultados de la búsqueda el segundo enunciado de formato (<i>SearchVList</i>) tiene la preferencia. El tercero rige la forma en que el texto del documento se formatea, con el metadato <i>Título</i> ([<i>Title</i>]) en formato HTML &lt;<i>h3</i>&gt;, seguido por el texto del documento [<i>Text</i>]. El cuarto asegura que las imágenes de la portada aparezcan con cada documento. El quinto hace que los botones <i>Extender Texto, Extender Contenido, Separar y Resaltar</i> aparezcan con cada documento.
[19198]451<p>
452
453La mayoría de los enunciados de formato contienen una cadena escrita en una forma aumentada de HTML. Los nombres de los metadatos entre corchetes (p. ej. [<i>Title</i>], [<i>Creator</i>]) dan el valor de dicho metadato. [<i>Text</i>] da el texto del documento. También se puede establecer un hipervínculo con el documento por medio de [link] ...[/link]. Un icono apropiado es producido por [<i>icon</i>]. Las cadenas de formato pueden incluir {<i>If</i>}{... , ...} y {<i>Or</i>}{... , ...}. Los primeros dos contienen ejemplos. Estos dos son enunciados de formato demasiado complejos, por lo que no los explicaremos aquí. En Greenstone los cambios en las cadenas de formato tienen efecto inmediatamente a menos que se esté usando el servidor local, en cuyo caso el servidor necesitará reiniciarse. Esto hace que sea fácil experimentar con diferentes versiones de un enunciado de formato y ver qué pasa.
[19317]454
[19198]455<p>
456
[19317]457<b>Metadatos a nivel de colección</b>. Las líneas de <i>collectionmeta</i> en el archivo de configuración también son estándar en todas las colecciones Greenstone. Contienen información general acerca de la colección definiendo su nombre, y una descripción que aparece en su página inicial. La descripción (en <i>collectionextra</i>) se puede ver en la página inicial de la colección DLS (_text2_).
458<p>
459
[19198]460<b>Traducción de idioma</b>. La última parte del <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración de la colección</a> proporciona los metadatos a nivel de colección en francés y español, respectivamente. Estos idiomas se indican por medio de corchetes: [<i>fr</i>] y [<i>es</i>]. Si no hay ninguna especificación del idioma, entonces el inglés se asume por omisión. El archivo de configuración muestra los caracteres que se acentúan (p. ej. la é francesa). Este archivo está en UTF-8 y los caracteres se representan por medio de secuencias de varios bytes (&lt;C3&gt;&lt;A9&gt; en este caso). De forma alternativa se pueden representar por medio de nombres de entes HTML (como &amp;eacute). No hay ninguna diferencia y se ven igual en la pantalla. Sin embargo, esto sí representaría una diferencia en el caso de que el texto se buscara. Greenstone utiliza Unicode internamente para asegurarse que las búsquedas trabajen tal como se espera con idiomas diferentes al inglés.
461<p>
462
[19317]463<b>Etiquetas de descripción</b>. Las etiquetas de descripción reconocidas por <i>HTMLPlugin</i> se insertan en el texto fuente HTML de los documentos para definir el lugar en el que las secciones empiezan y terminan y para especificar los títulos de sección. Se ven de la siguiente manera:
[19198]464<p>
465
466<pre>
467&lt;!--\n
468&lt;Section&gt;\n
469&lt;Description&gt;\n
470&lt;Metadata name=\"Title\"&gt;\n
471Haciendo realidad los derechos humanos para la gente pobre: Estrategias\n
472para lograr los objetivos de desarrollo mundial\n
473&lt;/Metadata&gt;\n
474&lt;/Description&gt;\n
475--&gt;\n
476(el texto de la sección va aquí)\n
477&lt;!--\n
478&lt;/Section&gt;\n
479-->\n
480</pre>
481<p>
482
483Los marcadores &lt;!-- ... --&gt se utilizan para asegurarse que estas etiquetas estén marcadas como comentarios en HTML y por lo tanto que no afecten el formato del documento. En la parte de <i>Descripción</i> se pueden especificar otros tipos de metadatos, pero esto no se hace para el estilo de colección que estamos describiendo aquí. Exactamente la misma especificación (incluyendo los marcadores &lt;!-- ... --&gt) se puede usar también en los documentos Word.
484<p>
485
[19317]486<b>Archivos de metadatos</b>. Los metadatos para todos los documentos de la colección DLS se proporcionan en documentos metadata.xml, un documento por folder. El documento <a href=\"_httpcollection_/import/r0087e/metadata.xml\" target=text>metadata.xml</a> para el libro--<i>Income generation and money management: training women as entrepreneurs</i> -- es un bloque de alrededor diez lineas encerradas en las etiquetas &lt;<i>FileSet</i>&gt; ... &lt;<i>/FileSet</i>&gt;. El cual define los metadatos <i>dls.Title, dls.Language, dls.Subject</i> y <i>dls.AZList</i>. Se puede especificar más de un valor para cualquier ítem del metadato. _text5_ Ambos se almacenan como valores del metadato para este documento en particular (ya que se especifica <i>mode=accumulate</i>; la alternativa y el valor por omisión es <i>mode=override</i>).
[19198]487<p>
488
489<b>Archivos de jerarquía</b>. El archivo de jerarquía del asunto <a href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> contiene una serie de líneas cada una de las cuales tiene tres ítems. El primero y último son cadenas de texto y son iguales. El ítem intermedio es un número que define la posición en la jerarquía. La primer cadena corresponde al metadato que ocurre en el archivo <i>metadata.xml</i> que se describe arriba, mientras que la última describe el nodo de la jerarquía en las páginas Web que Greenstone genera.
490<p>
491
492Por ejemplo, la primera línea contiene los tres ítems \"Industria, Manufactura y Servicios\", 1 y finalmente \"Industria, Manufactura y Servicios\". El ítem intermedio con el numeral 1 indica que este asunto aparece en la primera posición de la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">jerarquía de asunto</a>. El primer ítem con la cadena \"Industria, Manufactura y Servicios\" es lo que aparece en el archivo <a href=\"_httpcollection_/import/t0021e/metadata.xml\" target=text>metadata.xml</a> como <i>Asunto</i>. El tercer ítem es el mismo y es lo que aparece como texto en la primera posición de la jerarquía del asunto.
493<p>
494
495El archivo de jerarquía de la organización <a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a> tiene exactamente la misma estructura. Nuevamente la primera y última cadena de texto en cada línea son las mismas, ya que los valores de los metadatos que se encuentran en <i>metadata.xml</i> son exactamente lo que se va a mostrar en las páginas Web de Greenstone. El número entre ambas define la posición en la jerarquía: en este caso la jerarquía es plana y la posición es simplemente un número entero que determina el orden de la lista.
496<p>
497
498El clasificador de <i>Palabras Clave</i> también es un clasificador de jerarquía, en este caso basado en el metadato <i>Palabra Clave</i>. Esto permite la posibilidad de que dos documentos diferentes tengan la misma palabra clave.
499"
500
501# -- Russian text ----------------
502collectionmeta collectionextra [l=ru] "
503БОблОПтекО гуЌаМОтарМПгП развОтОя преЎставляют бПльшую кПллекцОю практОческПй ОМфПрЌацОО, пПлезМПй прО ПказаМОО пПЌПщО Ўля уЌеМьшеМОя беЎМПстО, увелОчеМОя гуЌаМОтарМПгП пПтеМцОала, а также ПбеспечеМОя практОчМПгП О пПлезМПгП ПбразПваМОя Ўля всех
504. ЭтП пПЎЌМПжествП сПЎержОт прОблОзОтельМП 25 публОкацОй -- ЎПкуЌеМтПв, сППбщеМОй О перОПЎОческОх
505 статей -- в разлОчМых
506 Пбластях
507 челПвеческПгП развОтОя, Пт сельскПх
508ПзяйствеММПй практОкО ЎП экПМПЌОческПй пПлОтОкО, Пт вПЎы О ПчОсткО ЎП Пбщества О культуры, Пт ПбразПваМОя ЎП прПОзвПЎства, Пт уЌеМьшеМОя беЎствОй ЎП Ќалых
509 преЎпрОятОй.
510<p>
511
512ИзЎателО этПй кПллекцОО -- ГуЌаМОтарМая ОМфПрЌацОПММая МеправОтельствеММая ПргаМОзацОя Human Info NGO, Humanity CD Ltd, О ЎругОе сПтруЎМОчающОе ПргаМОзацОО. КПМтакты с МОЌО вПзЌПжМы через ПрПект гуЌаМОтарМых
513 О развОвающОх
514ся бОблОПтек: Oosterveldiaan 196, B-2610 Antwerp, Belgium, Tel 32-3-448.05.54, Fax 32-3-449.75.74, email <a href=mailto:[email protected]>[email protected]</a>.
515<p>
[19317]516
[19198]517<h3>Как рабПтает кПллекцОя</h3>
518<p>
519
520_text1_
[19317]521еслО Вы являетесь тПлькП МачОМающОЌ пПльзПвателеЌ, тП лучше вМачале ПзМакПЌОться с МекПтПрыЌО ЎругОЌО кПллекцОяЌО (МапрОЌер, с <a href=\"_gwcgi_?l=_cgiargl_&c=documented-examples/wrdpdf-e&a=p&p=about\">msword О pdf ЎеЌПМстрацОяЌО</a> ОлО же с арх
[19198]522ОваЌО ОлО с прПстПй графОческПй кПллекцОей).
523<p>
524
525<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>КПМфОгурацОПММый файл</a> кПллекцОО, пПЎПбМП всеЌ кПМфОгурацОПММыЌ файлаЌ ЎругОх
526 кПллекцОй, МачОМается сП стрПкО «СПзЎатель» (\"Сreator\"), кПтПрая сППбщает аЎрес электрПММПй пПчты СПзЎателя кПллекцОО, О ЎругПй -- «ПублОка» (\"Public\"), кПтПрая ПпреЎеляет, пПявОтся лО кПллекцОя Ма ЎПЌашМей страМОце устаМПвкО Greenstone. _text3_
527
528<p>
529
530
531<b>ПлагОМы</b>. _text4_ ДПкуЌеМты в кПллекцОО DLS преЎставлеМы в HTML-фПрЌате, так чтП <i>HTMLPlugin</i> ЎПлжеМ быть включеМ. ОпцОя <i>description_tags</i> Пбрабатывает тэгО (прОзМакО) в тексте, кПтПрые ПпреЎеляют разЎелы О МаОЌеМПваМОя разЎелПв, как ПпОсаМП МОже.
532<p>
533
534ДругОе плагОМы <i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>,<i>ArchivesInfPlugin</i> О <i>DirectoryPlugin</i> ОспПльзуются в Greenstone Ўля вМутреММОх
535 целей О являются стаМЎартМыЌО пПчтО вП всех
536 кПллекцОях
537.
538<p>
539
540<b>ИМЎексы пПОска</b>. БлПк стрПк, МачОМающОйся с <i>indexes</i>, ПпреЎеляет, какОе пПОскПвые ОМЎексы буЎут ЎПступМы. В этПй кПллекцОО есть трО ОМЎекса. Вы ЌПжете Ох
541 вОЎеть в МОспаЎающеЌ ЌеМю «ППОск» Ма <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">страМОце пПОска</a>. Первый ОМЎекс Мазывается «Главы», втПрПй -- «НазваМОя разЎелПв» О третОй -- «ППлМые ЎПкуЌеМты». НазваМОя этОх
[19317]542 трех
[19198]543 ОМЎексПв Ўаются треЌя ПператПраЌО <i>collectionmeta</i>.
544<p>
545
[19317]546СПЎержаМОе ОМЎексПв -- тП есть ПпОсаМОе тПгП, чтП буЎет являться преЎЌетПЌ пПОска -- ПпреЎеляется стрПкПй <i>indexes</i> в Мачале этПгП блПка. ОМа ПпреЎеляет трО ОМЎекса, Ўва Оз МОх
[19198]547 -- Ма урПвМе разЎела (МачОМающОеся с <i>section:</i>) О ПЎОМ Ма урПвМе ЎПкуЌеМта (МачОМающОйся с <i>document:</i>). РазлОчОе сПстПОт в тПЌ, чтП запрПс, сПстПящОй Оз МескПлькОх
548 слПв, буЎет сППтветствПвать тПлькП ОМЎексу урПвМя разЎела, еслО все терЌОМы запрПса пПявляются в тПЌ же саЌПЌ разЎеле, тПгЎа как ПМ буЎет сППтветствПвать урПвМю ЎПкуЌеМта, еслО терЌОМы пПявляются гЎе-лОбП в преЎелах
[19317]549 ЎПкуЌеМта, кПтПрый ПбычМП включает МескПлькП разЎелПв. Первый О третОй ОМЎексы -- этП <i>section:text</i> О <i>document:text</i>, гЎе <i>:text</i> ПзМачает, чтП пПлМый текст разЎелПв О ЎПкуЌеМтПв сППтветствеММП буЎет преЎЌетПЌ пПОска. ВтПрПй ОМЎекс -- <i>section:Title</i> ПзМачает, чтП ЌетаЎаММые НазваМОя (<i>Title</i>) буЎут пПЎвергМуты пПОску. В этПЌ случае МазваМОя разЎелПв скПрее, чеЌ МазваМОя ЎПкуЌеМтПв. ЭтО трО ОМЎекса пПявляются в пПряЎке, в кПтПрПЌ ПМО ПпреЎелеМы в стрПке <i>indexes</i>.
550<p>
551
[19198]552<b>КлассОфОкатПры</b>. БлПк стрПк, пПЌечеММых
553 <i>classify</i>, ПпреЎеляющОе ОМЎексы прПсЌПтра, в Greenstone Мазываются КлассОфОкатПраЌО. ИЌеется четыре классОфОкатПра, сППтветствующОе четыреЌ кМПпкаЌ Ма МавОгацОПММПй лОМейке Маверх
554у кажЎПй страМОцы в кПллекцОО (МапрОЌер, <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">пПОскПвая страМОца</a>): <i>ПреЎЌеты, НазваМОя, ОргаМОзацОО О Ключевые слПва</i>. ПервПй является кМПпка пПОска, а затеЌ пП пПряЎку этО четыре классОфОкатПра.
[19317]555<p>
[19198]556
557Первый классОфОкатПр ПбеспечОвает ЎПступ к преЎЌетаЌ. ЭтП Оерарх
558ОческОй классОфОкатПр, кПтПрый ПпреЎеляет Оерарх
559Ою в файле <a href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> (параЌетр <i>hfile</i>); этПт файл ПбсужЎается МОже. ЭтПт классОфОкатПр базОруется Ма ЌетаЎаММых
560 <i>ПреЎЌета</i>. КПгЎа МескПлькП кМОг пПявляются в лОсте Оерарх
561ОО, ПМО сПртОруются с пПЌПщью ЌетаЎаММых
562 <i>НазваМОя</i> (как Вы ЌПжете вОЎеть <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1.4.1\">зЎесь</a>). ВтПрПй классОфОкатПр ПбеспечОвает ЎПступ к МазваМОяЌ: этП классОфОкатПр <i>AZList</i>, базОрующОйся Ма ЌетаЎаММых
563 <i>НазваМОя</i>. ТретОй ПбеспечОвает ЎПступ к перечМю ПргаМОзацОй: этП Оерарх
564ОческОй классОфОкатПр, ОспПльзующОй ЌетаЎаММые <i>ОргаМОзацОО</i>, Оерарх
565Оя кПтПрых
566 заЎаМа в <a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a>; этПт файл ПбсужЎается МОже. Еще раз лОстья Оерарх
567ОО сПртОруются пП ЌетаЎаММыЌ <i>НазваМОя</i>. Четвертый ПбеспечОвает ЎПступ к ЌетаЎаММыЌ <i>Ключевых
568 слПв</i>. ЭтП также Оерарх
569ОческОй классОфОкатПр (сЌ. МОже).
570
571<p>
572<b>ИзПбражеМОя ПблПжкО</b>. ГрОМстПуМ Ощет ОзПбражеМОя ПблПжкО Ўля кажЎПгП ЎПкуЌеМта, чье ОЌя сПвпаЎает с МазваМОеЌ ЎПкуЌеМта, МП ОЌеет расшОреМОе <i>.jpg</i>. ЭтП ОзПбражеМОе ассПцООруется с ЎПкуЌеМтПЌ О ЌПжет быть ОспПльзПваться Ма страМОчке ЎПкуЌеМта (сЌПтрО МОже). ИзПбражеМОя ПблПжек ЌПжМП выключОть, ОспПльзуя флаг -no_cover_image в кажЎПЌ плагОМе. \n
573
574<p>
575<b>ОператПры фПрЌата</b>. СлеЎующОй блПк сПЎержОт пять ПператПрПв фПрЌата. Первый Оз МОх
576 Пбращается к <i>VList</i>. ЗЎесь ОЌеются спОскО пуМктПв, распПлПжеММых
[19317]577 вертОкальМП к МОзу таблОцы, пПЎПбМП тПЌу, как разЌещаются спОскО Ўля прПсЌПтра <i>НазваМОй</i>, так же, как О Оерарх
[19198]578ОческОе спОскО <i>ПреЎЌетПв О ОргаМОзацОй О ОглавлеМОй</i> саЌОх
579 целевых
580 ЎПкуЌеМтПв. ОЎМакП Ўля страМОцы результатПв пПОска этП ПтвергМутП втПрыЌ ПператПрПЌ фПрЌата (<i>SearchVList</i>). ТретОй управляет фПрЌатОрПваМОеЌ текста ЎПкуЌеМта с ЌетаЎаММыЌО <i>НазваМОя</i> (<i>Title</i>) в HTML &lt;<i>h3</i>&gt; фПрЌате, сПпрПвПжЎаеЌПЌ текстПЌ ЎПкуЌеМта [<i>Text</i>]. Четвертый гараМтОрует, чтП ОзПбражеМОя ПблПжек пПказываются с кажЎыЌ ЎПкуЌеМтПЌ. Пятый вызывает кМПпкО <i>РасшОреММый текст (Expand text), РасшОреММПе сПЎержаМОе (Expand Context), ОтЎелОть (Detach) О ППЎсвечОвать (Highlight)</i>, кПтПрые пПказываются с кажЎыЌ ЎПкуЌеМтПЌ.
581<p>
582
583БПльшОМствП ПператПрПв фПрЌата сПЎержат стрПку, указаММую в пПпПлМеММПй фПрЌе HTML. ИЌя ЌетаЎаММых
584 в кваЎратМых
585 скПбках
586 (МапрОЌер, [<i>НазваМОе</i>], [<i>СПзЎатель</i>]) Ўают зМачеМОя этОЌ ЌетаЎаММыЌ. [<i>Текст</i>] Ўает текст ЎПкуЌеМта. ГОперссылка к ЎПкуЌеМту ЌПжет быть сПзЎаМа, ОспПльзуя [<i>link</i>]...[<i>/link</i>]; сППтветствующее ОзПбражеМОе ПблПжкО прПОзвПЎОтся с пПЌПщью [<i>icon</i>]. СтрПкО фПрЌата ЌПгут включать {<i>If</i>} {...,...}О {<i>Or</i>} {...,...}; Ўля первых
587 Ўвух
588 Ўаются прОЌеры. ЭтО Ўва -- ЎПвПльМП слПжМые ПператПры фПрЌата. Мы Ме буЎеЌ ПбъясМять Ох
589 зЎесь. В Greenstone ОзЌеМеМОя в стрПках
590 фПрЌата вступают в сОлу МеЌеЎлеММП, еслО Вы Ме ОспПльзуете ЌестМый сервер бОблОПтекО, кПгЎа сервер ЎПлжеМ быть пПвтПрМП запущеМ. ЭтП ПблегчОт эксперОЌеМты с разлОчМыЌО версОяЌО ПператПра фПрЌата О МаблюЎеМОе за теЌ, чтП прО этПЌ прПОсх
591ПЎОт.
592
593<p>
594
595<b>МетаЎаММые урПвМя кПллекцОО</b>. СтрПкО <i>collectionmeta</i> в кПМфОгурацОПММПЌ файле также стаМЎартМы вП всех
596 кПллекцОях
597 Greenstone. ОМО Ўают Пбщую ОМфПрЌацОю П кПллекцОО, ПпреЎеляя ее МазваМОе (ОЌя), преЎставляют краткПе ПпОсаМОе, кПтПрПе пПявляется Ма ее ЎПЌашМей страМОце. КраткПе ПпОсаМОе (в <i>collectionextra</i>) ЌПжМП вОЎеть Ма ЎПЌашМей страМОце кПллекцОО (_text2_)
598<p>
599
600<b>ПеревПЎы с ПЎМПгП языка Ма ЎругПй</b>. ППслеЎМяя часть <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>кПМфОгурацОПММПгП файла</a> кПллекцОО преЎставляет ЌетаЎаММые Ма урПвМе кПллекцОО Ма фраМцузскПЌ О ОспаМскПЌ языках
601 сППтветствеММП. ЯзыкО ПбПзМачеМы в кваЎратМых
602 скПбках
603: [<i>fr</i>] О [<i>es</i>]. ЕслО Птсутствует указаМОе спецОфОкацОО языка, аМглОйскОй язык прОМят пП уЌПлчаМОю. КПМфОгурацОПММый файл пПказывает х
604арактерМые ПсПбеММПстО зМакПв (МапрОЌер, вП фраМцузскПЌ языке). ЭтПт файл Мах
605ПЎОтся в UTF-8, гЎе этО зМакО преЎставлеМы ЌультОбайтМыЌ пПряЎкПЌ слеЎПваМОя (&lt;C3&gt;&lt;A9&gt; в этПЌ случае). АльтерМатОвМП ПМО ЌПгут быть преЎставлеМы Ох
606 HTML МазваМОяЌО Пбъекта (пПЎПбМП <i>&amp;eacute</i>). В этПЌ Мет МОкакПгП разлОчОя: ПМО выгляЎят Ма экраМе ПЎОМакПвП. ОЎМакП, еслО бы текст был ЎПступеМ <i>Ўля пПОска</i>, тП разлОчОе ОЌелП бы ЌестП. Greenstone ОспПльзует вМутреММОй Unicode, чтПбы гараМтОрПвать вПзЌПжМПсть пПОска О Ўля МеаМглОйскОх
607 языкПв.
608<p>
609
610<b>ОпОсаМОе ЎескрОптПрПв</b>. ОпОсаМОе ЎескрОптПрПв, распПзМаваеЌых
611 <i>HTMLPlugin</i>, вставлеМы в HTML текста ЎПкуЌеМтПв, чтПбы ПпреЎелОть, гЎе МачОМаются О закаМчОваются разЎелы, О ПпреЎелОть МазваМОя разЎелПв. ОМО выгляЎят такОЌ ПбразПЌ:
612<p>
613<pre>
614&lt;!--\n
615&lt;Section&gt;\n
616&lt;Description&gt;\n
617&lt;Metadata name=\"Title\"&gt;\n
618Realizing human rights for poor people: Strategies\n
619for achieving the international development targets\n
620&lt;/Metadata&gt;\n
621&lt;/Description&gt;\n
622--&gt;\n
623(текст разЎела ОЎет сюЎа)\n
624&lt;!--\n
625&lt;/Section&gt;\n
626-->\n
627</pre>
628<p>
629
630Маркеры &lt;!-...-&gt; ОспПльзуются, чтПбы гараМтОрПвать, чтП этО ЎескрОптПры ПтЌечеМы как кПЌЌеМтарОО в HTML О пПэтПЌу затрагОвают фПрЌатОрПваМОе ЎПкуЌеМта. В <i>ОпОсаМОО</i> ЌПгут быть ПпреЎелеМы ЎругОе вОЎы ЌетаЎаММых
631, МП этП Ме сЎелаМП Ўля стОля кПллекцОО, кПтПрую Ќы ПпОсываеЌ зЎесь. ТПчМП такая же спецОфОкацОя (включая О &lt;!-...-&gt; Ќаркеры) ЌПгут ОспПльзПваться также в ЎПкуЌеМтах
632 Word.
633<p>
634
635<b>Ѐайлы ЌетаЎаММых
636</b>. МетаЎаММые Ўля всех
637 ЎПкуЌеМтПв в DLS-кПллекцОО распПлПжеМы в файлах
638 metadata.xml, пП файлу в папке ЎПкуЌеМта. Ѐайл <a href=\"_httpcollection_/import/r0087e/metadata.xml\" target=text>metadata.xml</a> Ўля кМОгО -- <i>Income generation and money management: training women as entrepreneurs</i> -- преЎставляет сПбПй блПк Оз 10 стрПк заключеММых
639 в тэгах
640 &lt;<i>FileSet</i>&gt; ... &lt;<i>FileSet</i>&gt;. ОМО ПпреЎеляют <i>dls.Title, dls.Language, dls.Subject</i> О ЌетаЎаММые <i>dls.AZList</i>. БПльше чеЌ ПЎМП зМачеМОе ЌПжет быть ПпреЎелеМП Ўля любых
641 пуМктПв ЌетаЎаММых
642. _text5_ Оба сПх
643раМеМы в качестве ЌетаЎаММых
644 Ўля этПгП спецОфОческПгП ЎПкуЌеМта, пПтПЌу чтП сПстПяМОе=МакаплОвать (<i>mode=accumulate</i>) ПпреЎелеМП, а в качестве альтерМатОвы - зМачеМОе пП уЌПлчаМОю, кПтПрыЌ является <i>mode=override</i>.
645<p>
646
647<b>Иерарх
648ОческОе файлы</b>. ПреЎЌет Оерарх
649ОческПгП файла <a href=\"_httpcollection_/etc/dls.Subject.txt\" target=text>dls.Subject.txt</a> сПЎержОт пПслеЎПвательМПсть стрПк, кажЎая Оз кПтПрых
650 ОЌеет трО пуМкта. Первый О пПслеЎМОй пуМкты являются текстПвыЌО стрПкаЌО О ПМО ПЎОМакПвы. СреЎМОй пуМкт является чОслПЌ, кПтПрПе ПпреЎеляет пПзОцОю в Оерарх
651ОО. Первая стрПка сППтветствует ЌетаЎаММыЌ, кПтПрые Мах
652ПЎятся в файле ,<i>metadata.xml</i>, ПпОсаММПЌ выше; пПслеЎМяя стрПка ПпОсывает тПт узел Оерарх
653ОО Ма web-страМОцах
654 сетО, кПтПрые геМерОрует Greenstone.
655<p>
656
657НапрОЌер, первая стрПка сПЎержОт трО пуМкта «ПрПЌышлеММПсть, ИзгПтПвлеМОе О УслугО», 1, О «ПрПЌышлеММПсть, ИзгПтПвлеМОе О УслугО». СреЎМОй пуМкт, цОфра 1, указывает, чтП этПт преЎЌет пПявляется Ма первПй пПзОцОО в <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">сОстеЌе Оерарх
658ОО</a>. Первый пуМкт, стрПка «ПрПЌышлеММПсть, ИзгПтПвлеМОе О УслугО» является теЌ, чтП пПявляется в файле <i>metadata.xml</i> как ЌетаЎаММые <i>ПреЎЌета</i>. ТретОй пуМкт, кПтПрый преЎставлеМ аМалПгОчМПй стрПкПй, - этП тП, чтП пПявляется в вОЎе текста в первПй пПзОцОО преЎЌета Оерарх
659ОО.
660<p>
661
662Ѐайл ПргаМОзацОО Оерарх
663ОО <a href=\"_httpcollection_/etc/dls.Organization.txt\" target=text>dls.Organization.txt</a> ОЌеет тПчМП такую же структуру. Так же, первые О пПслеЎМОе стрПкО текста Ма кажЎПй лОМОО те же саЌые, пПтПЌу чтП зМачеМОя ЌетаЎаММых
664 в <i>metadata.xml</i> -- тПчМП те же, чтП ЎПлжМы быть пПказаМы Ма web-страМОцах
665 Greenstone. ЧОслП ЌежЎу этОЌО стрПкаЌО ПпреЎеляет пПзОцОю в Оерарх
666ОО: в этПЌ случае Оерарх
667Оя является плПскПй, О пПзОцОя -- прПстП целПе чОслП, кПтПрПе ПпреЎеляет пПряЎПк в спОске.
668<p>
669
670КлассОфОкатПр <i>КлючевПе слПвП</i> также является классОфОкатПрПЌ Оерарх
671ОО, в этПЌ случае ПсМПваММПЌ Ма ЌетаЎаММых
672 <i>КлючевПгП слПва</i>. ЭтП ЎПлжМП пПзвПлОть учесть вПзЌПжМПсть тПгП, чтП Ўва разлОчМых
673 ЎПкуЌеМта сПЎержат ПЎОМакПвПе ключевПе слПвП.
674"
Note: See TracBrowser for help on using the repository browser.