source: collections/documented-examples/trunk/bibtex-e/etc/collect.cfg@ 19179

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

modifed document links to use _sampleoid_ macro, which is set as a collectionmeta. Easier to keep the links up to date in all languages. Have changed the plugin to use -OIDtype and -OIDmetadata options, as otherwise the HASH ids were different between linux and windows. added some text about this

  • Property svn:executable set to *
File size: 40.2 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mgpp
6
7groupsize 200
8
9indexes text metadata
10
11plugin BibTexPlugin -OIDtype assigned -OIDmetadata Number
12plugin GreenstoneXMLPlugin
13plugin MetadataXMLPlugin
14plugin ArchivesInfPlugin
15plugin DirectoryPlugin
16
17classify AZList -metadata Title
18classify AZCompactList -metadata Author -buttonname Creator
19classify DateList -metadata Date
20
21classify Phind -text document:Title,document:Creator,document:Booktitle,document:Publisher
22
23format SearchTypes "form,plain"
24
25format VList "<td valign=top>[link][icon][/link]</td>
26<td valign=top><b>[Title]</b> - <i>{Or}{[Creator],[Editor]}</i>
27{If}{[Year], - [Month] [Year]}</td>"
28
29format CL2VList "<td valign=top>[link][icon][/link]</td>
30<td valign=top>{If}{[numleafdocs],<b>[Title]</b>,
31<b>[Author]</b> ([Creator]) -- <i>[Title]</i>}
32{If}{[Year], - [Month] [Year]}</td>"
33
34format DateList "<td valign=top>[link][icon][/link]</td>
35<td valign=top><b>[Title]</b> - <i>{Or}{[Creator],[Editor]}</i></td>"
36
37format HList "[link][highlight][ex.Title][/highlight][/link]"
38
39
40format DocumentHeading "<H1>[Title]</H1><hr><table>
41{If}{[Creator],<tr><td><b>_AuthoredBy_:</b></td><td>[Creator]</td></tr>}
42{If}{[Title],<tr><td><b>_PaperTitle_:</b></td><td>[Title]</td></tr>}
43{If}{[Editor],<tr><td><b>_Editors_:</b></td><td>[Editor]</td></tr>}
44{If}{[EditorRole],<tr><td><b>_EditorRole_:</b></td><td>[EditorRole]</td></tr>}
45{If}{[Booktitle],<tr><td><b>_BookJournalTitle_:</b></td><td>[Booktitle]</td></tr>}
46{If}{[Journal],<tr><td><b>_In_:</b></td><td>[Journal]</td></tr>}
47{If}{\\"[Volume][Number]\\",<tr><td>}
48{If}{[Number], <b>_Number_:</b></td><td> [Number]}
49{If}{[Volume], <b>_Vol_:</b> [Volume]}
50{If}{\\"[Volume][Number]\\",</td></tr>}
51{If}{[MeetingDate],<tr><td><b>_MeetingDate_:</b></td><td>[MeetingDate]</td></tr>}
52{If}{[MeetingPlace],<tr><td><b>_MeetingPlace_:</b></td><td>[MeetingPlace]</td></tr>}
53{If}{[PublicationPlace],<tr><td><b>_PublicationPlace_:</b></td><td>[PublicationPlace] </td></tr>}
54{If}{[Publisher],<tr><td><b>_Publisher_:</b></td><td>[Publisher]</td></tr>}
55{If}{[Year],<tr><td><b>_PublicationDate_:</b></td><td>[Month] [Year]</td></tr>}
56{If}{[Pages],<tr><td><b>_Pages_:</b></td><td>[Pages]</td></tr>}
57{If}{[DocType],<tr><td><b>_DocType_:</b></td><td>[DocType]</td></tr>}
58{If}{[Location],<tr><td><b>_LocationURL_:</b></td><td>[Location]</td></tr>}
59{If}{[Notes],<tr><td><b>_Annotations_:</b></td><td>[Notes]</td></tr>}
60{If}{[Abstract],<tr><td><b>_Abstract_:</b></td><td>[Abstract]</td></tr>}
61{If}{[Keywords],<tr><td><b>_Keywords_:</b></td><td>[Keywords]</td></tr>}
62</table><hr>"
63
64format DocumentText "{If}{_cgiargshowrecord_,
65<b>_BibTeXrecord_:</b><br/><tt>[Text]</tt><br><center>
66<a href=\'_gwcgi_?e=_cgiarge_&c=_cgiargc_&cl=_cgiargcl_&a=d&d=_cgiargd_\'>_HideBibTeXrecord_</a></center>,
67<center><a href=\'_gwcgi_?e=_cgiarge_&c=_cgiargc_&cl=_cgiargcl_&a=d&d=_cgiargd_&showrecord=1\'>
68_ShowBibTeXrecord_</a></center>}"
69
70format DocumentButtons ""
71format DocumentContents false
72
73collectionmeta sampleoid "13/2004"
74
75collectionmeta collectionname [l=en] "Bibliography collection"
76collectionmeta .text [l=en] "full records"
77collectionmeta .Title [l=en] "titles"
78collectionmeta .Source [l=en] "filenames"
79
80collectionmeta AuthoredBy [l=en] "Authored By"
81collectionmeta PaperTitle [l=en] "Paper Title"
82collectionmeta Editors [l=en] "Editor(s)"
83collectionmeta EditorRole [l=en] "Editor Role"
84collectionmeta BookJournalTitle [l=en] "Book/Journal Title"
85collectionmeta In [l=en] "In"
86collectionmeta Number [l=en] "Number"
87collectionmeta Vol [l=en] "Vol."
88collectionmeta MeetingDate [l=en] "Meeting Date"
89collectionmeta MeetingPlace [l=en] "Meeting Place"
90collectionmeta PublicationPlace [l=en] "Publication Place"
91collectionmeta Publisher [l=en] "Publisher"
92collectionmeta PublicationDate [l=en] "Publication Date"
93collectionmeta Pages [l=en] "Pages"
94collectionmeta DocType [l=en] "DocType"
95collectionmeta LocationURL [l=en] "Location/URL"
96collectionmeta Annotations [l=en] "Annotations"
97collectionmeta Abstract [l=en] "Abstract"
98collectionmeta Keywords [l=en] "Keywords"
99
100collectionmeta BibTeXrecord [l=en] "BibTeX Record"
101collectionmeta ShowBibTeXrecord [l=en] "Show BibTeX Record"
102collectionmeta HideBibTeXrecord [l=en] "Hide BibTeX Record"
103
104
105# -- French strings ----------------
106collectionmeta collectionname [l=fr] "Collection bibliographie"
107
108collectionmeta .text [l=fr] "enregistrements complets"
109
110collectionmeta AuthoredBy [l=fr] "Nom de l'auteur"
111collectionmeta PaperTitle [l=fr] "Titre de l'article"
112collectionmeta Editors [l=fr] "Editeur(s)"
113collectionmeta EditorRole [l=fr] "RÎle de l'éditeur"
114collectionmeta BookJournalTitle [l=fr] "Titre de Livre/Journal"
115collectionmeta In [l=fr] "Dans"
116collectionmeta Number [l=fr] "Numéro"
117collectionmeta Vol [l=fr] "Vol."
118collectionmeta MeetingDate [l=fr] "Date de rencontre"
119collectionmeta MeetingPlace [l=fr] "Lieu de rencontre"
120collectionmeta PublicationPlace [l=fr] "Lieu de publication"
121collectionmeta Publisher [l=fr] "Editeur"
122collectionmeta PublicationDate [l=fr] "Date de publication"
123collectionmeta Pages [l=fr] "Pages"
124collectionmeta DocType [l=fr] "TypeDocument"
125collectionmeta LocationURL [l=fr] "Emplacement/URL"
126collectionmeta Annotations [l=fr] "Annotations"
127collectionmeta Abstract [l=fr] "Résumé"
128collectionmeta Keywords [l=fr] "Mots-clés"
129
130collectionmeta BibTeXrecord [l=fr] "Enregistrement BibTeX"
131collectionmeta ShowBibTeXrecord [l=fr] "Montrer Enregistrement BibTeX"
132collectionmeta HideBibTeXrecord [l=fr] "Cacher l'enregistrement BibTeX"
133
134
135# -- Spanish strings ----------------
136collectionmeta collectionname [l=es] "Colección bibliográfica"
137
138collectionmeta .text [l=es] "registros completos"
139
140collectionmeta AuthoredBy [l=es] "Autor"
141collectionmeta PaperTitle [l=es] "Título del documento"
142collectionmeta Editors [l=es] "Editor(es)"
143collectionmeta EditorRole [l=es] "Papel del editor"
144collectionmeta BookJournalTitle [l=es] "Título del libro o revista"
145collectionmeta In [l=es] "En"
146collectionmeta Number [l=es] "Número"
147collectionmeta Vol [l=es] "Volumen"
148collectionmeta MeetingDate [l=es] "Fecha de la reunión"
149collectionmeta MeetingPlace [l=es] "Lugar de la reunión"
150collectionmeta PublicationPlace [l=es] "Lugar de la publicación"
151collectionmeta Publisher [l=es] "Editorial"
152collectionmeta PublicationDate [l=es] "Fecha de publicación"
153collectionmeta Pages [l=es] "Páginas"
154collectionmeta DocType [l=es] "Tipo de documento"
155collectionmeta LocationURL [l=es] "Ubicación/URL"
156collectionmeta Annotations [l=es] "Anotaciones"
157collectionmeta Abstract [l=es] "Resumen"
158collectionmeta Keywords [l=es] "Palabras clave"
159
160collectionmeta BibTeXrecord [l=es] "Registro BibTeX"
161collectionmeta ShowBibTeXrecord [l=es] "Mostrar registro BibTeX"
162collectionmeta HideBibTeXrecord [l=es] "Ocultar registro BibTeX"
163
164
165# -- Russian strings ----------------
166collectionmeta collectionname [l=ru] "БОблОПграфОческая кПллекцОя"
167
168collectionmeta .text [l=ru] "ППлМые запОсО"
169
170collectionmeta AuthoredBy [l=ru] "АвтПр"
171collectionmeta PaperTitle [l=ru] "НазваМОе статьО"
172collectionmeta Editors [l=ru] "РеЎактПр (ы)"
173collectionmeta EditorRole [l=ru] "РПль реЎактПра"
174collectionmeta BookJournalTitle [l=ru] "НазваМОе кМОгО/журМала"
175collectionmeta In [l=ru] "В"
176collectionmeta Number [l=ru] "ЧОслП (НПЌер)"
177collectionmeta Vol [l=ru] "ТПЌ"
178collectionmeta MeetingDate [l=ru] "Дата встречО"
179collectionmeta MeetingPlace [l=ru] "МестП встречО"
180collectionmeta PublicationPlace [l=ru] "Дата ПублОкацОО"
181collectionmeta Publisher [l=ru] "ИзЎатель"
182collectionmeta PublicationDate [l=ru] "Дата ПублОкацОО"
183collectionmeta Pages [l=ru] "СтраМОцы"
184collectionmeta DocType [l=ru] "ТОп ЎПкуЌеМта"
185collectionmeta LocationURL [l=ru] "МестПпПлПжеМОе/URL"
186collectionmeta Annotations [l=ru] "АММПтацОО"
187collectionmeta Abstract [l=ru] "РезюЌе"
188collectionmeta Keywords [l=ru] "Ключевые слПва"
189
190collectionmeta BibTeXrecord [l=ru] "ЗапОсь BibTeX"
191collectionmeta ShowBibTeXrecord [l=ru] "ППказать запОсь BibTeX"
192collectionmeta HideBibTeXrecord [l=ru] "Скрытая запОсь BibTeX"
193
194
195# -- English text ----------------
196collectionmeta collectionextra [l=en] "
197This collection, which contains _about:numdocs_
198BibTeX entries, is a collection of working papers published from 1997 to 2006
199at <a href=\"http://www.cs.waikato.ac.nz/\">Department of Computer Science</a>,
200<a href=\"http://www.waikato.ac.nz/\">the University of Waikato</a>.\n
201
202\n<h3>How the collection works</h3>\n
203
204<p>
205The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>collection
206configuration file</a> begins with the specification <i>groupsize 200</i>.
207This groups 200 documents together into a single archive file. Bibliography collections
208typically have many small documents, and grouping them together prevents
209Greenstone\'s internal file structures from becoming bloated and occupying more
210disk space than necessary.\n
211
212<p>
213Apart from the standard plugins, this collection uses <i>BibTexPlugin</i>,
214which processes references in the BibTeX format (well known to computer
215scientists). Two options have been set for BibTexPlugin:
216<i>-OIDtype assigned -OIDmetadata Number</i>. This means the metadata
217element \"Number\" will be used as the record identifier, instead of
218Greenstone's default hash identifiers. These options are available for
219all plugins.\n
220
221<p>
222Fielded searching, with a form-based interface, is selected by <i>format SearchTypes \"form,plain\"
223</i> in the configuration file. In fact, a plain textual full-text search
224index is included in this collection as well (since <i>form</i> comes first,
225it is the default interface; you reach the <i>plain</i> search through
226the <i>Preferences</i> page).\n
227
228<p>
229The <i>buildtype</i> option shows that the default search engine <i>mgpp</i> is
230used. The <i>indexes</i> line specifies indexes for \"text\", and \"metadata\". In this case, \"text\" will be the original BibTeX record. \"metadata\" is a special keyword signifying that an index should be built for any metadata item found in the collection.
231Thus when the \"field\" menus in the
232<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1\">search page</a> are pulled down, they show
233<i>full records</i> followed by an entry for each metadata element.
234Collection-level metadata <i>collectionmeta</i> can be specified for any index
235to determine what it is called in the menu (except for <i>metadata</i>, which
236produces many menu items). In this case, the
237<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>configuration
238file</a> specifies that the text index should be named \"full records\" because it
239contains the original bibliographic record.\n
240<p>
241An additional keyword, \"allfields\", could also be used in the <i>indexers</i> line, specifying that combined searching over all indexes should be available.
242<p>
243The <i>levels</i> lines specifies only document level, as bibliographic records don't have internal structure.
244<p>
245This collection contains <i>Title, Author</i>, and <i>Date</i> browsers, and a
246special kind of phrase index called \"Phind.\" The <i>AZCompactList</i>
247classifier used for the <i>Author</i> browser is like <i>AZList</i> but
248generates a bookshelf for duplicate items as shown <a
249href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">here</a>. The BibTeX plugin records each
250author as <i>Author</i> metadata; it also puts a list containing all authors
251into the <i>Creator</i> metadata element. Consequently the <i>AZCompactList</i>
252classifier is based on <i>Author</i>. However, Greenstone has a standard button
253reading <i>authors</i> whose name is (confusingly) \"Creator\", so this
254button name is specified for the classifier.\n
255
256<p>
257The \"Phind\" classifier creates a phrase index like
258<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL4\">this</a>. It contains a browsable list
259of phrases extracted from the material specified
260in the <i>text</i> argument of the <i>classify Phind</i> line in the
261<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>configuration file</a>.
262Here the specification is\n
263<pre>
264 document:Title,document:Creator,document:Booktitle,\n
265 document:Publisher
266</pre>\n
267
268-- that is, the title, list of authors, title of the collected work (if any) in
269which this item appears, and publisher. Note that this specification follows
270the <i>mg</i> convention with <i>level:field</i>. <i>Phind</i> indexes are more
271usually based on the entire full text of a collection, using the specification
272<i>document:text</i>.\n
273
274<p>
275The best way to see what Phind does is to play with this index. You type a word in
276the search box, click <i>Search</i>, and a list of phrases containing that term
277appears in the top panel. Click on one of these phrases and a list of phrases
278containing that <i>phrase</i> appears in the bottom panel. You can continue
279doing this, expanding the phrase more and more. The lists can be lengthened
280using the <i>get more phrases </i> button. At the end of the list of phrases
281appears a list of documents containing that phrase, in blue text; you can
282lengthen this list by clicking get <i>more documents</i>.\n
283
284<p>
285The format statements for the search results list and the title browser are
286both determined by the <i>VList</i> specification. It gives a document icon
287that links to the document itself (which in this collection is the full
288reference); the title in bold; <i>Creator</i> metadata if there is any,
289otherwise <i>Editor</i> metadata; and <i>Month, Year</i> metadata if there is any.
290<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1&r=1&hs=1&fqa=0&fqv=Jain,,,&fqf=TX,CR,BO,SO\">Here</a>
291is an example.\n
292
293<p>
294The format statement for the author browser (<i>CL2VList</i>) is more
295complex. The <i>AZCompactList</i> classifier generates a tree whose nodes are
296either leaf nodes, representing documents, or internal nodes. A metadata item
297called <i>numleafdocs</i> gives the total number of documents below an internal
298node. This format statement checks whether numleafdocs exists. If so the node
299must be an internal node, in which case the node is labeled by its
300<i>Title</i>. But beware: this classifier is generated on <i>Author</i>
301metadata, so its title -- the title of the classifier -- is actually the author\'s
302name! This means that the bookshelf nodes
303<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">here</a> are labeled by author\'s name.
304The leaf nodes, however, are labeled the same way as documents (i.e. references)
305are in the search results list.\n
306
307<p>
308The documents themselves (here is an
309<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_\">example</a>)
310are generated by two format statements, one (a long one)
311called <i>DocumentHeading</i>, and another called <i>DocumentText</i>. The
312<i>DocumentHeading</i>, which is the top two-thirds of the page, contains the
313document\'s <i>Title</i> followed by a table that gives all the metadata
314elements that the BibTeX plugin can generate. The role of all the <i>If</i>
315statements in the <a href=\"_httpcollection_/etc/collect.cfg\"
316target=collect.cfg>configuration file</a> is to determine which elements are
317defined.\n
318
319<p>
320The <i>DocumentText</i> shows the BibTeX version of the reference. However,
321when the document is displayed initially, only a hyperlink reading <i>Show
322BibTex Record</i> appears -- this corresponds to the last part (that is, the
323\"else\" part) of the <i>If</i> statement in <i>DocumentText</i>. When this
324hyperlink is clicked, the <i>href</i> goes to the same URL but with
325<i>showrecord=1</i>, which generates a page like <a
326href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_&showrecord=1\">this</a>.
327The <i>If</i> test succeeds, which shows the <i>Text</i> of the document. With
328the BibTeX plugin, the text of a document is its unadulterated BibTeX record.\n
329"
330
331
332# -- French text ----------------
333collectionmeta collectionextra [l=fr] "
334Cette collection qui contient des entrées _about:numdocs_ BibTex, est working papers éditées de 1997 à 2006
335au <a href=\"http://www.cs.waikato.ac.nz/\">Département d'informatique</a>, <a href=\"http://www.waikato.ac.nz/\">Université de Waikato</a>.\n
336
337<h3>Comment marche la collection?</h3>
338
339<p>
340Le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de
341configuration de la collection</a> commence par la spécification
342<i>groupsize 200</i>. _text2_
343Les collections de bibliographies ont généralement beaucoup de petits documents; le fait de les regrouper empêche le gonflement des structures de fichiers internes et l'occupation inutile d'espace disque.
344
345<p>
346_text1_
347
348<p>
349La recherche par champ à travers une interface basée sur un formulaire est sélectionnée par <i>format SearchTypes \"form,plain\"</i> dans le fichier de configuration. En fait, cette collection utilise <i>format SearchTypes \"form,plain\"</i> qui contient aussi un index de recherche de texte simple textuelle (puisque <i>form</i> vient en premier, c'est l'interface par defaut; vous accédez à la recherche <i>plain</i> a travers la page <i>Préférences</i>).
350
351<p>
352 _text3_
353Ainsi, quand les menus déroulants \"Field\" dans la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1\">page recherche</a> sont
354sélectionnés, ils montrent <i>Full records</i> suivi par une entrée pour
355chaque élément de méta-donnée. Une méta-donnée <i>collectionmeta</i> de niveau collection peut être spécifiée pour tout index pour déterminer
356ce qui est appele dans le menu (exceptÚ pour <i>metadata</i> qui
357produit beaucoup d'éléments de menu). Dans ce cas,le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier
358de configuration</a> spécifie que l'index du texte devrait être
359appele \"full records\" parcequ'il contient l'enregistrement bibliographique
360original.
361<p>
362_text4_
363<p>
364Cette collection contient les \"browsers\" <i>Title</i>, <i>Author</i>,et <i>Date</i> ainsi qu'un type special d'index de phrase appele \"Phind\".
365Le classificateur <i>AZCompactList</i> utilisé pour le browser <i>Author</i> est comme <i>AZList</i> mais produit un rayon pour les éléments dupliqués comme montré <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">ici</a>. Le plugin BibTEX enregistre chaque auteur comme méta-donnée <i>Author</i>; il met aussi une liste contenant tous les auteurs dans l'élément de méta-donnée <i>Creator</i>.
366Par conséquent, le classificateur <i>AZCompactList</i> est basé sur <i>Author</i>. Cependant, Greenstone a un bouton standard appelé <i>authors</i> dont le nom (qui prête à confusion) est \"Creator\", ainsi le nom
367de ce bouton est spécifié pour le classificateur.
368
369<p>
370Le classificateur \"Phind\" crée un index d'expression comme <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL4\">ceci</a>. Il contient une liste d'expressions qu'on peut parcourir extraite du materiel spécifié dans l'argument <i>text</i> de la ligne
371<i>Classify Phind</i> du <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de configuration</a>.
372Ici, la spécification est :
373<pre>
374 document:Title,document:Creator,document:Booktitle,\n
375 document:Publisher
376</pre>
377
378-- c'est le titre, la liste des auteurs, le titre du travail
379recueilli (s'il y en a) dans lequel chaque article apparaît,
380et l'éditeur. Il faut noter que cette spécification suit la
381convention <i>mg</i> avec <i>level:field</i>. Les indexes <i>Phind</i>
382sont généralement plus basés sur le texte entier de la collection,
383en utilisant la spécification <i>document:text</i>.
384
385<p>
386La meilleure façon de voir ce que fait Phind est de jouer
387avec cet index. Vous tapez un mot dans la boîte recherche,
388cliquez <i>Search</i>, et une liste d'expressions contenant ce terme
389apparaît en haut du tableau. Cliquez sur une de ces expressions
390et une liste d'expressions contenant cette <i>expression</i> apparaît
391au bas du tableau. Vous pouvez continuer à faire ceci en
392allongeant l'expression de plus en plus. Ces listes peuvent
393être allongees en utilisant le bouton <i>Get more phrases</i>.
394A la fin de la liste d'expression une liste de document
395contenant cette expression apparaît dans un texte bleu, vous
396pouvez allonger cette liste en cliquant sur Get <i>more documents</i>.
397
398<p>
399Le format de déclaration pour la liste de résultats de recherche
400et le browser de titre sont tous les deux déterminés par la spécification <i>VList</i>. Elle donne une icÎne de document qui renvoie sur le document lui-même (qui est la référence complÚte dans cette collection);
401le titre en gras; la méta-donnée <i>Creator</i> s'il y en a, sinon la méta-donnée <i>Editor</i>; et la méta-donnée <i>Month, Year</i> s'il y en a. En <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1&r=1&hs=1&fqa=0&fqv=Jain,,,&fqf=TX,CR,BO,SO\">voici</a> un exemple.
402
403<p>
404Le format de déclaration pour le browser auteur (<i>CL2VList</i>) est plus
405complexe. Le classificateur <i>AZCompactList</i> donne un arbre dont les nœuds
406sont soit des nœuds de feuilles représentant des documents ou des
407nœuds internes. Un élément de de méta-donnée appelé <i>numleafdocs</i> donne le nombre total de documents en dessous d'un nœud interne. La déclaration de
408format vérifie si numleafdocs existe. Si le nœud doit être un nœud
409interne, dans ce cas le nœud est catalogue par son <i>Title</i>.
410Mais attention : ce classificateur est produit sur la méta-donnée <i>Author</i>, donc son titre -- le titre du classificateur -- est en fait le nom de l'auteur! Ceci signifie que les nœuds des rayons sont catalogués <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">ici</a> suivant le nom de l'auteur. Les nœuds d'extrémité sont catalogués dans la liste des résultats de recherche de la même façon que les documents (c.-à-d. les références) .
411
412<p>
413Les documents eux-mêmes (voici un <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_\">exemple</a>) sont produits par
414deux déclarations de format, une (longue celle-la) appelée <i>DocumentHeading</i>, et une autre appelée <i>DocumentText</i>. Le <i>Document Heading</i>, qui est représente les deux tiers supérieurs de la page contient le <i>Titre</i> du document suivi d'une table qui
415donne tous les éléments de méta-donnée que le plugin BibTex peut générer.
416Le rÃŽle de toutes les instructions <i>If</i> dans le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de
417configuration</a> est de déterminer les éléments définis.
418
419<p>
420Le <i>DocumentText</i> montre la version BibTex de la référence.
421Cependant, quand le document est affiché la premiÚre fois, seul
422le lien <i>ShowBibtexRecord</i> apparaît --- ceci correspond à la derniÚre partie (c'est la partie \"else\") de l'instruction <i>If</i> dans <i>DocumentText</i>. Quand le lien est cliqué, <i>href</i> va vers la même URL mais avec <i>showrecord=1</i>, qui génÚre une page comme <a
423href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_&showrecord=1\">celle-ci</a>. Le test <i>If</i> marche, ce qui affiche le <i>Text</i> du document. Avec le plugin BibTex, le texte d'un document est son enregistrement BibTEX pur.
424"
425
426
427# -- Spanish text ----------------
428collectionmeta collectionextra [l=es] "
429Esta colección contiene entradas _about:numdocs_ BibTeX y ha sido creada a partir de la Bibliografía de la working papers published from 1997 to 2006 at <a href=\"http://www.cs.waikato.ac.nz/\">Department of Computer Science</a>, <a href=\"http://www.waikato.ac.nz/\">the University of Waikato</a>.\n
430
431<h3>Cómo trabaja esta colección</h3>
432<p>
433El <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración de la colección</a> empieza con la especificación <i>groupsize 200</i>. _text2_ Por lo general las colecciones bibliográficas tienen muchos documentos pequeños y al agruparlos se evita que las estructuras de archivos internos de Greenstone se inflen demasiado y ocupen más espacio del necesario.
434<p>
435
436_text1_
437<p>
438
439La búsqueda por campos con una interfaz basada en formas se selecciona por medio de la <i>format SearchTypes \"form,plain\"</i> en el archivo de configuración. De hecho, esta colección también utiliza la <i>forma searchtype de sólo texto</i>, la cual incluye asimismo un índice de búsqueda de textos completos (ya que <i>form</i> viene primero, ésta es la interfaz por omisión; la búsqueda <i>plain</i> se puede seleccionar por medio de la página de <i>Preferencias</i>).
440<p>
441_text3_
442Así, cuando los menús de \"campo\" se despliegan en la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1\">página de búsqueda</a>, muestran el <i>registro completo</i> seguido de una entrada para cada elemento del metadato. El metadato a nivel de colección <i>collectionmeta</i> se puede especificar para cualquier índice con el fin de determinar lo que se llama en el menú (excepto metadato, que produce varios ítems). En este caso el <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración</a> especifica que el índice de texto debería llamarse \"registro completo\", debido a que contiene el registro bibliográfico original.
443<p>
444_text4_
445<p>
446Esta colección contiene exploradores de <i>Título</i>, <i>Autor</i> y <i>Fecha</i>, así como un tipo especial de índice de frases llamado \"Phind\". El clasificador <i>AZCompactList</i> que se usa para el explorador de <i>Autor</i> es como <i>AZList</i>, pero genera un estante para los ítems duplicados tal como se muestra <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">aquí</a>. El plugin BibTeX registra a cada autor como metadato de <i>Author</i>. También coloca una lista de todos los autores en el elemento del metadato <i>Creator</i>. Como resultado de ello, el clasificador <i>AZCompactList</i> se basa en el <i>Author</i>. Sin embargo, Greenstone tiene un botón estándar que lee los <i>autores</i> y cuyo nombre es (de manera un tanto confusa) \"Creator\", por lo que el nombre de este botón ha sido especificado para el clasificador.
447<p>
448
449El clasificador \"Phind\" crea un índice de frases como <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL4\">este</a>, el cual contiene una lista que se puede explorar de frases extraídas del material especificado en el argumento de texto de la línea <i>clasificar Phind</i> en el <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración</a>. Aquí la especificación es
450<p>
451
452<pre>
453 document:Title,document:Creator,document:Booktitle,\n
454 document:Publisher
455</pre>\n
456
457<p>
458
459es decir, el título, la lista de autores, el título del trabajo (si es que hay alguno) en el que aparece este ítem y el editor. Recuerde que esta especificación sigue la convención <i>mg</i> con <i>level:field</i>. Los índices <i>Phind</i> se basan más comúnmente en el texto completo de una colección por medio de la especificación <i>document:text</i>.
460<p>
461
462La mejor forma de ver lo que hace Phind es practicar con este índice. Escriba una palabra en el cuadro de búsqueda, haga click en <i>Buscar</i> y una lista de frases con dicho término aparecerá en el panel de la parte superior. Haga click en una de estas frases y una lista de frases que contengan dicha <i>frase</i> aparecerá en el panel de la parte inferior. Usted puede continuar extendiendo la frase más y más. Las listas se pueden alargar utilizando el botón <i>obtener más frases</i>. Al final de la lista de frases aparece una lista de los documentos que contienen dicha frase en azul. Usted puede extender esta lista haciendo click en más documentos.
463<p>
464
465Los enunciados de formato para la lista de resultados de la búsqueda y el explorador de títulos se determinan por medio de la especificación <i>VList</i>. Ésta proporciona un icono de documento que lo vincula con el documento mismo (el cual es en esta colección la referencia completa), el título en negritas, el metadato <i>Creator</i> si es que hay alguno o en su defecto el metadato <i>Editor</i>, y el metadato de <i>Month, Year</i> si es que hay alguno. He <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1&r=1&hs=1&fqa=0&fqv=Jain,,,&fqf=TX,CR,BO,SO\">aquí</a> un ejemplo.
466<p>
467
468El enunciado de formato para el explorador de autor (<i>CL2VList</i>) es más complejo. El clasificador AZCompactList genera un árbol cuyos nodos son hojas representando documentos o nodos internos. Un ítem de metadato llamado <i>numleafdocs</i> proporciona el número total de documentos debajo de un nodo interno. Este enunciado de formato comprueba si numleafdocs existe. En caso afirmativo se trata de un nodo interno, en cuyo caso el nodo se etiquetará por su <i>Título</i>. ¡Pero cuidado! Este clasificador se genera en el metadato <i>Autor</i>, por lo que su título -- el título del clasificador -- es realmente el nombre del autor, lo que significa que los nodos del estante que están <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">aquí</a> se etiquetan de acuerdo al nombre del autor. Las hojas se etiquetan de la misma manera que los documentos (es decir, referencias) en la lista de resultados de la búsqueda.
469<p>
470
471Los documentos mismos (he aquí un <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_\">ejemplo</a>) se generan por medio de dos enunciados de formato, uno llamado <i>DocumentHeading</i>, que es bastante largo, y otro llamado <i>DocumentText</i>. DocumentHeading ocupa los dos tercios superiores de la página y contiene el <i>Título</i> del documento seguido por una tabla de todos los elementos del metadato que el plugin BibTeX puede generar. El papel de todos los enunciados <i>If</i> en el <a href=\"_httpcollection_/etc/collect.cfg\"
472target=collect.cfg>archivo de configuración</a> es determinar los elementos que se definen.
473<p>
474
475<i>DocumentText</i> muestra la versión BibTeX de la referencia. Sin embargo, cuando el documento se despliega por primera vez únicamente aparece un hipervínculo llamado <i>Mostrar Registro BibTex</i>. Este corresponde a la última parte (es decir, a la parte \"adicional\") del enunciado <i>If</i> en <i>DocumentText</i>. Cuando se hace click en este hipervínculo la <i>href</i> va al mismo URL pero con showrecord=1, que genera una página como <a
476href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_&showrecord=1\">ésta</a>. A continuación sigue la prueba <i>If</i>, que muestra el <i>Texto</i> del documento. Con el plugin BibTeX el texto de un documento es su registro BibTeX no adulterado.
477"
478
479
480# -- Russian text ----------------
481collectionmeta collectionextra [l=ru] "
482Эта кПллекцОя, кПтПрая сПЎержОт элеЌеМты запОсО _about:numdocs_ BibTeX, is a collection of working papers published from 1997 to 2006
483 at <a href=\"http://www.cs.waikato.ac.nz/\">Department of Computer Science</a>,
484 <a href=\"http://www.waikato.ac.nz/\">the University of Waikato</a>.\n.
485
486<p>
487
488<h3>Как рабПтает кПллекцОя</h3>\n
489
490<p>
491
492Ѐайл кПМфОгурацОО кПллекцОО МачОМается с ПпреЎелеМОя <i>groupsize 200</i>, **кПтПрПе ПбъеЎОМяет ЎПкуЌеМты в группы пП 200**. БОблОПграфОческОе кПллекцОО ПбычМП сПстПят Оз бПльшПгП чОсла МебПльшОх
493 ЎПкуЌеМтПв, О группОрПвка Ох
494 вЌесте преЎПтвращает вМутреММОе файлПвые структуры Greenstone Пт увелОчеМОя ПбъёЌа О заМятОя бПльшегП ЎОскПвПгП прПстраМства, чеЌ МеПбх
495ПЎОЌП.
496
497<p>
498
499_text1_
500
501<p>
502_text5_
503
504
505<p>
506_text3_
507
508<p>
509
510
511ТакОЌ ПбразПЌ, кПгЎа Ма пПОскПвПй страМОце пПявляется спускающееся ЌеМю \"пПле\", в МёЌ пПказаМ пПлМый спОсПк, сПпрПвПжЎающОй прО
512вх
513ПЎе Ўля кажЎПгП элеЌеМта ЌетаЎаММых
514. МетаЎаММые Ма урПвМе кПллекцОО <i>collectionmeta</i> ЌПгут быть заЎаМы Ўля любПгП ОМЎекса, чтПбы ПпреЎелОть, чтП этП ПзМачает в ЌеМю (за ОсключеМОеЌ <i>metadata</i>, кПтПрПе сПзЎает ЌМПгП пуМктПв ЌеМю). В этПЌ случае <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>кПМфОгурацОПММый файл</a> ПпреЎеляет, чтП текстПвый ОМЎекс ЎПлжеМ быть МазваМ \"<i>full record</i>\", пПтПЌу чтП ПМа сПЎержОт ПрОгОМальМую бОблОПграфОческую запОсь.
515
516<p>
517_text4_
518<p>
519Эта кПллекцОя сПЎержОт прПграЌЌы прПсЌПтра пП <i>НазваМОю</i>, <i>АвтПру О Дате</i>, О спецОальМый вОЎ ОМЎекса фразы, МазываеЌый \"<i>Phind</i>\". КлассОфОкатПр <i>AZCompactList</i>, ОспПльзуеЌый Ўля прПсЌПтра пП <i>АвтПру</i>, пПх
520Пж <i>Ма AZList</i>, МП геМерОрует кМОжМую пПлку Ўля ЎублОкатПв, как пПказаМП зЎесь. ПлагОМ BibTeX сПставляет запОсь Ўля кажЎПгП автПра пП ЌетаЎаММыЌ <i>Author</i>; ПМ также пПЌещает спОсПк, сПЎержащОй перечеМь всех
521 автПрПв, в элеЌеМт ЌетаЎаММых
522 <i>СПзЎатель</i> (<i>Creator</i>). ТакОЌ ПбразПЌ, классОфОкатПр <i>AZCompactList</i> базОруется Ма пПле <i>Author</i>. ОЎМакП в Greenstone ОЌеется стаМЎартМая кМПпка, чОтающаяся как <i>АвтПры</i>, чье МаОЌеМПваМОе ПтЎалеММП сППтветствует <i>Creator</i>, так чтП МазваМОе этПй кМПпкО ОспПльзПваМП Ўля классОфОкатПра.
523
524<p>
525
526КлассОфОкатПр \"Phind\" сПзЎает ОМЎекс фразы пПЎПбМП <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL4\">пПказаММПЌу зЎесь</a>. ОМ сПЎержОт спОсПк ЎПступМых
527 Ўля прПсЌПтра фраз, ОзвлечеММых
528 Оз ЌатерОала, указаММПгП в аргуЌеМте <i>text</i> стрПкО <i>classify</i> в <i>Phind</i> кПМфОгурацОПММПгП файла. ОпреЎелеМОяЌО зЎесь являются
529
530<p>
531<pre>
532 document:Title,document:Creator,document:Booktitle,\n
533 document:Publisher
534</pre>\n
535<p>
536
537(<i>ЎПкуЌеМт:НазваМОе, ЎПкуЌеМт:СПзЎатель, ЎПкуЌеМт:ЗагПлПвПк кМОгО, ЎПкуЌеМт: ИзЎатель</i>)
538
539тП есть МазваМОе, спОсПк автПрПв, МазваМОе любПгП сбПрМОка рабПт, в кПтПрПЌ этПт пуМкт пПявляется, О ОзЎатель. ОбратОте вМОЌаМОе, чтП этО ПпреЎелеМОя сППтветствуют ПбычМПЌу <i>mg</i> Ма урПвМе:пПле (<i>level:field</i>). ИМЎексы чаще базОруются Ма ПсМПве пПлМПтекстПвПй кПллекцОО, ОспПльзуя спецОфОкацОю <i>ЎПкуЌеМта:text</i>.
540
541<p>
542
543ᅵучшОй спПсПб увОЎеть, чтП <i>Phind</i> Ўелает, сПстПОт в тПЌ, чтПбы пПОграть с этОЌ ОМЎексПЌ. Вы МапечаталО слПвП в пПле пПОска, щелкМулО <i>ППОск</i>, О спОсПк фраз, сПЎержащОх
544 этПт терЌОМ, пПявляется Ма верх
545Мей паМелО. ЩелкМОте Ма ПЎМПй Оз этОх
546 фраз, О спОсПк, сПЎержащОй эту фразу, пПявляется Ма МОжМей паМелО. Вы ЌПжете прПЎПлжать Ўелать этП, расшОряя фразу все бПлее. СпОскО ЌПгут быть увелОчеМы, ОспПльзуя кМПпку <i>get more phrases</i>. В кПМце спОска фраз пПявляется спОсПк ЎПкуЌеМтПв, сПЎержащОх
547 эту фразу, ПкрашеММый в сОМОй цвет. Вы ЌПжете расшОрОть этПт спОсПк путеЌ щелчка Ма <i>more documents</i>.
548
549<p>
550
551ОператПры фПрЌата Ўля спОска результатПв пПОска О МаОЌеМПваМОе браузера Пба ПпреЎелеМы в спецОфОкацОО <i>VList</i>. ОМО сПзЎают ОзПбражеМОе (ОкПМку) ЎПкуЌеМта, кПтПрПе связывается с саЌОЌ ЎПкуЌеМтПЌ (кПтПрый в ЎаММПй кПллекцОО является пПлМПй ссылкПй); <i>НазваМОе</i> выЎелеМП пПлужОрМыЌ шрОфтПЌ; ЌетаЎаММые <i>Creator??СПзЎателя</i> ЎПкуЌеМта, еслО такПвПй ОЌеется, ОлО же ЌетаЎаММые <i>Editor??ИзЎателя</i> О ЌетаЎаММые <i>Month, YearДаты</i>, еслО ПМа существует. <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q&ct=1&qt=1&r=1&hs=1&fqa=0&fqv=Jain,,,&fqf=TX,CR,BO,SO\">ЗЎесь</a> прОвПЎОтся прОЌер.
552
553<p>
554
555ОператПр фПрЌата Ўля пПказа автПра (<i>CL2Vlist</i>) является бПлее слПжМыЌ. КлассОфОкатПр <i>AZCompactList</i> геМерОрует ЎеревП, узлы кПтПрПгП являются ОлО узлаЌО спОска, преЎставляя ЎПкуЌеМты, ОлО же вМутреММОЌО узлаЌО. ПуМкт ЌетаЎаММых
556, МазываеЌый <i>numleafdocs</i>, Ўает Пбщее кПлОчествП ЎПкуЌеМтПв, распПлПжеММых
557 МОже вМутреММегП узла. ЭтПт ПператПр фПрЌата прПверяет, существуют лО чОслП лОстПв ЎПкуЌеМтПв <i>numleafdocs</i>. ЕслО этП так, тП узел ЎПлжеМ быть вМутреММОЌ узлПЌ. В этПЌ случае ОЌеет свПю Ќетку <i>НазваМОе</i>. НП ОЌейте в вОЎу, чтП этПт классОфОкатПр прПОзвеЎеМ Ма ПсМПве ЌетаЎаММых
558 <i>АвтПра</i>, так чтП егП МазваМОе - МазваМОе классОфОкатПра -- является фактОческО ОЌеМеЌ автПра. ЭтП ПзМачает, чтП узлы кМОжМПй пПлкО <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL2\">зЎесь</a> МазваМы ОЌеМеЌ автПра. Узлы лОста, ПЎМакП, пПЌечеМы такОЌ же ПбразПЌ, как ЎПкуЌеМты (тП есть ссылкО Ма МОх
559), Мах
560ПЎящОеся в спОске результатПв пПОска.
561
562<p>
563
564СаЌО же ДПкуЌеМты (зЎесь ОЌеется <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&cl=CL1.12&d=_sampleoid_\">прОЌер</a>), геМерОруются ЎвуЌя ПператПраЌО фПрЌата, ПЎОМ Оз кПтПрых
565 (ЎлОММый) МазваМ <i>DocumentHeading</i>, а ЎругПй - <i>DocumentText</i>. <i>DocumentHeading</i>, кПтПрый сПставляет верх
566МОе Ўве третО страМОцы, сПЎержОт <i>НазваМОе</i> ЎПкуЌеМта, сПпрПвПжЎаеЌПе таблОцей, кПтПрая сПЎержОт все элеЌеМты ЌетаЎаММых
567, кПтПрые плагОМ BibTex ЌПжет геМерОрПвать. НазМачеМОе всех
568 ПператПрПв <i>If</i> в кПМфОгурацОПММПЌ файле сПстПОт в тПЌ, чтПбы решОть, какОе элеЌеМты ПпреЎелеМы.
569
570<p>
571
572<i>DocumentText</i> пПказывает BibTex-версОю ссылкО. ОЎМакП, кПгЎа ЎПкуЌеМт пПказаМ в первый раз, пПявляется тПлькП гОперссылка <i>Show BibTex Record</i>. ЭтП сППтветствует пПслеЎМей частО, тП есть зМачеМОю \"ЎругПй\" ПператПра <i>If</i> в <i>DocumentText</i>. ЕслО щелкМуть Ма этПй гОперссылке, <i>href</i> ОЎет к тПЌу же саЌПЌу URL, МП с <i>Showrecord=1</i>, кПтПрый геМерОрует страМОцу пПЎПбМП этПй. ППслеЎующОй тест <i>If</i> пПказывает <i>Текст</i> ЎПкуЌеМта. ПлагОМ <i>BibTeX</i> Ўает запОсь текста ЎПкуЌеМта в фПрЌате <i>BibTeX</i>.
573"
Note: See TracBrowser for help on using the repository browser.