source: documented-examples/trunk/garish-e/etc/collect.cfg@ 36473

Last change on this file since 36473 was 36345, checked in by anupama, 22 months ago

Updated dec collection garish-e, which shows how to override styling for a collection, for GS3. Not a garish style for GS3 though.

  • Property svn:executable set to *
File size: 64.2 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mgpp
6infodbtype gdbm
7
8indexes text dls.Title,ex.Title dls.Subject dls.Organization dls.Keyword
9
10levels section document
11
12plugin GreenstoneXMLPlugin
13plugin HTMLPlugin -description_tags
14plugin MetadataXMLPlugin
15plugin ArchivesInfPlugin
16plugin DirectoryPlugin
17
18classify List -metadata dls.Title -partition_type_within_level constant_size
19
20classify Hierarchy -metadata dls.Subject -sort dls.Title
21
22classify List -metadata dls.Organization -sort_leaf_nodes_using dls.Title -partition_type_within_level constant_size -bookshelf_type always
23
24classify List -metadata dls.Keyword -buttonname Howto -partition_type_within_level constant_size
25
26format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
27
28format SearchVList "<td valign=top>[link]<img src=\'[DocImage]\' height=\'21\'>[/link]</td><td>{If}{[parent(All\': \'):Title],[parent(All\': \'):Title]:}[link][Title][/link]</td>"
29
30format VList "<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]{If}{[Date],<br><small><i>_textdate_[Date]</i></small>}{If}{[NumPages],<br><small><i>_textnumpages_[NumPages]</i></small>}{If}{[Source],<br><small><i>_textsource_[dmsafe:Source]</i></small>}</td>"
31
32format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]</p>"
33format DocumentImages true
34format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
35format DocumentSearchResultLinks true
36
37format HList "[link][highlight][Title][/highlight][/link]"
38
39format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
40
41format SearchTypes "plain,form"
42
43# strings that use macros
44# these don't need translating unless you want something different from the
45# default
46collectionmeta .text [l=en] "_labeltext_"
47collectionmeta .dls.Title,Title [l=en] "_labelTitle_"
48collectionmeta .dls.Subject [l=en] "_labelSubject_"
49collectionmeta .dls.Organization [l=en] "_labelOrganization_"
50collectionmeta .dls.Keyword [l=en] "_labelHowto_"
51
52collectionmeta .document [l=en] "_textbook_"
53collectionmeta .section [l=en] "_textchapter_"
54
55# -- English strings ----------------
56collectionmeta collectionname [l=en] "Garish version of demo collection"
57
58collectionmeta depositormetadata [l=en] "{\"name\":\"dls.Title\",\"label\":\"Title\",\"tooltip\":\"dls.Title: The title of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Organization\",\"label\":\"Organization\",\"tooltip\":\"dls.Organization: The organization responsible for producing this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Subject\",\"label\":\"Subject\",\"tooltip\":\"dls.Subject: The subject of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Keyword\",\"label\":\"Keyword\",\"tooltip\":\"dls.Keyword: A more specific indication of what the resource can be used for.\",\"type\":\"text\"}, {\"name\":\"dls.Language\",\"label\":\"Language\",\"tooltip\":\"dls.Language: The language of this resource.\",\"type\":\"text\"}"
59
60# -- French strings ----------------
61collectionmeta collectionname [l=fr] "Version Garish de la collection de démonstration"
62
63# -- Spanish strings ----------------
64collectionmeta collectionname [l=es] "Versión colorida de la colección de muestra"
65
66# -- Russian strings ----------------
67collectionmeta collectionname [l=ru] "Резкая версОя ЎеЌПМстрацОПМ-МПй кПллекцОО"
68
69# -- Simplified Chinese strings ----------------
70collectionmeta collectionname [l=zh] "Garish版本的挔瀺銆藏"
71
72# -- English text ----------------
73collectionmeta 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
74
75<h3>How the collection works</h3>\n
76
77<p>
78The appearance of Greenstone collections is defined by \"macro files\" in the
79<i>greenstone/macros</i> directory, and can be completely altered by changing the contents of these files.
80Editing 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/_cgiargc_/macros/extra.dm</a>. \n
81<p>
82To separate presentation details from the macro files,
83Greenstone uses <i>Cascading Style Sheets</i>
84(see <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> for
85more information), which allow you to specify fonts, colours, spacings, and
86other elements for HTML pages. The standard Greenstone stylesheet is located in <a href=\"_httpstyle_/style.css\">greenstone/web/style/style.css</a>. This collection specifies an auxiliary stylesheet, <a href=\"_httpcstyle_/style.css\">greenstone/collect/_cgiargc_/style/style.css</a>, to be used in addition to the default ones. It includes some comments
87for those unfamiliar with cascading style sheets. Some of the
88macros in <i>extra.dm</i> reference images that have been placed in
89<i>greenstone/collect/_cgiargc_/images</i>.\n
90<p>
91The
92<a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
93macro file overrides some of the macros that Greenstone
94uses by default. In macro files, the \"\#\" character signals a comment line
95(<i>extra.dm</i> is commented to help explain what it does).
96Macros themselves are signalled by
97underscores, and they can reference other macros. This means that the
98content of a page can be split into many small chunks, and it can be
99difficult to work through the chain of which macro calls what. Fortunately,
100changes in macros (like changes in format strings) take effect immediately
101unless you are using the Greenstone local library server, in which case the
102server needs to be restarted. This makes it easy to experiment by editing
103the macro files.\n
104
105<p>
106Macros are grouped into \"packages\". But each package does not necessarily reside in
107a single file. The <i>Global</i> package, most of which is in file
108<a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a>
109(parts of it are also in the language-specific macro files such as
110<a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> and
111<a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>),
112contains default macros that can be overridden by macros in other packages. Here is the part
113of <i>extra.dm</i> that redefines global macros.
114<pre>
115##########################################################################\n
116package Global\n
117##########################################################################\n
118\n
119&#095;starthighlight&#095; {&lt;b&gt;}\n
120&#095;endhighlight&#095; {&lt;/b&gt;}\n
121\n
122&#095;navbarspacer&#095; { \n
123&lt;br/&gt;\n
124&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
125&lt;br/&gt;\n
126}\n
127</pre>\n
128The values of <i>starthighlight</i> and <i>endhighlight</i> are used to
129highlight query terms when displaying a document. The default is to set the
130background to yellow. The first specification above places query terms in
131bold instead.\n
132
133<p>
134Next, the <i>navbarspacer</i> macro is what separates the search button and
135classifier buttons in the navigation bar. It is normally Greenstone\'s
136familiar horizontal green bar. The following definition has the effect of
137stacking the buttons vertically, one above the other.
138<pre>
139&#095;navbarspacer&#095; {&lt;br\/&gt;}
140</pre>\n
141
142The definition of <i>navbarspacer</i> given earlier uses the image
143<i>horzline.gif</i> as a separator (this image appears in the
144<i>images</i> directory of the collection). The effect can be seen at the top of this page.\n
145
146<p>
147To arrange the buttons horizontally, still using
148<i>horzline.gif</i> instead of the green bar as separator,
149remove the <i>br</i> tags and define the body of the macro
150(the part in curly brackets) to be:
151<pre>
152&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
153width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
154</pre>\n
155
156The <i>widthtspace</i> variable gives the width of the gap between the
157buttons, which Greenstone calculates.\n
158
159<p>
160The part of <i>extra.dm</i> reproduced below redefines macros in the
161<i>Style</i> package, which is responsible for creating the header and
162footer of every page, and defining common style information:
163<pre>
164##########################################################################\n
165package Style\n
166##########################################################################\n
167\n
168
169&#095;collectionspecificstyle&#095; {\n
170&lt;link rel=\"stylesheet\" href=\"&#095;httpcstyle&#095;/style.css\" type=\"text/css\" \n
171title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
172&lt;style&gt;\n
173body.bgimage \\\{ background-image: none; \\\}\n
174a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
175&lt;/style&gt;\n
176}\n
177\n
178&#095;pagebanner&#095; {\n
179&lt;div class=\"pageinfo\"&gt; \n
180&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
181&lt;/div&gt;\n
182}\n
183</pre>\n
184
185Greenstone\'s page header macro, which is called <i>header</i> in
186<a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>,
187prints the collection\'s name or logo, and links to the
188home, help, and preferences pages. It calls the macro <i>htmlhead</i> which
189outputs 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.
190
191<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.
192
193<p>
194The page header macro also calls <i>pagebanner</i> to include the collection\'s logo,
195home/help/preferences buttons, and the image at the top left that
196identifies the page (about page, search page, etc). The code above
197redefines the banner to suppress all these images except for the home page button -- as you can see, they don\'t appear
198at the top of this page.\n
199
200<p>
201The next part of <i>extra.dm</i> redefines macros in the <i>about</i>
202package (contained in
203<a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>), which generates the
204\"About this collection\" page that you are looking at now:
205<pre>
206##########################################################################\n
207package about\n
208##########################################################################\n
209\n
210&#095;content&#095; {\n
211&#095;navigationbar&#095;\n
212\n
213&#095;textabout&#095;\n
214\n
215&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
216&#095;help:simplehelp&#095;\n
217}
218</pre>\n
219
220The macro <i>content</i> for the <i>About</i> page normally contains the
221navigation bar (with links to <i>Search</i> and any classifiers),
222followed by \"About this collection\" and \"how to find information\"
223text. Because it changes from one collection to another, the
224<i>navigationbar</i> macro is defined internally by Greenstone, and uses
225the <i>navbarspacer</i> macro discussed above. The <i>content</i> macro for
226the <i>About</i> page, given above, differs from the regular one
227(such as the one for the demo collection <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">here</a>)
228in that the navigation bar is not centered, and there is no search box.\n
229
230<p>
231The next part of <i>extra.dm</i> redefines macros in the <i>query</i> package (in
232<a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>),
233which is used to generate the
234<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">search page</a>:
235<pre>
236##############################################################################\n
237package query\n
238##############################################################################\n
239
240&#095;content&#095; {\n
241&#095;navigationbar&#095;\n
242\n
243&lt;center&gt;\n
244&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
245&lt;/center&gt;\n
246&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
247&lt;center&gt;\n
248&#095;searchhistorylist&#095;\n
249&lt;/center&gt;)\n
250&#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
251&lt;br&gt;\n
252}\n
253</pre>\n
254
255The definition of <i>content</i> in the standard <i>query</i> package is
256similar to the version given above, except that it centers the
257<i>navigationbar</i> macro, whereas the above version does not, and it
258includes an additional green bar. Compare
259<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">this</a>
260and
261<a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">this</a>.\n
262
263<p>
264The file
265<a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
266also redefines macros in the <i>document</i> package,
267which is used to display documents (see
268<a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>). In fact, pages
269generated by classifiers (e.g. lists of titles) are also governed by these macros.
270<pre>
271##########################################################################\n
272package document\n
273##########################################################################\n
274\n
275&#095;textheader&#095; {\n
276&#095;cgihead&#095;\n
277&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
278}\n
279\n
280&#095;content&#095; {\n
281&#095;navigationbar&#095;\n
282\n
283&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
284&lt;p style=\"text-align: center;\"&gt;\n
285&#095;phindclassifier&#095;\n
286&#095;collageclassifier&#095;\n
287&lt;/p&gt;\n
288)\n
289\n
290&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
291&lt;ul id=\"searchresults\"&gt;\n
292&#095;prevsearchresult&#095;\n
293&#095;nextsearchresult&#095;\n
294&lt;/ul&gt;)\n
295\n
296&lt;div class=\"document\"&gt;\n
297}\n
298</pre>\n
299
300Greenstone overrides the <i>header</i> macro if a document (and not a
301classifier) is being displayed. Suppose we don\'t want it to. The code
302above redefines the <i>textheader</i> macro (normally defined in
303<i>document.dm</i>) to be the content of the original <i>header</i> macro. The definition of <i>content</i> above overrides the
304default so that the navigation bar is not centered.
305"
306
307# -- French text ----------------
308collectionmeta collectionextra [l=fr] "
309Cette 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.
310
311<h3>Comment la collection marche</h3>
312
313<p>
314L\'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/_cgiargc_/macros/extra.dm</a>. \n
315<p>
316Pour 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=\"_httpstyle_/style.css\">greenstone/web/style/style.css</a>. Cette collection spécifie un \'stylesheet\' auxiliaire, <a href=\"_httpcstyle_/style.css\">greenstone/collect/_cgiargc_/style/style.css</a>, à être utilisé à part ceux du défaut. Ceci inclus quelques commentaires qui ont été placés dans <i>greenstone/collect/_cgiargc_/images</i>.\n
317<p>
318Le fichier de macros <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
319l\'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.
320
321<p>
322Les 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
323<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>),
324contient 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.
325
326<pre>
327##########################################################################\n
328package Global\n
329##########################################################################\n
330\n
331&#095;starthighlight&#095; {&lt;b&gt;}\n
332&#095;endhighlight&#095; {&lt;/b&gt;}\n
333\n
334&#095;navbarspacer&#095; { \n
335&lt;br/&gt;\n
336&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
337&lt;br/&gt;\n
338}\n
339</pre>\n
340
341Les 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.
342
343<p>
344Ensuite, 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.
345<pre>
346&#095;navbarspacer&#095; {&lt;br\/&gt; }
347</pre>\n
348
349La 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
350
351<p>
352Pour 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:
353<pre>
354&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
355width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
356</pre>\n
357
358La variable <i>widthtspace</i> donne la largeur de l\'espace entre les boutons que Greenstone calcule.
359
360<p>
361La 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:
362
363<pre>
364##########################################################################\n
365package Style\n
366##########################################################################\n
367\n
368
369&#095;collectionspecificstyle&#095; {\n
370&lt;link rel=\"stylesheet\" href=\"&#095;httpcstyle&#095;/style.css\" type=\"text/css\" \n
371title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
372&lt;style&gt;\n
373body.bgimage \\\{ background-image: none; \\\}\n
374a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
375&lt;/style&gt;\n
376}\n
377\n
378&#095;pagebanner&#095; {\n
379&lt;div class=\"pageinfo\"&gt; \n
380&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
381&lt;/div&gt;\n
382}\n
383</pre>\n
384
385La macro de l\'en-tête de la page de Greenstone, appelée <i>header</i> dans
386<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.
387<p>
388Pour 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
389<p>
390La 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
391
392<p>
393La 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:
394<pre>
395##########################################################################\n
396package about\n
397##########################################################################\n
398\n
399&#095;content&#095; {\n
400&#095;navigationbar&#095;\n
401\n
402&#095;textabout&#095;\n
403\n
404&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
405&#095;help:simplehelp&#095;\n
406}
407</pre>\n
408
409La 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 Demo <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">ici</a>)
410en ce sens que la barre de navigation n\'est pas centrée et qu\'il n\'y a pas de boîte de recherche.
411
412<p>
413La 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>),
414qui est utilisé pour générer la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">page de recherche</a>:
415<pre>
416##############################################################################\n
417package query\n
418##############################################################################\n
419
420&#095;content&#095; {\n
421&#095;navigationbar&#095;\n
422\n
423&lt;center&gt;\n
424&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
425&lt;/center&gt;\n
426&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
427&lt;center&gt;\n
428&#095;searchhistorylist&#095;\n
429&lt;/center&gt;)\n
430&#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
431&lt;br&gt;\n
432}\n
433</pre>\n
434
435La 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
436<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">ceci</a> à <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">ceci</a>.
437
438<p>
439Le 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
440<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.
441
442<pre>
443##########################################################################\n
444package document\n
445##########################################################################\n
446\n
447&#095;textheader&#095; {\n
448&#095;cgihead&#095;\n
449&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
450}\n
451\n
452&#095;content&#095; {\n
453&#095;navigationbar&#095;\n
454\n
455&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
456&lt;p style=\"text-align: center;\"&gt;\n
457&#095;phindclassifier&#095;\n
458&#095;collageclassifier&#095;\n
459&lt;/p&gt;\n
460)\n
461\n
462&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
463&lt;ul id=\"searchresults\"&gt;\n
464&#095;prevsearchresult&#095;\n
465&#095;nextsearchresult&#095;\n
466&lt;/ul&gt;)\n
467\n
468&lt;div class=\"document\"&gt;\n
469}\n
470</pre>\n
471
472Greenstone 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.
473"
474
475# -- Spanish text ----------------
476collectionmeta collectionextra [l=es] "
477Esta 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.
478<p>
479
480<h3>Cómo trabaja esta colección</h3>
481<p>
482La apariencia de las colecciones Greenstone se define por medio de los \"archivos de macros\" que se encuentran en el directorio de <i>greenstone/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 las macros modificadas en un archivo llamado <i>extra.dm</i> en el directorio <i>macros</i> de la colección. Por ejemplo, este directorio utiliza un archivo llamado <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>. \n
483
484
485<p>
486Para 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 hoja de estilos Greenstone estándar está guardada en <a href=\"_httpstyle_/style.css\">greenstone/web/style/style.css</a>. Esta colección especifica una hoja de estilo auxiliar, <a href=\"_httpcstyle_/style.css\">greenstone/collect/_cgiargc_/style/style.css</a>, a ser usada en adición a la default. Esto incluye algunos comentarios para aquellos que no están familiarizados con hojas de estilo. Algunas de las macros en <i>extra.dm</i> refieren a imágenes que han sido colocadas en <i>greenstone/collect/_cgiargc_/images</i>.\n
487
488
489<p>
490
491El 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 \"_\" 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.
492<p>
493
494
495Las 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:
496<p>
497
498<pre>
499##########################################################################\n
500package Global\n
501##########################################################################\n
502\n
503&#095;starthighlight&#095; {&lt;b&gt;}\n
504&#095;endhighlight&#095; {&lt;/b&gt;}\n
505\n
506&#095;navbarspacer&#095; { \n
507&lt;br/&gt;\n
508&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
509&lt;br/&gt;\n
510}\n
511</pre>\n
512
513<p>
514Los 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.
515<p>
516
517A 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.
518<p>
519
520<pre>
521&#095;navbarspacer&#095; {&lt;br\/&gt;} \n
522</pre>\n
523<p>
524
525La definición de <i>navbarspacer</i> dada anteriormente usa la imagen <i>horzline.gif</i> como un separador (esta imagen 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
526<p>
527
528Para 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:
529<p>
530
531<pre>
532&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
533width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
534</pre>\n
535<p>
536
537La variable <i>widthtspace</i> da el ancho del espacio entre los botones, lo cual es calculado por Greenstone.
538<p>
539
540La 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 estilo común:
541
542<p>
543
544<pre>
545##########################################################################\n
546package Style\n
547##########################################################################\n
548\n
549
550&#095;collectionspecificstyle&#095; {\n
551&lt;link rel=\"stylesheet\" href=\"&#095;httpcstyle&#095;/style.css\" type=\"text/css\" \n
552title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
553&lt;style&gt;\n
554body.bgimage \\\{ background-image: none; \\\}\n
555a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
556&lt;/style&gt;\n
557}\n
558\n
559&#095;pagebanner&#095; {\n
560&lt;div class=\"pageinfo\"&gt; \n
561&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
562&lt;/div&gt;\n
563}\n
564</pre>\n
565
566<p>
567
568La macro de encabezado de página de Greenstone, llamada <i>header</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. Esta llama a la macro <i>cssheader</i> la cual le imprime el formato a la página. Esta macro incluye a <i>collectionspecificstyle</i> la cual permite a la colección sumar algunos elementos de estilo al default.
569
570<p>
571Para utilizar enteramente el nuevo estilo para la colección, especifique la macro <i>cssheader</i> en <i>extra.dm</i>. Para simplemente agregar un par de declaraciones de estilos al estilo por defecto, especifique <i>collectionspecificstyle</i> en <i>extra.dm</i>. Eso es lo que la colección ha hecho. La macro mencionada arriba, <i>collectionspecificstyle</i> incluye el \'stylesheet\' propio de la colección, y a la vez anula un par de declaraciones de imagen, 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.
572<p>
573La 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 banner con el fin de suprimir estas imágenes, a excepción del botón de la página de inicio-- como se puede ver aquí, no aparecen en la parte superior de esta página.
574<p>
575
576La 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.
577<p>
578
579<pre>
580##########################################################################\n
581package about\n
582##########################################################################\n
583\n
584&#095;content&#095; {\n
585&#095;navigationbar&#095;\n
586\n
587&#095;textabout&#095;\n
588\n
589&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
590&#095;help:simplehelp&#095;\n
591}
592</pre>\n
593<p>
594
595La macro <i>content</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 ésta cambia de una colección a otra, la macro <i>navigationbar</i> es definida internamente por Greenstone y utiliza la macro <i>navbarspacer</i> descripta 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 Demo que se puede ver <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">aquí</a>) en que la barra de navegación no está centrada y no hay cuadro de búsqueda.
596<p>
597
598La siguiente parte de <i>extra.dm</i> redefine las macros del paquete <i>query</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=_cgiargc_&a=q\">página de búsqueda</a>.
599<p>
600
601<pre>
602##############################################################################\n
603package query\n
604##############################################################################\n
605
606&#095;content&#095; {\n
607&#095;navigationbar&#095;\n
608\n
609&lt;center&gt;\n
610&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
611&lt;/center&gt;\n
612&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
613&lt;center&gt;\n
614&#095;searchhistorylist&#095;\n
615&lt;/center&gt;)\n
616&#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
617&lt;br&gt;\n
618}\n
619</pre>\n
620<p>
621
622La definición de <i>content</i> en el paquete de <i>query</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=_cgiargc_&a=q\">ésta</a> con <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">ésta</a>.
623<p>
624
625El archivo <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> también redefine las macros del paquete <i>document</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.
626<p>
627
628<pre>
629##########################################################################\n
630package document\n
631##########################################################################\n
632\n
633&#095;textheader&#095; {\n
634&#095;cgihead&#095;\n
635&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
636}\n
637\n
638&#095;content&#095; {\n
639&#095;navigationbar&#095;\n
640\n
641&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
642&lt;p style=\"text-align: center;\"&gt;\n
643&#095;phindclassifier&#095;\n
644&#095;collageclassifier&#095;\n
645&lt;/p&gt;\n
646)\n
647\n
648&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
649&lt;ul id=\"searchresults\"&gt;\n
650&#095;prevsearchresult&#095;\n
651&#095;nextsearchresult&#095;\n
652&lt;/ul&gt;)\n
653\n
654&lt;div class=\"document\"&gt;\n
655}\n
656</pre>\n
657<p>
658
659Greenstone anula la 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 la macro <i>textheader</i> (normalmente definida 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 navegación no esté centrada.
660"
661
662# -- Russian text ----------------
663collectionmeta collectionextra [l=ru] "
664Эта ЎеЌПМстрацОПММая кПллекцОя сПЎержОт тПт же ЌатерОал, чтП О ПрОгОМальМая ЎеЌПМстрацОПММая кПллекцОя Greenstone, МП её вОЎ был ОзЌеМеМ., чтПбы улучшОть резкПсть.
665<p>
666
667<h3>Как рабПтает кПллекцОя</h3>
668<p>
669ВОЎ кПллекцОй ГрОМстПуМ заЎается «ЌакрПфайлаЌО» в ЎОректПрОО ЌакрПса (<i>greenstone/macros</i>>) О ЌПжет быть пПлМПстью ОзЌеМеМП с пПЌПщью ЌПЎОфОкацОй в файлах
670 ЌакрПсПв. ЭтО ЌПЎОфОкацОО ОзЌеМят вОЎ всех
671 кПллекцОй. ЧтПбы ОзЌеМОть вОЎ всегП лОшь ПЎМПй кПллекцОО, пПЌестОте сППтветствующОй ЌПЎОфОцОрПваММый ЌакрПс в файл МазваММый <i>extra.dm</i> в папке <i>macros</i> этПй кПллекцОО. НапрОЌер, эта кПллекцОя ОспПльзует файл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>.\n
672<p>
673
674Для ПтЎелеМОя МекПтПрых
675 Ўеталей презеМтацОО Пт ЌакрПфайлПв ГрОМстПуМ ОспПльзует <i>Cascading Style Sheets</i> (сЌ. ЎПпПлМОтельМую ОМфПрЌацОя Ма <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a>), кПтПрые пПзвПляют ВаЌ устаМавлОвать шрОфты, цвета, ОМтервалы О ЎругОе элеЌеМты Ўля страМОц HTML. Ѐайл сП стаМЎартМыЌ МабПрПЌ стОлей в ГрОМстПуМ пПЌещеМ зЎесь: <a href=\"_httpstyle_/style.css\">greenstone/web/style/style.css</a> (ПМ пПЌещеМ в ЎОректПрОО <i>images</i>, пПтПЌу чтП ЌакрП файлы ЌПгут сПЎержать уЎПбМые ссылкО к этПй ЎОректПрОО.) Эта кПллекцОя ОЌеет вспПЌПгательМый стОлевПй файл, <a href=\"_httpcstyle_/style.css\">greenstone/collect/_cgiargc_/style/style.css</a>, кПтПрый сПЎержОт МескПлькП кПЌЌеМтарОев Ўля тех
676, ктП Ме разбОрается с CSS. НекПтПрые ЌакрПсы в <i>extra.dm</i> ОЌеют ссылкО к ОзПбражеМОяЌ пПЌещеММыЌ в <i>greenstone/collect/_cgiargc_/images</i>.\n
677
678<p>
679
680МакрПфайл <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> Птвергает часть ЌакрПсПв, кПтПрые ОспПльзуются в Greenstone пП уЌПлчаМОю. В ЌакрПфайлах
681 \"\#\" ПпПвещает П стрПке кПЌЌеМтарОев (<i>extra.dm</i> сПЎержОт кПЌЌеМтарОО, чтПбы пПЌПчь ПбъясМОть, чтП ПМ Ўелает). СаЌО ЌакрПсы сППбщаются путеЌ пПЎчеркОваМОя, О ПМО ЌПгут Пбращаться к ЎругОЌ ЌакрПсаЌ. ЭтП ПзМачает, чтП сПЎержаМОе страМОцы ЌПжет быть разбОтП Ма ЌМПгОе ЌалеМькОе кускО, О ЌПгут вПзМОкать труЎМПстО прО рабПте пП цепО, кПтПрую ЌакрПс вызывает. К счастью, ОзЌеМеМОя в ЌакрПсах
682, пПЎПбМП ОзЌеМеМОяЌ в фПрЌатМых
683 стрПках
684, вступают в сОлу МеЌеЎлеММП, еслО Вы Ме ОспПльзуете сервер лПкальМПй бОблОПтекО Greenstone, в случае чегП сервер МужЎается в перезагрузке. ЭтП Пблегчает эксперОЌеМтОрПваМОе путеЌ реЎактОрПваМОя ЌакрПфайлПв.
685<p>
686
687
688МакрПсы сгруппОрПваМы в «пакеты». НП кажЎый пакет Ме ПбязательМП разЌещается в ПтЎельМПЌ файле. <i>ГлПбальМый</i> пакет, бПльшая часть кПтПрПгП Мах
689ПЎОтся в файле <a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a> (часть егП Мах
690ПЎОтся также в спецОфОческОх
691 языкПвых
692 ЌакрПфайлах
693 тОпа <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> О <a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>), сПЎержОт ЌакрПсы пП уЌПлчаМОю, кПтПрые ЌПгут быть ПтвергМутыЌО ЌакрПсаЌО в ЎругОх
694 пакетах
695. ЗЎесь ОЌеется часть <i>extra.dm</i>.
696
697<pre>
698##########################################################################\n
699package Global\n
700##########################################################################\n
701\n
702&#095;starthighlight&#095; {&lt;b&gt;}\n
703&#095;endhighlight&#095; {&lt;/b&gt;}\n
704\n
705&#095;navbarspacer&#095; { \n
706&lt;br/&gt;\n
707&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
708&lt;br/&gt;\n
709}\n
710</pre>\n
711
712кПтПрая ПпреЎеляет глПбальМые ЌакрПсы, зМачеМОя <i>starthighlight</i> О <i>endhighlight</i> ОспПльзуются Ўля пПЎсвечОваМОя терЌОМПв запрПса прО преЎставлеМОО ЎПкуЌеМта. ПП уЌПлчаМОю ЎПлжеМ быть устаМПвлеМ желтый фПМ. Первая спецОфОкацОя вЌестП этПгП выЎеляет запрПс пПлужОрМыЌ шрОфтПЌ.
713<p>
714
715СлеЎующОй ЌакрПс <i>navbarspacer</i> служОт Ўля тПгП, чтПбы ПтЎелОть кМПпку пПОска О кМПпкО классОфОкатПрПв в МавОгацОПММПй лОМейке. ОбычМП этП х
716ПрПшП зМакПЌая в Greenstone гПрОзПМтальМая зелеМая лОМейка. СлеЎущее ПпреЎелеМОе ОЌеет эффект вертОкальМПгП распПлПжеМОя кМПпПк, ПЎМа МаЎ ЎругПй.
717<p>
718<pre>
719&#095;navbarspacer&#095; {&lt;br\/&gt;}
720</pre>\n
721<p>
722
723ОпреЎелеМОе <i>navbarspacer</i>, ЎаММПе раМее ОспПльзует рОсуМПк <i>horzline.gif</i> в качестве разЎелОтеля (этПт рОсуМПк сПЎержОтся в папке кПллекцОО пПЎ МазваМОеЌ <i>images</i>). Эффект вОЎеМ в Мачале этПй страМОцы.\n
724
725<p>
726
727РазЌещеМОе кМПпПк гПрОзПМтальМП, все ещё ОспПльзуя <i>horzline.gif</i>, вЌестП зелеМПй лОМейкО как разЎелОтеля, уЎаляя тэгО <i>br</i> О ПпреЎеляет телП ЌакрПса (часть в фОгурМых
728 скПбках
729), как:
730
731<p>
732<pre>
733&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
734width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
735</pre>\n
736
737<p>
738ПереЌеММая <i>widthtspace</i> заЎаёт шОрОМу прПЌежутка ЌежЎу кМПпкаЌО, кПтПрую вычОсляет Greenstone.
739<p>
740
741
742Часть <i>extra.dm</i>, вПспрПОзвеЎеММая МОже, переПпреЎеляет ЌакрПсы в пакете <i>Style</i>, кПтПрый Птвечает за сПзЎаМОе загПлПвка О МОжМей сМПскО Ма кажЎПй страМОце:\n
743
744<p>
745
746<pre>
747##########################################################################\n
748package Style\n
749##########################################################################\n
750\n
751
752&#095;collectionspecificstyle&#095; {\n
753&lt;link rel=\"stylesheet\" href=\"&#095;httpcstyle&#095;/style.css\" type=\"text/css\" \n
754title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
755&lt;style&gt;\n
756body.bgimage \\\{ background-image: none; \\\}\n
757a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
758&lt;/style&gt;\n
759}\n
760\n
761&#095;pagebanner&#095; {\n
762&lt;div class=\"pageinfo\"&gt; \n
763&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
764&lt;/div&gt;\n
765}\n
766</pre>\n
767
768<p>
769
770ЌакрПс загПлПвка страМОцы 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>, кПтПрый пПзвПляет ЎПбавОть к кПллекцОО стОлОстОческОе элеЌеМты к МабПру пП уЌПлчаМОю.
771
772<p>
773ЧтПбы ОспПльзПвать сПвершеММП ЎругПй стОль в кПллекцОО, выберОте ЌакрП <i>cssheader</i> в <i>extra.dm</i>. ЧтПбы всегП лОшь ЎПбавОть МескПлькП МПвых
774 стОлевых
775 ПпреЎелеМОй к стОлю пП уЌПлчаМОю, выберОте <i>collectionspecificstyle</i> в <i>extra.dm</i>. ЭтП былП сЎелаМП в этПй кПллекцОО. ВышеуказаМый ЌакрП <i>collectionspecificstyle</i> сПЎержОт таблОцу стОлей кПллекцОО, О переПпреЎеляет пару стОлей Ўля ОзПбражеМОй: ЗелеМая фПМПвая плаМка с завОткаЌО Осчезла, а фПМ МавОгацОПММПй паМелО теперь сОМОй.\n
776
777<p>
778МакрПс загПлПвкО страМОцы также вызывает <i>pagebanner</i>, чтПбы включОть эЌблеЌу кПллекцОО, кМПпкО home/help/preferences О ОзПбражеМОе слева вверх
779у, кПтПрПе ОЎеМтОфОцОрует страМОцу (П страМОце, пПОскПвая страМОца О т.ÐŽ.). ПрПграЌЌа, указаММая выше, ПпреЎеляет баММер, чтПбы пПЎавОть этО ОзПбражеМОя. Как Вы ЌПжете вОЎеть, ПМО Ме пПявляются Маверх
780у этПй страМОцы.\n
781
782<p>
783СлеЎующая часть <i>extra.dm</i> переПпреЎеляет ЌакрПс Ўля ПпОсаМОя О <i>пакете</i>, сПЎержащОйся в <a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>, кПтПрый геМерОрует страМОцу <i>«Об этПй кПллекцОО»</i>, кПтПрую Вы вОЎОте сейчас.
784
785<pre>
786##########################################################################\n
787package about\n
788##########################################################################\n
789\n
790&#095;content&#095; {\n
791&#095;navigationbar&#095;\n
792\n
793&#095;textabout&#095;\n
794\n
795&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
796&#095;help:simplehelp&#095;\n
797}
798</pre>\n
799
800МакрПсПЎержаМОе Ўля текста <i>О страМОце</i> ПбычМП сПЎержОт МавОгацОПММую лОМейку (сП ссылкаЌО к ППОску О любыЌ классОфОкатПраЌ), сПпрПвПжЎаеЌую ПпОсаМОеЌ «Об этПй кПллекцОО» О текстПЌ «Как МайтО ОМфПрЌацОю». ППскПльку ПМО ОзЌеМяются Пт ПЎМПй кПллекцОО к ЎругПй, ЌакрПc <i>navigationbar</i> ПпреЎелеМ вМутрО Greenstone О ОспПльзует ЌакрПс <i>navbarspacer</i>, кПтПрый был ПбсужЎеМ выше. МакрПс <i>content</i> Ўля ПпОсаМОя <i>О страМОце</i>, преЎставлеММый выше, ПтлОчается Пт ПбычМПгП (такПгП, как кПллекцОО <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">Demo</a>) теЌ, чтП МавОгацОПММая лОМейка Ме ПтцеМтрОрПваМа О зЎесь Мет МОкакПгП пПля пПОска.
801<p>
802
803СлеЎующая часть <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=_cgiargc_&a=q\">пПОскПвПй страМОцы</a>.
804
805<pre>
806##############################################################################\n
807package query\n
808##############################################################################\n
809
810&#095;content&#095; {\n
811&#095;navigationbar&#095;\n
812\n
813&lt;center&gt;\n
814&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
815&lt;/center&gt;\n
816&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
817&lt;center&gt;\n
818&#095;searchhistorylist&#095;\n
819&lt;/center&gt;)\n
820&#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
821&lt;br&gt;\n
822}\n
823</pre>\n
824
825ОпреЎелеМОе <i>сПЎержаМОя</i> в стаМЎартМПЌ пакете <i>запрПса</i> пПЎПбМП версОО, ЎаММПй выше, за ОсключеМОеЌ тПгП, чтП ПМП пПЌещает в цеМтре ЌакрПс <i>navigationbar</i>, тПгЎа как вышеупПЌяМутая версОя Ме Ўелает этПгП О включает ЎПпПлМОтельМую зелеМую лОМейку. СравМОте <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">тП</a> О <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">этП</a>.
826<p>
827
828
829Ѐайл <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>). ЀактОческО страМОцы, геМерОруеЌые классОфОкатПраЌО (МапрОЌер, спОскПЌ МаОЌеМПваМОй) также управляются О этОЌО ЌакрПсаЌО.
830
831<pre>
832##########################################################################\n
833package document\n
834##########################################################################\n
835\n
836&#095;textheader&#095; {\n
837&#095;cgihead&#095;\n
838&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
839}\n
840\n
841&#095;content&#095; {\n
842&#095;navigationbar&#095;\n
843\n
844&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
845&lt;p style=\"text-align: center;\"&gt;\n
846&#095;phindclassifier&#095;\n
847&#095;collageclassifier&#095;\n
848&lt;/p&gt;\n
849)\n
850\n
851&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
852&lt;ul id=\"searchresults\"&gt;\n
853&#095;prevsearchresult&#095;\n
854&#095;nextsearchresult&#095;\n
855&lt;/ul&gt;)\n
856\n
857&lt;div class=\"document\"&gt;\n
858}
859</pre>\n
860
861ГрОМстПуМ аММулОрует ЌакрП <i>header</i>, еслО ОзПбражеМ ЎПкуЌеМт (а Ме классОфОкатПр). ПреЎпПлПжОЌ, Ќы Ме х
862ПтОЌ этПгП. ВышестПящОй кПЎ переПпреЎеляет ЌакрП <i>textheader</i> (ПбычМП ПпреЎелеММПЌ в <i>document.dm</i>) в качестве первПМачальМПгП сПЎержаМОя ЌакрП <i>header</i>. ВышестПящее ПпреЎелеМОе <i>content</i> аММулОрует зМачеМОе пП-уЌПлчаМОю, так чтП МавОгацОПММПе ЌеМю Ме цеМтрОруется.
863"
864
865# -- Simplified Chinese text ----------------
866collectionmeta collectionextra [l=zh] "
867本銆藏所包
868含的文档䞎Greenstone挔瀺銆藏䞭的䞀样䜆å…
869¶å€–观被曎改䞺garish风栌。\n
870
871<h3>本銆藏劂䜕工䜜</h3>\n
872
873<p>Greenstone銆藏的倖观由<i>greenstone/macros</i>目圕䞋的\"宏文件\"定义修改这些文件的内
874容将曎改所有銆藏的倖观。
875劂果只修改䞀䞪銆藏的倖观将修改后的宏攟å…
876¥è¯¥éŠ†è—<i>macros</i>目圕䞋的<i>extra.dm</i>文件䞭。䟋劂这䞪銆藏䜿甚这䞪文件
877<a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>。\n
878
879<p>䞺了将呈现细节从宏文件䞭分犻出来Greenstone䜿甚<i>层级样匏衚</i>曎倚信息请参见<a href=\"http://www.w3.org/Style/CSS/\">
880http://www.w3.org/Style/CSS/</a>这å…
881è®žæŒ‡å®šHTML页面的字䜓、颜色、闎隔以及å…
882¶ä»–å…
883ƒçŽ ã€‚标准的Greenstone样匏衚䜍于
884<a href=\"_httpstyle_/style.css\">greenstone/web/style/style.css</a>。本銆藏䜿甚䞀䞪附属的样匏衚
885<a href=\"_httpcstyle_/style.css\">greenstone/collect/_cgiargc_/style/style.css</a>䞎猺省样匏衚䞀起䜿甚。该样匏衚包
886括䞀些泚释信息以
887䟿䞍熟悉层级样匏衚的人理解。<i>extra.dm</i>文件䞭的䞀些宏匕甚了䜍于<i>greenstone/collect/_cgiargc_/images</i>䞭的囟片。\n
888
889<p><a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>宏文件将芆写Greenstone的猺省宏。圚宏文件䞭
890\"\#\"笊号衚瀺䞀䞪泚释行<i>extra.dm</i>䞭已添加泚释以䟿诎明å…
891¶åŠŸèƒœïŒ‰ã€‚宏本身由䞋划线匀始而䞔可以匕甚å…
892¶ä»–宏。这意味着䞀䞪页面的内
893容
894可以被分割成埈倚小块而䞔埈隟察看敎䞪匕甚铟来匄枅
895楚哪䞪宏调甚了哪䞪宏。幞运的是宏圓䞭的曎改劂同栌匏参数䞭的曎改胜立即见效陀非圓
896前䜿甚的是Greenstone本地服务噚暡匏圚这种情
897况䞋需芁重启服务噚。这䜿埗调试宏文件变埗埈容易。
898
899<p>这些宏按\"packages\"包
900分组。䜆是并䞍每䞪包
901郜䞍需芁䞀䞪单独的文件。<i>Global</i>å…
902šå±€ïŒ‰åŒ…
903倧郚分存圚于
904<a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a>文件䞭也有䞀郚分保存圚语蚀盞å…
905³çš„宏文件䞭比劂
906<a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a>侎<a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>
907包
908含了猺省的宏䞔可被å…
909¶ä»–包
910䞭的宏芆写。这里是<i>extra.dm</i>文件䞭重定义了å…
911šå±€å®å˜é‡çš„郚分。
912
913<pre>
914##########################################################################\n
915package Global\n
916##########################################################################\n
917\n
918&#095;starthighlight&#095; {&lt;b&gt;}\n
919&#095;endhighlight&#095; {&lt;/b&gt;}\n
920\n
921&#095;navbarspacer&#095; { \n
922&lt;br/&gt;\n
923&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
924&lt;br/&gt;\n
925}\n
926</pre>\n
927
928<i>starthighlight</i>侎<i>endhighlight</i>的倌被甚于圚星瀺文档时高亮星瀺查询词。猺省情
929况时将背景讟眮成黄色。䞊面的第䞀䞪讟眮即将查询词的高亮讟眮䞺黑䜓。\n
930
931<p>接䞋来<i>navbarspacer</i>宏莟莣将浏览条䞭的搜玢按钮䞎分类按钮分匀。通垞情
932况䞋Greenstone有䞀䞪氎平的绿色的浏览条。接䞋来的定义将垂盎眗列这些按钮
933䞀䞪圚及䞀䞪之䞊。
934<pre>
935&#095;navbarspacer&#095; {&lt;br\/&gt;}
936</pre>\n
937
938前面给出的<i>navbarspacer</i>定义甚到了<i>horzline.gif</i>囟片䜜䞺分隔笊这䞪囟片圚銆藏的<i>images</i>目圕䞭。圚这䞪页面的顶端即可看到效果。\n
939
940<p>若芁按氎平方匏排列这些按钮并仍䜿甚<i>horzline.gif</i>而䞍是绿色条䜜䞺分隔笊删陀<i>br</i>标记并定义宏的䞻䜓圚倧括号䞭的郚分䞺
941<pre>
942&lt;img src=\"&#095;httpcimages&#095;\/horzline.gif\"\n
943width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;
944</pre>\n
945
946<i>widthtspace</i>变量定义了按钮闎的宜床Greenstone将计算这䞪宜床。\n
947
948<p>䞋面所列的<i>extra.dm</i>郚分重定义了<i>Style</i>包
949䞭的宏这䞪宏将莟莣创建每䞪页面的页倎和页尟并定义垞甚的样匏信息
950
951<pre>
952##########################################################################\n
953package Style\n
954##########################################################################\n
955\n
956
957&#095;collectionspecificstyle&#095; {\n
958&lt;link rel=\"stylesheet\" href=\"&#095;httpcstyle&#095;/style.css\" type=\"text/css\" \n
959title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
960&lt;style&gt;\n
961body.bgimage \\\{ background-image: none; \\\}\n
962a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
963&lt;/style&gt;\n
964}\n
965\n
966&#095;pagebanner&#095; {\n
967&lt;div class=\"pageinfo\"&gt; \n
968&lt;p class=\"bannerlinks\"&gt;&#095;homelink&#095;&lt;/p&gt;\n
969&lt;/div&gt;\n
970}\n
971</pre>\n
972
973Greenstone的片倎宏即<a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>侭的<i>header</i>将星瀺该銆藏的名称或者
974标志
975并铟接到䞻页、垮助页面䞎偏奜页面。它将调甚<i>htmlhead</i>宏这䞪宏将星瀺HTML文件的匀倎郚分。这里调甚<i>cssheader</i>宏
976这䞪宏星瀺页面的样匏信息。这里包
977括了<i>collectionspecificstyle</i>宏这䞪宏å…
978è®žéŠ†è—åœšçŒºçœæ ·åŒçš„基础䞊添加å…
979¶ä»–样匏å…
980ƒçŽ ã€‚
981
982<p>若芁圚该銆藏䞭䜿甚å…
983šæ–°çš„样匏圚<i>extra.dm</i>䞭定义<i>cssheader</i>宏。若只是圚猺省样匏䞭添加几䞪样匏定义圚<i>extra.dm</i>䞭定义
984<i>collectionspecificstyle</i>。这就是銆藏的圢成方匏。䞊面的<i>collectionspecificstyle</i>宏包
985含了该銆藏自己的样匏衚同时也芆写了䞀些囟片的定义
986去掉了绿色旋蜬条纹的背景囟片并将浏览条的悬停背景变䞺蓝色。
987
988<p>页面倎宏也调甚<i>pagebanner</i>来包
989含该銆藏的标志䞻页/垮助/偏奜按钮以及巊䞊方指瀺圓前页面的囟片诎明页面搜玢页面等等。䞊面的代码重
990定义的标志陀去了所有囟片陀了䞻页按钮之倖——这些囟片没有出现圚这䞪页面的顶端。\n
991
992<p><i>extra.dm</i>接䞋来的䞀郚分重新定义了<i>about</i>包
993䞭的宏包
994含圚<a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>䞭
995这䞪宏将产生\"å…
996³äºŽæœ¬éŠ†è—\"页面劂䞋所瀺
997
998<pre>
999##########################################################################\n
1000package about\n
1001##########################################################################\n
1002\n
1003&#095;content&#095; {\n
1004&#095;navigationbar&#095;\n
1005\n
1006&#095;textabout&#095;\n
1007\n
1008&lt;h3&gt;&#095;help:textsimplehelpheading&#095;&lt;/h3&gt;\n
1009&#095;help:simplehelp&#095;\n
1010}
1011</pre>\n
1012
1013<i>About</i>页面的<i>content</i>宏通垞包
1014含了浏览条铟接到<i>搜玢</i>䞎任意䞀䞪分类噚接䞋来是\"å…
1015³äºŽæœ¬éŠ†è—\"侎\"劂䜕扟到盞å…
1016³ä¿¡æ¯\"的文本。因䞺这䞪
1017宏是随銆藏的䞍同而䞍同<i>navigationbar</i>宏是由Greenstone内
1018郚定义的而䞔䜿甚前面定义的<i>navbarspacer</i>宏。<i>å…
1019³äºŽ</i>页面的<i>content</i>宏
1020劂䞊面所瀺䞍同于垞规的宏比劂挔瀺銆藏的宏见<a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">这里</a>䞍同之倄圚于浏览条并䞍是居
1021䞭星瀺的
1022而䞔没有搜玢框。\n
1023
1024<p><i>extra.dm</i>的䞋䞀郚分重新定义了<i>query</i>包
1025䞭的宏劂<a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>䞭所瀺这䞪宏
1026甚于生成<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">搜玢页</a>
1027
1028<pre>
1029##############################################################################\n
1030package query\n
1031##############################################################################\n
1032
1033&#095;content&#095; {\n
1034&#095;navigationbar&#095;\n
1035\n
1036&lt;center&gt;\n
1037&#095;If&#095;(&#095;cgiargct&#095;,&#095;selectqueryform&#095;,&#095;queryform&#095;)\n
1038&lt;/center&gt;\n
1039&#095;If&#095;(&#095;searchhistorylist&#095;,&lt;center&gt;&#095;iconsearchhistorybar&#095;&lt;/center&gt;&lt;br&gt;\n
1040&lt;center&gt;\n
1041&#095;searchhistorylist&#095;\n
1042&lt;/center&gt;)\n
1043&#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
1044&lt;br&gt;\n
1045}\n
1046</pre>\n
1047
1048标准<i>query</i>䞭定义的<i>content</i>宏䞎䞊述定义类䌌陀了标准定义䌚居
1049䞭星瀺<i>navigationbar</i>宏而䞊述定义䞍居
1050䞭星瀺而䞔它还额倖包
1051含了䞀䞪绿色条。
1052比蟃<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">这䞪</a>和<a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">这䞪</a>.\n
1053
1054<p><a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>文件也重新定义了<i>document</i>包
1055䞭的宏这些宏被甚于星瀺文档参见
1056<a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>。事实䞊分类噚所创建的页面䟋劂题名列衚也是被这些宏所定义。
1057
1058##########################################################################\n
1059package document\n
1060##########################################################################\n
1061\n
1062&#095;textheader&#095; {\n
1063&#095;cgihead&#095;\n
1064&#095;htmlhead&#095;(class=\"bgimage\")&#095;startspacer&#095;&#095;pagebanner&#095; \n
1065}\n
1066\n
1067&#095;content&#095; {\n
1068&#095;navigationbar&#095;\n
1069\n
1070&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
1071&lt;p style=\"text-align: center;\"&gt;\n
1072&#095;phindclassifier&#095;\n
1073&#095;collageclassifier&#095;\n
1074&lt;/p&gt;\n
1075)\n
1076\n
1077&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
1078&lt;ul id=\"searchresults\"&gt;\n
1079&#095;prevsearchresult&#095;\n
1080&#095;nextsearchresult&#095;\n
1081&lt;/ul&gt;)\n
1082\n
1083&lt;div class=\"document\"&gt;\n
1084}\n
1085</pre>\n
1086
1087劂果星瀺的是文档而䞍是分类噚Greenstone将芆写<i>header</i>宏。假讟我们䞍想让Greenstone芆写这䞪宏则䞊面的代码将重新定义<i>textheader</i>宏
1088通垞圚<i>document.dm</i>䞭定义并䜜䞺原始的<i>header</i>宏的内
1089容。䞊述<i>content</i>的定义芆写了猺省的倌因歀浏览条也䞍䌚居
1090䞭星瀺。
1091"
Note: See TracBrowser for help on using the repository browser.