source: documented-example-collections/trunk/garish-e/etc/collect.cfg@ 18807

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

removed beta lines and collectionicon lines from collect.cfg files

  • Property svn:executable set to *
File size: 52.2 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5
6plugin HTMLPlug -description_tags
7plugin WordPlug
8plugin GAPlug
9plugin ArcPlug
10plugin RecPlug -use_metadata_files
11
12indexes section:text section:Title document:text
13
14classify Hierarchy -metadata dls.Subject -sort Title -buttonname Subject
15classify Hierarchy -hlist_at_top -metadata dls.AZList -sort Title -buttonname Title
16classify Hierarchy -metadata dls.Organization -sort Title -buttonname Organization
17classify Hierarchy -metadata dls.Keyword -sort Title -buttonname Howto
18
19format VList "<td valign=top>[link][icon][/link]</td>
20 <td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]
21 <i><small>{If}{[Date],<br>_textdate_[Date]}{If}{[NumPages],
22 <br>_textnumpages_[NumPages]}{If}{[Source],<br>_textsource_[Source]}</small></i>
23 </td>"
24
25format SearchVList "<td valign=top>[link]<img src='[DocImage]' height='21'>[/link]</td>
26 <td>{If}{[parent(All': '):Title],
27 [parent(All': '):Title]:}[link][Title][/link]</td>"
28format DocumentText "<h2>[Title]</h2><p>[Text]</p>"
29
30
31# -- English strings ----------------
32collectionmeta collectionname [l=en] "Garish version of demo collection"
33
34collectionmeta .section:text [l=en] "chapters"
35collectionmeta .section:Title [l=en] "section titles"
36collectionmeta .document:text [l=en] "entire documents"
37
38
39# -- French strings ----------------
40collectionmeta collectionname [l=fr] "Version Garish de la collection de démonstration"
41
42collectionmeta .section:text [l=fr] "chapitres"
43collectionmeta .section:Title [l=fr] "titres des sections"
44collectionmeta .document:text [l=fr] "documents entiers"
45
46
47# -- Spanish strings ----------------
48collectionmeta collectionname [l=es] "Versión Garish de la colección de muestra"
49
50collectionmeta .section:text [l=es] "capítulos"
51collectionmeta .section:Title [l=es] "títulos de las secciones"
52collectionmeta .document:text [l=es] "documentos completos"
53
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
63# -- English text ----------------
64collectionmeta collectionextra [l=en] "This demonstration collection contains the same material as the original Greenstone demo collection, but its appearance has been altered to look garish.\n
65
66<h3>How the collection works</h3>\n
67
68<p>
69The appearance of Greenstone collections is defined by \"macro files\" in the
70<i>greenstone/macros</i> directory, and can be completely altered by changing the contents of these files.
71Editing them will change the appearance of all collections. To change the appearance of just one collection, place appropriately modified macros in a file called <i>extra.dm</i> in the collection's <i>macros</i> directory. For example, this collection uses the file <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/garish/macros/extra.dm</a>. \n
72<p>
73To separate presentation details from the macro files,
74Greenstone uses <i>Cascading Style Sheets</i>
75(see <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> for
76more information), which allow you to specify fonts, colours, spacings, and
77other elements for HTML pages. The standard Greenstone stylesheet is located in <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (it is placed in the <i>images</i> directory because
78macro files can easily reference this directory). This collection specifies an auxiliary stylesheet, <a href=\"_httpcimages_/style.css\">greenstone/collect/garish/images/style.css</a>, to be used in addition to the default ones. It includes some comments
79for those unfamiliar with cascading style sheets. Some of the
80macros in <i>extra.dm</i> reference images that have been placed in
81<i>greenstone/collect/garish/images</i>.\n
82<p>
83The
84<a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
85macro file overrides some of the macros that Greenstone
86uses by default. In macro files, the \"\#\" character signals a comment line
87(<i>extra.dm</i> is commented to help explain what it does).
88Macros themselves are signalled by
89underscores, and they can reference other macros. This means that the
90content of a page can be split into many small chunks, and it can be
91difficult to work through the chain of which macro calls what. Fortunately,
92changes in macros (like changes in format strings) take effect immediately
93unless you are using the Greenstone local library server, in which case the
94server needs to be restarted. This makes it easy to experiment by editing
95the macro files.\n
96
97<p>
98Macros are grouped into \"packages\". But each package does not necessarily reside in
99a single file. The <i>Global</i> package, most of which is in file
100<a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a>
101(parts of it are also in the language-specific macro files such as
102<a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> and
103<a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>),
104contains default macros that can be overridden by macros in other packages. Here is the part
105of <i>extra.dm</i> that redefines global macros.
106<pre>
107##########################################################################\n
108package Global\n
109##########################################################################\n
110\n
111&#095;starthighlight&#095; {&lt;b&gt;}\n
112&#095;endhighlight&#095; {&lt;/b&gt;}\n
113\n
114&#095;navbarspacer&#095; { \n
115&lt;br/&gt;\n
116&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
117&lt;br/&gt;\n
118}\n
119</pre>\n
120The values of <i>starthighlight</i> and <i>endhighlight</i> are used to
121highlight query terms when displaying a document. The default is to set the
122background to yellow. The first specification above places query terms in
123bold instead.\n
124
125<p>
126Next, the <i>navbarspacer</i> macro is what separates the search button and
127classifier buttons in the navigation bar. It is normally Greenstone\'s
128familiar horizontal green bar. The following definition has the effect of
129stacking the buttons vertically, one above the other.
130<pre>
131&#095;navbarspacer&#095; {&lt;br\/&gt;}
132</pre>\n
133
134 The definition of <i>navbarspacer</i> given earlier uses the image
135<i>horzline.gif</i> as a separator (this image appears in the
136<i>images</i> directory of the collection). The effect can be seen at the top of this page.\n
137
138<p>
139To arrange the buttons horizontally, still using
140<i>horzline.gif</i> instead of the green bar as separator,
141remove the <i>br</i> tags and define the body of the macro
142(the part in curly brackets) to be:
143<pre>
144&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
145 width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
146</pre>\n
147
148The <i>widthtspace</i> variable gives the width of the gap between the
149buttons, which Greenstone calculates.\n
150
151<p>
152The part of <i>extra.dm</i> reproduced below redefines macros in the
153<i>Style</i> package, which is responsible for creating the header and
154footer of every page, and defining common style information:
155<pre>
156##########################################################################\n
157package Style\n
158##########################################################################\n
159\n
160
161&#095;collectionspecificstyle&#095; {\n
162&lt;link rel=\"stylesheet\" href=\"&#095;httpcimages&#095;/style.css\" type=\"text/css\" \n
163 title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
164&lt;style&gt;\n
165body.bgimage \{ background-image: none; \}\n
166span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
167&lt;/style&gt;\n
168}\n
169\n
170&#095;pagebanner&#095; {\n
171&lt;div class=\"pageinfo\"&gt; \n
172&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
173&lt;/div&gt;\n
174}\n
175</pre>\n
176
177Greenstone\'s page header macro, which is called <i>header</i> in
178<a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>,
179prints the collection\'s name or logo, and links to the
180home, help, and preferences pages. It calls the macro <i>htmlhead</i> which
181outputs the beginning of an HTML file. This calls the macro <i>cssheader</i> which outputs style information for the page. This macro includes the <i>collectionspecificstyle</i> macro which allows a collection to add some style elements to the default.
182
183<p>To use an entirely new style for the collection, specify the <i>cssheader</i> macro in <i>extra.dm</i>. To just add just a few style declarations to the default style, specify <i>collectionspecificstyle</i> in <i>extra.dm</i>. That is what this collection has done. The above <i>collectionspecificstyle</i> macro includes the collection's own stylesheet, and also overrides a couple of the image declarations, getting rid of the green swirly bar background, and changing the hover background for navigation bar buttons to blue.
184
185<p>
186 The page header macro also calls <i>pagebanner</i> to include the collection\'s logo,
187home/help/preferences buttons, and the image at the top left that
188identifies the page (about page, search page, etc). The code above
189redefines the banner to suppress all these images except for the home page button -- as you can see, they don\'t appear
190at the top of this page.\n
191
192<p>
193The next part of <i>extra.dm</i> redefines macros in the <i>about</i>
194package (contained in
195<a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>), which generates the
196\"About this collection\" page that you are looking at now:
197<pre>
198##########################################################################\n
199package about\n
200##########################################################################\n
201\n
202&#095;content&#095; {\n
203&#095;navigationbar&#095;\n
204\n
205&#095;textabout&#095;\n
206\n
207&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
208&#095;help:simplehelp&#095;\n
209}
210</pre>\n
211
212The macro <i>content</i> for the <i>About</i> page normally contains the
213navigation bar (with links to <i>Search</i> and any classifiers),
214followed by \"About this collection\" and \"how to find information\"
215text. Because it changes from one collection to another, the
216<i>navigationbar</i> macro is defined internally by Greenstone, and uses
217the <i>navbarspacer</i> macro discussed above. The <i>content</i> macro for
218the <i>About</i> page, given above, differs from the regular one
219(such as the one for the DLS collection <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=p&p=about\">here</a>)
220in that the navigation bar is not centered, and there is no search box.\n
221
222<p>
223The next part of <i>extra.dm</i> redefines macros in the <i>query</i> package (in
224<a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>),
225which is used to generate the
226<a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">search page</a>:
227<pre>
228##############################################################################\n
229package query\n
230##############################################################################\n
231
232&#095;content&#095; {\n
233&#095;navigationbar&#095;\n
234\n
235&lt;center&gt;\n
236&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
237&lt;/center&gt;\n
238&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
239&lt;center&gt;\n
240&#095;searchhistorylist&#095;\n
241&lt;/center&gt;)\n
242&#095;If&#095;(&#095;cgiargq&#095;,&lt;small&gt;&#095;freqmsg&#095; &#095;textpostprocess&#095;&lt;/small&gt;&lt;br&gt;&#095;resultline&#095;,)\n
243&lt;br&gt;\n
244}\n
245</pre>\n
246
247The definition of <i>content</i> in the standard <i>query</i> package is
248similar to the version given above, except that it centers the
249<i>navigationbar</i> macro, whereas the above version does not, and it
250includes an additional green bar. Compare
251<a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">this</a>
252and
253<a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">this</a>.\n
254
255<p>
256The file
257<a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
258also redefines macros in the <i>document</i> package,
259which is used to display documents (see
260<a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>). In fact, pages
261generated by classifiers (e.g. lists of titles) are also governed by these macros.
262<pre>
263##########################################################################\n
264package document\n
265##########################################################################\n
266\n
267&#095;textheader&#095; {\n
268&#095;cgihead&#095;\n
269&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
270}\n
271\n
272&#095;content&#095; {\n
273&#095;navigationbar&#095;\n
274&lt;p&gt;\n
275&lt;center&gt;\n
276&#095;phindclassifier&#095;\n
277&#095;collageclassifier&#095;
278&lt;/center&gt;\n
279}
280</pre>\n
281
282Greenstone overrides the <i>header</i> macro if a document (and not a
283classifier) is being displayed. Suppose we don\'t want it to. The code
284above redefines the <i>textheader</i> macro (normally defined in
285<i>document.dm</i>) to be the content of the original <i>header</i> macro. The definition of <i>content</i> above overrides the
286default so that the navigation bar is not centered.
287"
288
289
290# -- French text ----------------
291collectionmeta collectionextra [l=fr] "
292Cette collection de démonstration contient le même matériel que la collection de démontration originale de Greenstone, mais son apparence a été altéré pour avoir une allure criarde.
293
294<h3>Comment la collection marche</h3>
295
296<p>
297L'apparence des collections Greenstone est définie par des \"fichiers de macros\" dans le répertoire <i>greenstone/macros</i> et elle peut être complÚtement modifiée en changeant le contenu de ces fichiers. L' édition de ceux-ci changera l' apparence de toutes les collections.Pour changer l' apparence d' une seule collection, il faut placer correctement les macros modifiés dans un fichier appelé <i>extra.dm</i> dans le répertoirede la collection <i>macros</i>. Par exemple, cette collection utilise le fichier <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/garish/macros/extra.dm</a>. \n
298<p>
299Pour séparer certains détails de présentation des fichiers de macros, Greenstone utilise <i>Cascading Style Sheets</i>(voir <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> pour plus d' information), ce qui vous permet de spécifier la police, les couleurs, les espaces, et autres éléments pour les pages HTML. Le 'stylesheet' de Greenstone standardisé est alloqué dans <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (il est placé dans le répertoire <i>images</i> car les macros fichiers peuvent reférer ce répertoire facilement). Cette collection spécifie un 'stylesheet' auxiliaire, <a href=\"_httpcimages_/style.css\">greenstone/collect/garish/images/style.css</a>, à être utilisé à part ceux du défaut. Ceci inclus quelques commentaires qui ont été placés dans <i>greenstone/collect/garish/images</i>.\n
300<p>
301Le fichier de macros <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
302l'emporte sur certaines des macros que Greenstone utilise par défaut. Dans des fichiers de macros, le caractÚre \"\#\" signale une ligne de commentaire(<i>extra.dm</i> est commenté pour expliquer ce qu'il fait). Les macros elles-mêmes sont signalées par des caractÚres \"souligné\" (\"_\") et elles peuvent référencer d'autres macros. Ceci signifie que le contenu d'une page peut être éclaté en plusieurs petits morceaux et il peut être difficile de retrouver dans la chaîne et de savoir quelle macro appelle quoi. Heureusement, des modifications dans des macros (comme des modifications dans les chaînes de format) prennent effet immédiatement, à moins que vous n'utilisiez le serveur de bibliothÚque locale de Greenstone; dans ce cas, le serveur doit être redémarré. Ceci rend facile l'expérimentation en éditant les fichiers de macros.
303
304<p>
305Les macros sont regroupées en \"paquetages\". Mais chaque paquetage ne réside pas forcément dans un fichier unique. Le paquetage <i>Global</i>, dont la majeure partie réside dans le fichier
306<a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a> (d'autres parties se trouvent aussi dans les fichiers de macros spécifiques aux langues, comme <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> et <a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>),
307contient des macros par défaut qui peuvent être écrasées par des macros d'autres paquetages. Voici la partie de <i>extra.dm</i> qui redéfinit des macros globales.
308
309<pre>
310##########################################################################\n
311package Global\n
312##########################################################################\n
313\n
314&#095;starthighlight&#095; {&lt;b&gt;}\n
315&#095;endhighlight&#095; {&lt;/b&gt;}\n
316\n
317&#095;navbarspacer&#095; { \n
318&lt;br/&gt;\n
319&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
320&lt;br/&gt;\n
321}\n
322</pre>\n
323
324Les valeurs de <i>starthighlight</i> et <i>endhighlight</i> sont utilisées pour mettre en valeur des termes de requête au moment de l'affichage d'un document. Le défaut est de mettre l'arriÚre-plan en jaune. La premiÚre des spécifications ci-dessus place les termes de requête en gras.
325
326<p>
327Ensuite, la macro <i>navbarspacer</i> est ce qui sépare le bouton de recherche des bouton de classificateurs dans la barre de navigation. C'est normalement la horizontale verte familiÚre de Greenstone. La définition suivante a l' effet d' entasser les boutons verticalement, un sur l' autre.
328<pre>
329&#095;navbarspacer&#095; {&lt;br\/&gt; }
330</pre>\n
331
332La définition de <i>navbarspace</i> donnée auparavant utilise l' image <i>horzline.gif</i> comme un séparateur (cette image apparaît dans le répertoire <i>images</i> de la collection). L' effet peut être visualisé dans la partie suppérieure de cette page. \n
333
334<p>
335Pour ranger les boutons horizontalement, utilisez toujours <i>horzline.gif</i> comme séparateur au lieu de la barre verte, supprimez les étiquettes <i>br</i> et définissez le corps de la macro (la partie entre parenthÚses) comme ceci:
336<pre>
337&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
338 width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
339</pre>\n
340
341La variable <i>widthtspace</i> donne la largeur de l'espace entre les boutons que Greenstone calcule.
342
343<p>
344La partie de <i>extra.dm</i> reproduite ci-dessous redéfinit des macros dans le paquetage <i>Style</i>, qui est responsable de la création de l'en-tête et du pied de chaque page, et définissant information de style commun:
345
346<pre>
347##########################################################################\n
348package Style\n
349##########################################################################\n
350\n
351
352&#095;collectionspecificstyle&#095; {\n
353&lt;link rel=\"stylesheet\" href=\"&#095;httpcimages&#095;/style.css\" type=\"text/css\" \n
354 title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
355&lt;style&gt;\n
356body.bgimage \{ background-image: none; \}\n
357span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
358&lt;/style&gt;\n
359}\n
360\n
361&#095;pagebanner&#095; {\n
362&lt;div class=\"pageinfo\"&gt; \n
363&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
364&lt;/div&gt;\n
365}\n
366</pre>\n
367
368La macro de l'en-tête de la page de Greenstone, appelée <i>header</i> dans
369<a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>, affiche le nom ou le logo de la collection, et crée un lien vers la page d'accueil, l'aide, et les pages des préférences. Elle appelle la macro <i>htmlhead</i> qui affiche le début d'une page HTML. Ceci appelle le macro <i>cssheader</i> qui output le style d' information pour cette page. Ce macro comprend le macro <i>collectionspecificstyle</i> qui permet la collection d' additionner quelques éléments-style au défaut.
370<p>
371Pour utiliser entiÚrement un nouveau style pour la collection, spécifiez le macro <i>cssheader</i> dans <i>extra.dm</i>. Pour ajouter seulement quelques déclarations de style, spécifiez le <i>collectionspecificstyle</i> dans <i>extra.dm</i>. C' est ceci ce que la collection a fait. Le macro ci-dessus <i>collectionspecificstyle</i> comprend la feuillestyle de la propre collection, et annule aussi quelques une des déclarations images, enlevant la barre verte curvée du fond d' écran, et en changeant le fond hover pour les boutons de la barre de navigation en bleu. \n
372<p>
373La macro d'entête de page appelle aussi <i>pagebanner</i> pour inclure le logo de la collection, des boutons /accueil/aide/préférences, et l'image en haut à gauche qui identifie la page (page \"à propos\", page de recherche, etc). Le code ci-dessus redéfinit la banniÚre pour supprimer ces images à l' exception du bouton de la page d' entrée -- comme vous pouvez le voir, elles n'apparaissent pas en haut de cette page. \n
374
375<p>
376La partie suivante de <i>extra.dm</i> redéfinit des macros dans la paquetage <i>about</i> (\"<i>à propos</i>\") (contenu dans <a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>), qui génÚre la page \"About this collection\" que vous voyez actuellement:
377<pre>
378##########################################################################\n
379package about\n
380##########################################################################\n
381\n
382&#095;content&#095; {\n
383&#095;navigationbar&#095;\n
384\n
385&#095;textabout&#095;\n
386\n
387&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
388&#095;help:simplehelp&#095;\n
389}
390</pre>\n
391
392La macro <i>content</i> pour la page <i>About</i> (\"<i>A propos</i>\") contient normallement la barre de navigation (avec des liens vers <i>Search</i> et tous classificateurs), suivie du texte \"About this collection\" (\"A propos de cette collection\") et \"how to find information\" (\"comment trouver de l'information\"). Parce qu'elle change d'une collection à l'autre, la macro de la <i>barre de navigation</i> est définie en interne par Greenstone, et utilise la macro <i>navbarspacer</i> traitéé ci-dessus. La macro <i>content</i> (\"<i>contenu</i>\") pour la page <i>About</i> (\"<i>A propos</i>\"), donnée ci-dessus, diffÚre de la macro habituelle (comme celle pour la collection DLS <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=p&p=about\">ici</a>)
393en ce sens que la barre de navigation n'est pas centrée et qu'il n'y a pas de boîte de recherche.
394
395<p>
396La partie suivante de <i>extra.dm</i> redéfinit des macros dans le paquetage <i>query</i> (\"<i>requête</i>\") (dans <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>),
397qui est utilisé pour générer la <a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">page de recherche</a>:
398<pre>
399##############################################################################\n
400package query\n
401##############################################################################\n
402
403&#095;content&#095; {\n
404&#095;navigationbar&#095;\n
405\n
406&lt;center&gt;\n
407&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
408&lt;/center&gt;\n
409&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
410&lt;center&gt;\n
411&#095;searchhistorylist&#095;\n
412&lt;/center&gt;)\n
413&#095;If&#095;(&#095;cgiargq&#095;,&lt;small&gt;&#095;freqmsg&#095; &#095;textpostprocess&#095;&lt;/small&gt;&lt;br&gt;&#095;resultline&#095;,)\n
414&lt;br&gt;\n
415}\n
416</pre>\n
417
418La définition de <i>content</i> dans le paquetage de <i>requête</i> standard est similaire à la version donnée ci-dessus, excepté le fait qu'elle centre la macro <i>barre de navigation</i>, alors que la version ci-dessu ne le fait pas, et qu'elle inclut une barre verte supplémentaire. Comparez
419<a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">ceci</a> à <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ceci</a>.
420
421<p>
422Le fichier <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> redéfinit aussi des macros dans le paquetage <i>document</i> qui est utilisé pour afficher des documents (voir
423<a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>). En fait, les pages générées par des classificateurs (par xemple listes de titres) sont aussi contrÎlées par ces macros.
424
425<pre>
426##########################################################################\n
427package document\n
428##########################################################################\n
429\n
430&#095;textheader&#095; {\n
431&#095;cgihead&#095;\n
432&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
433}\n
434\n
435&#095;content&#095; {\n
436&#095;navigationbar&#095;\n
437&lt;p&gt;\n
438&lt;center&gt;\n
439&#095;phindclassifier&#095;\n
440&#095;collageclassifier&#095;
441&lt;/center&gt;\n
442}
443</pre>\n
444
445Greenstone neutralise le macro <i>header</i> si un document (et non un classificateur) est en-train d' être visualisé. Supposons qu' on ne veut pas ceci. Le code ci-dessus redéfinit le macro <i>textheader</i> (normalement définit dans <i>document.dm,/i>) pour être le contenu du macro <i>header</i> originel. La définition de <i>content</i> ci-dessus neutralise le défault pour que la barre de navigation ne soit pas sentrée.
446"
447
448
449# -- Spanish text ----------------
450collectionmeta collectionextra [l=es] "
451Esta colección de muestra contiene el mismo material que la colección de muestra Greenstone original, pero su apariencia ha sido modificada para hacerla más llamativa.
452<p>
453
454<h3>Cómo trabaja esta colección</h3>
455<p>
456La apariencia de las colecciones Greenstone se define por medio de los \"archivos de macros\" que se encuentran en el directorio de <i>macros</i> y puede ser modificada completamente cambiando el contenido de estos archivos. Editando estos cambiará la apariencia de todas las colecciones. Para cambiar la apariencia de unicamente una colección, coloque apropiadamente la macros modificado en un archivo llamado <i>extra.dm</i> en el directorio de la colección <i>macros</i>. Por ejemplo, este directorio utiliza un archivo llamado <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/garish/macros/extra.dm</a>. \n
457
458<p>
459Para separar ciertos detalles de la presentación de los archivos de macros, Greenstone utiliza <i>Cascading Style Sheets</i>(ver <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> para mas información), que le permite especificar la fuente, los colores, espacios, y otros elementos para las páginas HTML. La hojaestilo Greenstone estándar está alocada en <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (está colocado en el directorio <i>images</i> porque los archivos macro puede sencillamente referir el directorio). Esta colección especifica una hojaestilo auxiliar, <a href=\"_httpcimages_/style.css\">greenstone/collect/garish/images/style.css</a>, a ser usada en adición a las de defaul. Esto incluye algunos comentarios para aquellos para aquellos que no están familiarizados con hojas estilo cascada. Algunos de los macro en <i>extra.dm</i> refieren a imágenes que han sido colocadas en <i>greenstone/collect/garish/images</i>.\n
460
461<p>
462
463El archivo <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> sustituye algunas de las macros que Greenstone utiliza por omisión. En los archivos de macros el carácter \"\#\" indica una línea de comentario (<i>extra.dm</i> incluye comentarios que explican lo que hace). Las macros se indican por medio de corchetes y pueden hacer referencia a otras macros. Esto significa que el contenido de una página puede dividirse en muchas cadenas más pequeñas, ya que puede resultar difícil trabajar a través de la cadena a la cual la macro hace referencia. Afortunadamente los cambios en las macros (al igual que los cambios en las cadenas de formato) tienen efecto inmediatamente a menos que se esté usando el servidor local Greenstone, en cuyo caso el servidor necesita reiniciarse. Esto hace que sea fácil experimentar editando archivos de macros.
464<p>
465
466Las macros se agrupan en \"paquetes\". Pero cada paquete no reside necesariamente en un solo archivo. El paquete <i>Global</i>, cuya mayor parte se encuentra en el archivo <a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a> (partes de él también están en los archivos de macros específicas de cada idioma como <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> y <a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>) contiene macros por omisión que se pueden sustituir por macros de otros paquetes. Esta es la parte de <i>extra.dm</i> que redefine las macros globales.
467<p>
468
469<pre>
470##########################################################################\n
471package Global\n
472##########################################################################\n
473\n
474&#095;starthighlight&#095; {&lt;b&gt;}\n
475&#095;endhighlight&#095; {&lt;/b&gt;}\n
476\n
477&#095;navbarspacer&#095; { \n
478&lt;br/&gt;\n
479&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
480&lt;br/&gt;\n
481}\n
482</pre>\n
483
484<p>
485Los valores de <i>starthighlight</i> y <i>endhighlight</i> se utilizan para resaltar los términos de la consulta cuando aparece en pantalla un documento. El valor por omisión es poner el fondo en amarillo. En vez de eso la primera especificación que aparece arriba pone los términos de la consulta en negritas.
486<p>
487
488A continuación la macro <i>navbarspacer</i> es la que separa el botón de búsqueda y los botones de los clasificadores en la barra de navegación. Por lo general es la familiar barra verde horizontal de Greenstone. La siguiente definición tiene el efecto de amontonar los botones verticalmente, uno sobre el otro.
489<p>
490
491<pre>
492&#095;navbarspacer&#095; {&lt;br\/&gt;} \n
493</pre>\n
494<p>
495
496La definición de <i>navbarspacer</i> data anteriormente usa la imágen <i>horzline.gif</i> como un separador (esta imágen aparece en el directorio de la colección <i>images</i>). El efecto puede ser visto en la parte superior de esta página. \n
497<p>
498
499Para ordenar los botones horizontalmente y seguir usando <i>horzline.gif</i> en vez de la barra verde como separador, quite las etiquetas <i>br</i> y defina el cuerpo de la macro (la parte entre llaves {} ) de la siguiente manera:
500<p>
501
502<pre>
503&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
504 width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
505</pre>\n
506<p>
507
508La variable <i>widthtspace</i> da el ancho del espacio entre los botones, lo cual es calculado por Greenstone.
509<p>
510
511La parte de <i>extra.dm</i> que se reproduce a continuación redefine las macros que se encuentran en el paquete de <i>Estilo</i>, el cual es responsable de crear el encabezado y pie de cada página, y define información de estylo común:
512
513<p>
514
515<pre>
516##########################################################################\n
517package Style\n
518##########################################################################\n
519\n
520
521&#095;collectionspecificstyle&#095; {\n
522&lt;link rel=\"stylesheet\" href=\"&#095;httpcimages&#095;/style.css\" type=\"text/css\" \n
523 title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
524&lt;style&gt;\n
525body.bgimage \{ background-image: none; \}\n
526span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
527&lt;/style&gt;\n
528}\n
529\n
530&#095;pagebanner&#095; {\n
531&lt;div class=\"pageinfo\"&gt; \n
532&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
533&lt;/div&gt;\n
534}\n
535</pre>\n
536
537<p>
538
539La macro de encabezado de página de Greenstone, llamado <i>encabezado</i> en <a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>, imprime el nombre o el logotipo de la colección y establece vínculos con las páginas principal, de ayuda y de preferencias. También remite a la macro <i>htmlhead</i>, que muestra el inicio de un archivo HTML. Esto llama al macro <i>cssheader</i> lo que hace que salga información para la página. Este macro incluye el macro <i>collectionspecificstyle</i> el cual permite a la colección sumar algunos elementos de estilo a la falla.
540
541<p>
542Para utilizar enteramente el nuevo estilo para la colección, especifique el macro <i>cssheader</i> en <i>extra.dm</i>. Para simplemente agregar un par de declaraciones de estilos al estilo de falla, especifique <i>collectionspecificstyle</i> en <i>extra.dm</i>. Eso es lo que la colección ha hecho. El macro arriba <i>collectionspecificstyle</i> incluye el 'stylesheet' de la colección misma, y a la vez anula un par de declaraciones de imágen, deshaciendose del fondo de pantalla de la barra verde curva, y cambiando a azul el fondo planeado para los botones de la barra de navegación.
543<p>
544La macro de encabezado de la página también remite a <i>pagebanner</i> para incluir el logotipo de la colección, los botones principal/ayuda/preferencias y la imagen en la parte superior izquierda que identifica la página (acerca de esta página, buscar página, etc.). Este código redefine el rótulo con el fin de suprimir estas imágenes a la exepción del boton de la página de entrada-- como se puede ver aquí, no aparecen en la parte superior de esta página.
545<p>
546
547La siguiente parte de <i>extra.dm</i> redefine las macros del paquete <i>acerca de</i> (que se encuentra en <a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>), el cual genera la página \"Acerca de esta colección\" que usted está viendo en este momento.
548<p>
549
550<pre>
551##########################################################################\n
552package about\n
553##########################################################################\n
554\n
555&#095;content&#095; {\n
556&#095;navigationbar&#095;\n
557\n
558&#095;textabout&#095;\n
559\n
560&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
561&#095;help:simplehelp&#095;\n
562}
563</pre>\n
564<p>
565
566La macro de <i>contenido</i> para la página <i>Acerca de</i> normalmente contiene la barra de navegación (con vínculos hacia <i>Búsqueda</i> y cualquier clasificador) seguida por el texto \"Acerca de esta colección\" y \"cómo encontrar información\". Debido a que éste cambia de una colección a otra, la macro <i>navigationbar</i> es definida internamente por Greenstone y utiliza la macro <i>navbarspacer</i> descrita arriba. La macro de <i>contenido</i> para la página <i>Acerca de</i> que se menciona arriba difiere de la normal (como la de la colección DLS que se puede ver <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=p&p=about\">aquí</a>) en que la barra de navegación no está centrada y no hay cuadro de búsqueda.
567<p>
568
569La siguiente parte de <i>extra.dm</i> redefine las macros del paquete de <i>consulta</i> (que se encuentra en <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), el cual se utiliza para generar la <a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">página de búsqueda</a>.
570<p>
571
572<pre>
573##############################################################################\n
574package query\n
575##############################################################################\n
576
577&#095;content&#095; {\n
578&#095;navigationbar&#095;\n
579\n
580&lt;center&gt;\n
581&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
582&lt;/center&gt;\n
583&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
584&lt;center&gt;\n
585&#095;searchhistorylist&#095;\n
586&lt;/center&gt;)\n
587&#095;If&#095;(&#095;cgiargq&#095;,&lt;small&gt;&#095;freqmsg&#095; &#095;textpostprocess&#095;&lt;/small&gt;&lt;br&gt;&#095;resultline&#095;,)\n
588&lt;br&gt;\n
589}\n
590</pre>\n
591<p>
592
593La definición de <i>contenido</i> en el paquete de <i>consulta</i> estándar es similar a la versión dada arriba, excepto que centra la macro <i>navigationbar</i>, mientras que la versión de arriba no lo hace, e incluye una barra verde adicional. Compárese <a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">ésta</a> con <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ésta</a>.
594<p>
595
596El archivo <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> también redefine las macros del paquete de <i>documentos</i>, el cual se utiliza para mostrar los documentos en pantalla (véase <a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>). De hecho, las páginas generadas por medio de clasificadores (p. ej. las listas de títulos) también se rigen por estas macros.
597<p>
598
599<pre>
600##########################################################################\n
601package document\n
602##########################################################################\n
603\n
604&#095;textheader&#095; {\n
605&#095;cgihead&#095;\n
606&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
607}\n
608\n
609&#095;content&#095; {\n
610&#095;navigationbar&#095;\n
611&lt;p&gt;\n
612&lt;center&gt;\n
613&#095;phindclassifier&#095;\n
614&#095;collageclassifier&#095;
615&lt;/center&gt;\n
616</pre>\n
617<p>
618
619Greenstone anula el macro <i>header</i> si el documento (y no un clasificador) está siendo mostrado. Supongamos que no queremos que esto suceda. El código aqui arriba redefine el macro <i>textheader</i> (normalmente definido en <i>document.dm</i>) para ser el contenido del macro original <i>header</i>. La definición de <i>content</i> aqui arriba anula la omisión para que la barra de navidgación no esté centrada.
620"
621
622
623# -- Russian text ----------------
624collectionmeta collectionextra [l=ru] "
625Эта ЎеЌПМстрацОПММая кПллекцОя сПЎержОт тПт же ЌатерОал, чтП О ПрОгОМальМая ЎеЌПМстрацОПММая кПллекцОя Greenstone, МП её вОЎ был ОзЌеМеМ., чтПбы улучшОть резкПсть.
626<p>
627
628<h3>Как рабПтает кПллекцОя</h3>
629<p>
630ВОЎ кПллекцОй ГрОМстПуМ заЎается «ЌакрПфайлаЌО» в ЎОректПрОО ЌакрПса (<i>greenstone/macros</i>>) О ЌПжет быть пПлМПстью ОзЌеМеМП с пПЌПщью ЌПЎОфОкацОй в файлах
631 ЌакрПсПв. ЭтО ЌПЎОфОкацОО ОзЌеМят вОЎ всех
632 кПллекцОй. ЧтПбы ОзЌеМОть вОЎ всегП лОшь ПЎМПй кПллекцОО, пПЌестОте сППтветствующОй ЌПЎОфОцОрПваММый ЌакрПс в файл МазваММый <i>extra.dm</i> в папке <i>macros</i> этПй кПллекцОО. НапрОЌер, эта кПллекцОя ОспПльзует файл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/garish/macros/extra.dm</a>.\n
633<p>
634
635Для ПтЎелеМОя МекПтПрых
636 Ўеталей презеМтацОО Пт ЌакрПфайлПв ГрОМстПуМ ОспПльзует <i>Cascading Style Sheets</i> (сЌ. ЎПпПлМОтельМую ОМфПрЌацОя Ма <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a>), кПтПрые пПзвПляют ВаЌ устаМавлОвать шрОфты, цвета, ОМтервалы О ЎругОе элеЌеМты Ўля страМОц HTML. Ѐайл сП стаМЎартМыЌ МабПрПЌ стОлей в ГрОМстПуМ пПЌещеМ зЎесь: <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (ПМ пПЌещеМ в ЎОректПрОО <i>images</i>, пПтПЌу чтП ЌакрП файлы ЌПгут сПЎержать уЎПбМые ссылкО к этПй ЎОректПрОО.) Эта кПллекцОя ОЌеет вспПЌПгательМый стОлевПй файл, <a href=\"_httpcimages_/style.css\">greenstone/collect/garish/images/style.css</a>, кПтПрый сПЎержОт МескПлькП кПЌЌеМтарОев Ўля тех
637, ктП Ме разбОрается с CSS. НекПтПрые ЌакрПсы в <i>extra.dm</i> ОЌеют ссылкО к ОзПбражеМОяЌ пПЌещеММыЌ в <i>greenstone/collect/garish/images</i>.\n
638
639<p>
640
641МакрПфайл <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> Птвергает часть ЌакрПсПв, кПтПрые ОспПльзуются в Greenstone пП уЌПлчаМОю. В ЌакрПфайлах
642 \"\#\" ПпПвещает П стрПке кПЌЌеМтарОев (<i>extra.dm</i> сПЎержОт кПЌЌеМтарОО, чтПбы пПЌПчь ПбъясМОть, чтП ПМ Ўелает). СаЌО ЌакрПсы сППбщаются путеЌ пПЎчеркОваМОя, О ПМО ЌПгут Пбращаться к ЎругОЌ ЌакрПсаЌ. ЭтП ПзМачает, чтП сПЎержаМОе страМОцы ЌПжет быть разбОтП Ма ЌМПгОе ЌалеМькОе кускО, О ЌПгут вПзМОкать труЎМПстО прО рабПте пП цепО, кПтПрую ЌакрПс вызывает. К счастью, ОзЌеМеМОя в ЌакрПсах
643, пПЎПбМП ОзЌеМеМОяЌ в фПрЌатМых
644 стрПках
645, вступают в сОлу МеЌеЎлеММП, еслО Вы Ме ОспПльзуете сервер лПкальМПй бОблОПтекО Greenstone, в случае чегП сервер МужЎается в перезагрузке. ЭтП Пблегчает эксперОЌеМтОрПваМОе путеЌ реЎактОрПваМОя ЌакрПфайлПв.
646<p>
647
648
649МакрПсы сгруппОрПваМы в «пакеты». НП кажЎый пакет Ме ПбязательМП разЌещается в ПтЎельМПЌ файле. <i>ГлПбальМый</i> пакет, бПльшая часть кПтПрПгП Мах
650ПЎОтся в файле <a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a> (часть егП Мах
651ПЎОтся также в спецОфОческОх
652 языкПвых
653 ЌакрПфайлах
654 тОпа <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> О <a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>), сПЎержОт ЌакрПсы пП уЌПлчаМОю, кПтПрые ЌПгут быть ПтвергМутыЌО ЌакрПсаЌО в ЎругОх
655 пакетах
656. ЗЎесь ОЌеется часть <i>extra.dm</i>.
657
658<pre>
659##########################################################################\n
660package Global\n
661##########################################################################\n
662\n
663&#095;starthighlight&#095; {&lt;b&gt;}\n
664&#095;endhighlight&#095; {&lt;/b&gt;}\n
665\n
666&#095;navbarspacer&#095; { \n
667&lt;br/&gt;\n
668&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
669&lt;br/&gt;\n
670}\n
671</pre>\n
672
673кПтПрая ПпреЎеляет глПбальМые ЌакрПсы, зМачеМОя <i>starthighlight</i> О <i>endhighlight</i> ОспПльзуются Ўля пПЎсвечОваМОя терЌОМПв запрПса прО преЎставлеМОО ЎПкуЌеМта. ПП уЌПлчаМОю ЎПлжеМ быть устаМПвлеМ желтый фПМ. Первая спецОфОкацОя вЌестП этПгП выЎеляет запрПс пПлужОрМыЌ шрОфтПЌ.
674<p>
675
676СлеЎующОй ЌакрПс <i>navbarspacer</i> служОт Ўля тПгП, чтПбы ПтЎелОть кМПпку пПОска О кМПпкО классОфОкатПрПв в МавОгацОПММПй лОМейке. ОбычМП этП х
677ПрПшП зМакПЌая в Greenstone гПрОзПМтальМая зелеМая лОМейка. СлеЎущее ПпреЎелеМОе ОЌеет эффект вертОкальМПгП распПлПжеМОя кМПпПк, ПЎМа МаЎ ЎругПй.
678<p>
679<pre>
680&#095;navbarspacer&#095; {&lt;br\/&gt;}
681</pre>\n
682<p>
683
684ОпреЎелеМОе <i>navbarspacer</i>, ЎаММПе раМее ОспПльзует рОсуМПк <i>horzline.gif</i> в качестве разЎелОтеля (этПт рОсуМПк сПЎержОтся в папке кПллекцОО пПЎ МазваМОеЌ <i>images</i>). Эффект вОЎеМ в Мачале этПй страМОцы.\n
685
686<p>
687
688РазЌещеМОе кМПпПк гПрОзПМтальМП, все ещё ОспПльзуя <i>horzline.gif</i>, вЌестП зелеМПй лОМейкО как разЎелОтеля, уЎаляя тэгО <i>br</i> О ПпреЎеляет телП ЌакрПса (часть в фОгурМых
689 скПбках
690), как:
691
692<p>
693<pre>
694&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
695 width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
696</pre>\n
697
698<p>
699ПереЌеММая <i>widthtspace</i> заЎаёт шОрОМу прПЌежутка ЌежЎу кМПпкаЌО, кПтПрую вычОсляет Greenstone.
700<p>
701
702
703Часть <i>extra.dm</i>, вПспрПОзвеЎеММая МОже, переПпреЎеляет ЌакрПсы в пакете <i>Style</i>, кПтПрый Птвечает за сПзЎаМОе загПлПвка О МОжМей сМПскО Ма кажЎПй страМОце:\n
704
705<p>
706
707<pre>
708##########################################################################\n
709package Style\n
710##########################################################################\n
711\n
712
713&#095;collectionspecificstyle&#095; {\n
714&lt;link rel=\"stylesheet\" href=\"&#095;httpcimages&#095;/style.css\" type=\"text/css\" \n
715 title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
716&lt;style&gt;\n
717body.bgimage \{ background-image: none; \}\n
718span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
719&lt;/style&gt;\n
720}\n
721\n
722&#095;pagebanner&#095; {\n
723&lt;div class=\"pageinfo\"&gt; \n
724&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
725&lt;/div&gt;\n
726}\n
727</pre>\n
728
729<p>
730
731ЌакрПс загПлПвка страМОцы Greenstone, кПтПрый Мазывается <i>header</i> в <a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>, печатает МаОЌеМПваМОе кПллекцОО О её эЌблеЌу О связывает её с ЎПЌашМей страМОцей, пПЌПщью О страМОцаЌО преЎпПчтеМОй. ОМ вызывает ЌакрПс <i>htmlhead</i>, кПтПрый ПпреЎеляет МачалП файла HTML. ЭтП вызывает ЌакрП <i>cssheader</i>, кПтПрый пПказывает ОМфПрЌацОю П стОле страМОцы. ЭтПт ЌакрП включает ЌакрП <i>collectionspecificstyle</i>, кПтПрый пПзвПляет ЎПбавОть к кПллекцОО стОлОстОческОе элеЌеМты к МабПру пП уЌПлчаМОю.
732
733<p>
734ЧтПбы ОспПльзПвать сПвершеММП ЎругПй стОль в кПллекцОО, выберОте ЌакрП <i>cssheader</i> в <i>extra.dm</i>. ЧтПбы всегП лОшь ЎПбавОть МескПлькП МПвых
735 стОлевых
736 ПпреЎелеМОй к стОлю пП уЌПлчаМОю, выберОте <i>collectionspecificstyle</i> в <i>extra.dm</i>. ЭтП былП сЎелаМП в этПй кПллекцОО. ВышеуказаМый ЌакрП <i>collectionspecificstyle</i> сПЎержОт таблОцу стОлей кПллекцОО, О переПпреЎеляет пару стОлей Ўля ОзПбражеМОй: ЗелеМая фПМПвая плаМка с завОткаЌО Осчезла, а фПМ МавОгацОПММПй паМелО теперь сОМОй.\n
737
738<p>
739МакрПс загПлПвкО страМОцы также вызывает <i>pagebanner</i>, чтПбы включОть эЌблеЌу кПллекцОО, кМПпкО home/help/preferences О ОзПбражеМОе слева вверх
740у, кПтПрПе ОЎеМтОфОцОрует страМОцу (П страМОце, пПОскПвая страМОца О т.ÐŽ.). ПрПграЌЌа, указаММая выше, ПпреЎеляет баММер, чтПбы пПЎавОть этО ОзПбражеМОя. Как Вы ЌПжете вОЎеть, ПМО Ме пПявляются Маверх
741у этПй страМОцы.\n
742
743<p>
744СлеЎующая часть <i>extra.dm</i> переПпреЎеляет ЌакрПс Ўля ПпОсаМОя О <i>пакете</i>, сПЎержащОйся в <a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>, кПтПрый геМерОрует страМОцу <i>«Об этПй кПллекцОО»</i>, кПтПрую Вы вОЎОте сейчас.
745
746<pre>
747##########################################################################\n
748package about\n
749##########################################################################\n
750\n
751&#095;content&#095; {\n
752&#095;navigationbar&#095;\n
753\n
754&#095;textabout&#095;\n
755\n
756&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
757&#095;help:simplehelp&#095;\n
758}
759</pre>\n
760
761МакрПсПЎержаМОе Ўля текста <i>О страМОце</i> ПбычМП сПЎержОт МавОгацОПММую лОМейку (сП ссылкаЌО к ППОску О любыЌ классОфОкатПраЌ), сПпрПвПжЎаеЌую ПпОсаМОеЌ «Об этПй кПллекцОО» О текстПЌ «Как МайтО ОМфПрЌацОю». ППскПльку ПМО ОзЌеМяются Пт ПЎМПй кПллекцОО к ЎругПй, ЌакрПc <i>navigationbar</i> ПпреЎелеМ вМутрО Greenstone О ОспПльзует ЌакрПс <i>navbarspacer</i>, кПтПрый был ПбсужЎеМ выше. МакрПс <i>content</i> Ўля ПпОсаМОя <i>О страМОце</i>, преЎставлеММый выше, ПтлОчается Пт ПбычМПгП (такПгП, как кПллекцОО <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=p&p=about\">DLS</a>) теЌ, чтП МавОгацОПММая лОМейка Ме ПтцеМтрОрПваМа О зЎесь Мет МОкакПгП пПля пПОска.
762<p>
763
764СлеЎующая часть <i>extra.dm</i> переПпреЎеляет ЌакрПс в пакете <i>запрПса</i> (<i>query</i>) в <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), кПтПрый ОспПльзуется Ўля геМерацОО <a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">пПОскПвПй страМОцы</a>.
765
766<pre>
767##############################################################################\n
768package query\n
769##############################################################################\n
770
771&#095;content&#095; {\n
772&#095;navigationbar&#095;\n
773\n
774&lt;center&gt;\n
775&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
776&lt;/center&gt;\n
777&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
778&lt;center&gt;\n
779&#095;searchhistorylist&#095;\n
780&lt;/center&gt;)\n
781&#095;If&#095;(&#095;cgiargq&#095;,&lt;small&gt;&#095;freqmsg&#095; &#095;textpostprocess&#095;&lt;/small&gt;&lt;br&gt;&#095;resultline&#095;,)\n
782&lt;br&gt;\n
783}\n
784</pre>\n
785
786ОпреЎелеМОе <i>сПЎержаМОя</i> в стаМЎартМПЌ пакете <i>запрПса</i> пПЎПбМП версОО, ЎаММПй выше, за ОсключеМОеЌ тПгП, чтП ПМП пПЌещает в цеМтре ЌакрПс <i>navigationbar</i>, тПгЎа как вышеупПЌяМутая версОя Ме Ўелает этПгП О включает ЎПпПлМОтельМую зелеМую лОМейку. СравМОте <a href=\"_gwcgi_?l=_cgiargl_&c=garish&a=q\">тП</a> О <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">этП</a>.
787<p>
788
789
790Ѐайл <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> также переПпреЎеляет ЌакрПс в пакете <i>ЎПкуЌеМт</i> (<i>document</i>), кПтПрый ОспПльзуется Ўля тПгП, чтПбы пПказать ЎПкуЌеМты (сЌ. <a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>). ЀактОческО страМОцы, геМерОруеЌые классОфОкатПраЌО (МапрОЌер, спОскПЌ МаОЌеМПваМОй) также управляются О этОЌО ЌакрПсаЌО.
791
792<pre>
793##########################################################################\n
794package document\n
795##########################################################################\n
796\n
797&#095;textheader&#095; {\n
798&#095;cgihead&#095;\n
799&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
800}\n
801\n
802&#095;content&#095; {\n
803&#095;navigationbar&#095;\n
804&lt;p&gt;\n
805&lt;center&gt;\n
806&#095;phindclassifier&#095;\n
807&#095;collageclassifier&#095;
808&lt;/center&gt;\n
809}
810</pre>\n
811
812ГрОМстПуМ аММулОрует ЌакрП <i>header</i>, еслО ОзПбражеМ ЎПкуЌеМт (а Ме классОфОкатПр). ПреЎпПлПжОЌ, Ќы Ме х
813ПтОЌ этПгП. ВышестПящОй кПЎ переПпреЎеляет ЌакрП <i>textheader</i> (ПбычМП ПпреЎелеММПЌ в <i>document.dm</i>) в качестве первПМачальМПгП сПЎержаМОя ЌакрП <i>header</i>. ВышестПящее ПпреЎелеМОе <i>content</i> аММулОрует зМачеМОе пП-уЌПлчаМОю, так чтП МавОгацОПММПе ЌеМю Ме цеМтрОруется.
814"
Note: See TracBrowser for help on using the repository browser.