1 | creator [email protected]
|
---|
2 | maintainer [email protected]
|
---|
3 | public true
|
---|
4 |
|
---|
5 | buildtype mgpp
|
---|
6 | infodbtype gdbm
|
---|
7 |
|
---|
8 | indexes text dls.Title,ex.Title dls.Subject dls.Organization dls.Keyword
|
---|
9 |
|
---|
10 | levels section document
|
---|
11 |
|
---|
12 | plugin GreenstoneXMLPlugin
|
---|
13 | plugin HTMLPlugin -description_tags
|
---|
14 | plugin MetadataXMLPlugin
|
---|
15 | plugin ArchivesInfPlugin
|
---|
16 | plugin DirectoryPlugin
|
---|
17 |
|
---|
18 | classify List -metadata dls.Title -partition_type_within_level constant_size
|
---|
19 |
|
---|
20 | classify Hierarchy -metadata dls.Subject -sort dls.Title
|
---|
21 |
|
---|
22 | classify List -sort_leaf_nodes_using dls.Title -metadata dls.Organization -bookshelf_type always -partition_type_within_level constant_size
|
---|
23 |
|
---|
24 | classify List -metadata dls.Keyword -partition_type_within_level constant_size -buttonname Howto
|
---|
25 |
|
---|
26 | format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
|
---|
27 |
|
---|
28 | format 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 |
|
---|
30 | format 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 |
|
---|
32 | format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]</p>"
|
---|
33 | format DocumentImages true
|
---|
34 | format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
|
---|
35 | format DocumentSearchResultLinks true
|
---|
36 |
|
---|
37 | format HList "[link][highlight][Title][/highlight][/link]"
|
---|
38 |
|
---|
39 | format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
|
---|
40 |
|
---|
41 | format SearchTypes "plain,form"
|
---|
42 |
|
---|
43 | # strings that use macros
|
---|
44 | # these don't need translating unless you want something different from the
|
---|
45 | # default
|
---|
46 | collectionmeta .text [l=en] "_labeltext_"
|
---|
47 | collectionmeta .dls.Title,Title [l=en] "_labelTitle_"
|
---|
48 | collectionmeta .dls.Subject [l=en] "_labelSubject_"
|
---|
49 | collectionmeta .dls.Organization [l=en] "_labelOrganization_"
|
---|
50 | collectionmeta .dls.Keyword [l=en] "_labelHowto_"
|
---|
51 |
|
---|
52 | collectionmeta .document [l=en] "_textbook_"
|
---|
53 | collectionmeta .section [l=en] "_textchapter_"
|
---|
54 |
|
---|
55 | # -- English strings ----------------
|
---|
56 | collectionmeta collectionname [l=en] "Garish version of demo collection"
|
---|
57 |
|
---|
58 | collectionmeta 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 ----------------
|
---|
61 | collectionmeta collectionname [l=fr] "Version Garish de la collection de démonstration"
|
---|
62 |
|
---|
63 | # -- Spanish strings ----------------
|
---|
64 | collectionmeta collectionname [l=es] "Versión colorida de la colección de muestra"
|
---|
65 |
|
---|
66 | # -- Russian strings ----------------
|
---|
67 | collectionmeta collectionname [l=ru] "Ð ÐµÐ·ÐºÐ°Ñ Ð²ÐµÑÑÐžÑ ÐŽÐµÐŒÐŸÐœÑÑÑаÑОПМ-МПй кПллекÑОО"
|
---|
68 |
|
---|
69 |
|
---|
70 | # -- Simplified Chinese strings ----------------
|
---|
71 | collectionmeta collectionname [l=zh] "Garishçæ¬çæŒç€ºéŠè"
|
---|
72 |
|
---|
73 |
|
---|
74 | # -- English text ----------------
|
---|
75 | collectionmeta 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
|
---|
76 |
|
---|
77 | <h3>How the collection works</h3>\n
|
---|
78 |
|
---|
79 | <p>
|
---|
80 | The appearance of Greenstone collections is defined by \"macro files\" in the
|
---|
81 | <i>greenstone/macros</i> directory, and can be completely altered by changing the contents of these files.
|
---|
82 | Editing 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
|
---|
83 | <p>
|
---|
84 | To separate presentation details from the macro files,
|
---|
85 | Greenstone uses <i>Cascading Style Sheets</i>
|
---|
86 | (see <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> for
|
---|
87 | more information), which allow you to specify fonts, colours, spacings, and
|
---|
88 | other 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
|
---|
89 | for those unfamiliar with cascading style sheets. Some of the
|
---|
90 | macros in <i>extra.dm</i> reference images that have been placed in
|
---|
91 | <i>greenstone/collect/_cgiargc_/images</i>.\n
|
---|
92 | <p>
|
---|
93 | The
|
---|
94 | <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
|
---|
95 | macro file overrides some of the macros that Greenstone
|
---|
96 | uses by default. In macro files, the \"\#\" character signals a comment line
|
---|
97 | (<i>extra.dm</i> is commented to help explain what it does).
|
---|
98 | Macros themselves are signalled by
|
---|
99 | underscores, and they can reference other macros. This means that the
|
---|
100 | content of a page can be split into many small chunks, and it can be
|
---|
101 | difficult to work through the chain of which macro calls what. Fortunately,
|
---|
102 | changes in macros (like changes in format strings) take effect immediately
|
---|
103 | unless you are using the Greenstone local library server, in which case the
|
---|
104 | server needs to be restarted. This makes it easy to experiment by editing
|
---|
105 | the macro files.\n
|
---|
106 |
|
---|
107 | <p>
|
---|
108 | Macros are grouped into \"packages\". But each package does not necessarily reside in
|
---|
109 | a single file. The <i>Global</i> package, most of which is in file
|
---|
110 | <a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a>
|
---|
111 | (parts of it are also in the language-specific macro files such as
|
---|
112 | <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> and
|
---|
113 | <a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>),
|
---|
114 | contains default macros that can be overridden by macros in other packages. Here is the part
|
---|
115 | of <i>extra.dm</i> that redefines global macros.
|
---|
116 | <pre>
|
---|
117 | ##########################################################################\n
|
---|
118 | package Global\n
|
---|
119 | ##########################################################################\n
|
---|
120 | \n
|
---|
121 | _starthighlight_ {<b>}\n
|
---|
122 | _endhighlight_ {</b>}\n
|
---|
123 | \n
|
---|
124 | _navbarspacer_ { \n
|
---|
125 | <br/>\n
|
---|
126 | <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n
|
---|
127 | <br/>\n
|
---|
128 | }\n
|
---|
129 | </pre>\n
|
---|
130 | The values of <i>starthighlight</i> and <i>endhighlight</i> are used to
|
---|
131 | highlight query terms when displaying a document. The default is to set the
|
---|
132 | background to yellow. The first specification above places query terms in
|
---|
133 | bold instead.\n
|
---|
134 |
|
---|
135 | <p>
|
---|
136 | Next, the <i>navbarspacer</i> macro is what separates the search button and
|
---|
137 | classifier buttons in the navigation bar. It is normally Greenstone\'s
|
---|
138 | familiar horizontal green bar. The following definition has the effect of
|
---|
139 | stacking the buttons vertically, one above the other.
|
---|
140 | <pre>
|
---|
141 | _navbarspacer_ {<br\/>}
|
---|
142 | </pre>\n
|
---|
143 |
|
---|
144 | The definition of <i>navbarspacer</i> given earlier uses the image
|
---|
145 | <i>horzline.gif</i> as a separator (this image appears in the
|
---|
146 | <i>images</i> directory of the collection). The effect can be seen at the top of this page.\n
|
---|
147 |
|
---|
148 | <p>
|
---|
149 | To arrange the buttons horizontally, still using
|
---|
150 | <i>horzline.gif</i> instead of the green bar as separator,
|
---|
151 | remove the <i>br</i> tags and define the body of the macro
|
---|
152 | (the part in curly brackets) to be:
|
---|
153 | <pre>
|
---|
154 | <img src=\"_httpcimages_\/horzline.gif\"\n
|
---|
155 | width=\"_widthtspace_\" height=\"17\">
|
---|
156 | </pre>\n
|
---|
157 |
|
---|
158 | The <i>widthtspace</i> variable gives the width of the gap between the
|
---|
159 | buttons, which Greenstone calculates.\n
|
---|
160 |
|
---|
161 | <p>
|
---|
162 | The part of <i>extra.dm</i> reproduced below redefines macros in the
|
---|
163 | <i>Style</i> package, which is responsible for creating the header and
|
---|
164 | footer of every page, and defining common style information:
|
---|
165 | <pre>
|
---|
166 | ##########################################################################\n
|
---|
167 | package Style\n
|
---|
168 | ##########################################################################\n
|
---|
169 | \n
|
---|
170 |
|
---|
171 | _collectionspecificstyle_ {\n
|
---|
172 | <link rel=\"stylesheet\" href=\"_httpcstyle_/style.css\" type=\"text/css\" \n
|
---|
173 | title=\"Greenstone Style\" charset=\"UTF-8\">\n
|
---|
174 | <style>\n
|
---|
175 | body.bgimage \\\{ background-image: none; \\\}\n
|
---|
176 | a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n
|
---|
177 | </style>\n
|
---|
178 | }\n
|
---|
179 | \n
|
---|
180 | _pagebanner_ {\n
|
---|
181 | <div class=\"pageinfo\"> \n
|
---|
182 | <p class=\"bannerlinks\">_homelink_</p>\n
|
---|
183 | </div>\n
|
---|
184 | }\n
|
---|
185 | </pre>\n
|
---|
186 |
|
---|
187 | Greenstone\'s page header macro, which is called <i>header</i> in
|
---|
188 | <a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>,
|
---|
189 | prints the collection\'s name or logo, and links to the
|
---|
190 | home, help, and preferences pages. It calls the macro <i>htmlhead</i> which
|
---|
191 | outputs 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.
|
---|
192 |
|
---|
193 | <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.
|
---|
194 |
|
---|
195 | <p>
|
---|
196 | The page header macro also calls <i>pagebanner</i> to include the collection\'s logo,
|
---|
197 | home/help/preferences buttons, and the image at the top left that
|
---|
198 | identifies the page (about page, search page, etc). The code above
|
---|
199 | redefines the banner to suppress all these images except for the home page button -- as you can see, they don\'t appear
|
---|
200 | at the top of this page.\n
|
---|
201 |
|
---|
202 | <p>
|
---|
203 | The next part of <i>extra.dm</i> redefines macros in the <i>about</i>
|
---|
204 | package (contained in
|
---|
205 | <a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>), which generates the
|
---|
206 | \"About this collection\" page that you are looking at now:
|
---|
207 | <pre>
|
---|
208 | ##########################################################################\n
|
---|
209 | package about\n
|
---|
210 | ##########################################################################\n
|
---|
211 | \n
|
---|
212 | _content_ {\n
|
---|
213 | _navigationbar_\n
|
---|
214 | \n
|
---|
215 | _textabout_\n
|
---|
216 | \n
|
---|
217 | <h3>_help:textsimplehelpheading_</h3>\n
|
---|
218 | _help:simplehelp_\n
|
---|
219 | }
|
---|
220 | </pre>\n
|
---|
221 |
|
---|
222 | The macro <i>content</i> for the <i>About</i> page normally contains the
|
---|
223 | navigation bar (with links to <i>Search</i> and any classifiers),
|
---|
224 | followed by \"About this collection\" and \"how to find information\"
|
---|
225 | text. Because it changes from one collection to another, the
|
---|
226 | <i>navigationbar</i> macro is defined internally by Greenstone, and uses
|
---|
227 | the <i>navbarspacer</i> macro discussed above. The <i>content</i> macro for
|
---|
228 | the <i>About</i> page, given above, differs from the regular one
|
---|
229 | (such as the one for the demo collection <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">here</a>)
|
---|
230 | in that the navigation bar is not centered, and there is no search box.\n
|
---|
231 |
|
---|
232 | <p>
|
---|
233 | The next part of <i>extra.dm</i> redefines macros in the <i>query</i> package (in
|
---|
234 | <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>),
|
---|
235 | which is used to generate the
|
---|
236 | <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">search page</a>:
|
---|
237 | <pre>
|
---|
238 | ##############################################################################\n
|
---|
239 | package query\n
|
---|
240 | ##############################################################################\n
|
---|
241 |
|
---|
242 | _content_ {\n
|
---|
243 | _navigationbar_\n
|
---|
244 | \n
|
---|
245 | <center>\n
|
---|
246 | _If_(_cgiargct_,_selectqueryform_,_queryform_)\n
|
---|
247 | </center>\n
|
---|
248 | _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>\n
|
---|
249 | <center>\n
|
---|
250 | _searchhistorylist_\n
|
---|
251 | </center>)\n
|
---|
252 | _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)\n
|
---|
253 | <br>\n
|
---|
254 | }\n
|
---|
255 | </pre>\n
|
---|
256 |
|
---|
257 | The definition of <i>content</i> in the standard <i>query</i> package is
|
---|
258 | similar to the version given above, except that it centers the
|
---|
259 | <i>navigationbar</i> macro, whereas the above version does not, and it
|
---|
260 | includes an additional green bar. Compare
|
---|
261 | <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">this</a>
|
---|
262 | and
|
---|
263 | <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">this</a>.\n
|
---|
264 |
|
---|
265 | <p>
|
---|
266 | The file
|
---|
267 | <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
|
---|
268 | also redefines macros in the <i>document</i> package,
|
---|
269 | which is used to display documents (see
|
---|
270 | <a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>). In fact, pages
|
---|
271 | generated by classifiers (e.g. lists of titles) are also governed by these macros.
|
---|
272 | <pre>
|
---|
273 | ##########################################################################\n
|
---|
274 | package document\n
|
---|
275 | ##########################################################################\n
|
---|
276 | \n
|
---|
277 | _textheader_ {\n
|
---|
278 | _cgihead_\n
|
---|
279 | _htmlhead_(class=\"bgimage\")_startspacer__pagebanner_ \n
|
---|
280 | }\n
|
---|
281 | \n
|
---|
282 | _content_ {\n
|
---|
283 | _navigationbar_\n
|
---|
284 | \n
|
---|
285 | _If_(_phindclassifier__collageclassifier_,\n
|
---|
286 | <p style=\"text-align: center;\">\n
|
---|
287 | _phindclassifier_\n
|
---|
288 | _collageclassifier_\n
|
---|
289 | </p>\n
|
---|
290 | )\n
|
---|
291 | \n
|
---|
292 | _If_(\"_cgiargcl_\" eq \"search\",\n
|
---|
293 | <ul id=\"searchresults\">\n
|
---|
294 | _prevsearchresult_\n
|
---|
295 | _nextsearchresult_\n
|
---|
296 | </ul>)\n
|
---|
297 | \n
|
---|
298 | <div class=\"document\">\n
|
---|
299 | }\n
|
---|
300 | </pre>\n
|
---|
301 |
|
---|
302 | Greenstone overrides the <i>header</i> macro if a document (and not a
|
---|
303 | classifier) is being displayed. Suppose we don\'t want it to. The code
|
---|
304 | above redefines the <i>textheader</i> macro (normally defined in
|
---|
305 | <i>document.dm</i>) to be the content of the original <i>header</i> macro. The definition of <i>content</i> above overrides the
|
---|
306 | default so that the navigation bar is not centered.
|
---|
307 | "
|
---|
308 |
|
---|
309 | # -- French text ----------------
|
---|
310 | collectionmeta collectionextra [l=fr] "
|
---|
311 | Cette 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.
|
---|
312 |
|
---|
313 | <h3>Comment la collection marche</h3>
|
---|
314 |
|
---|
315 | <p>
|
---|
316 | L\'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
|
---|
317 | <p>
|
---|
318 | Pour 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
|
---|
319 | <p>
|
---|
320 | Le fichier de macros <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
|
---|
321 | l\'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.
|
---|
322 |
|
---|
323 | <p>
|
---|
324 | Les 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
|
---|
325 | <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>),
|
---|
326 | contient 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.
|
---|
327 |
|
---|
328 | <pre>
|
---|
329 | ##########################################################################\n
|
---|
330 | package Global\n
|
---|
331 | ##########################################################################\n
|
---|
332 | \n
|
---|
333 | _starthighlight_ {<b>}\n
|
---|
334 | _endhighlight_ {</b>}\n
|
---|
335 | \n
|
---|
336 | _navbarspacer_ { \n
|
---|
337 | <br/>\n
|
---|
338 | <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n
|
---|
339 | <br/>\n
|
---|
340 | }\n
|
---|
341 | </pre>\n
|
---|
342 |
|
---|
343 | Les 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.
|
---|
344 |
|
---|
345 | <p>
|
---|
346 | Ensuite, 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.
|
---|
347 | <pre>
|
---|
348 | _navbarspacer_ {<br\/> }
|
---|
349 | </pre>\n
|
---|
350 |
|
---|
351 | La 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
|
---|
352 |
|
---|
353 | <p>
|
---|
354 | Pour 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:
|
---|
355 | <pre>
|
---|
356 | <img src=\"_httpcimages_\/horzline.gif\"\n
|
---|
357 | width=\"_widthtspace_\" height=\"17\">
|
---|
358 | </pre>\n
|
---|
359 |
|
---|
360 | La variable <i>widthtspace</i> donne la largeur de l\'espace entre les boutons que Greenstone calcule.
|
---|
361 |
|
---|
362 | <p>
|
---|
363 | La 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:
|
---|
364 |
|
---|
365 | <pre>
|
---|
366 | ##########################################################################\n
|
---|
367 | package Style\n
|
---|
368 | ##########################################################################\n
|
---|
369 | \n
|
---|
370 |
|
---|
371 | _collectionspecificstyle_ {\n
|
---|
372 | <link rel=\"stylesheet\" href=\"_httpcstyle_/style.css\" type=\"text/css\" \n
|
---|
373 | title=\"Greenstone Style\" charset=\"UTF-8\">\n
|
---|
374 | <style>\n
|
---|
375 | body.bgimage \\\{ background-image: none; \\\}\n
|
---|
376 | a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n
|
---|
377 | </style>\n
|
---|
378 | }\n
|
---|
379 | \n
|
---|
380 | _pagebanner_ {\n
|
---|
381 | <div class=\"pageinfo\"> \n
|
---|
382 | <p class=\"bannerlinks\">_homelink_</p>\n
|
---|
383 | </div>\n
|
---|
384 | }\n
|
---|
385 | </pre>\n
|
---|
386 |
|
---|
387 | La macro de l\'en-tête de la page de Greenstone, appelée <i>header</i> dans
|
---|
388 | <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.
|
---|
389 | <p>
|
---|
390 | Pour 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
|
---|
391 | <p>
|
---|
392 | La 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
|
---|
393 |
|
---|
394 | <p>
|
---|
395 | La 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:
|
---|
396 | <pre>
|
---|
397 | ##########################################################################\n
|
---|
398 | package about\n
|
---|
399 | ##########################################################################\n
|
---|
400 | \n
|
---|
401 | _content_ {\n
|
---|
402 | _navigationbar_\n
|
---|
403 | \n
|
---|
404 | _textabout_\n
|
---|
405 | \n
|
---|
406 | <h3>_help:textsimplehelpheading_</h3>\n
|
---|
407 | _help:simplehelp_\n
|
---|
408 | }
|
---|
409 | </pre>\n
|
---|
410 |
|
---|
411 | La 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>)
|
---|
412 | en ce sens que la barre de navigation n\'est pas centrée et qu\'il n\'y a pas de boîte de recherche.
|
---|
413 |
|
---|
414 | <p>
|
---|
415 | La 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>),
|
---|
416 | qui est utilisé pour générer la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">page de recherche</a>:
|
---|
417 | <pre>
|
---|
418 | ##############################################################################\n
|
---|
419 | package query\n
|
---|
420 | ##############################################################################\n
|
---|
421 |
|
---|
422 | _content_ {\n
|
---|
423 | _navigationbar_\n
|
---|
424 | \n
|
---|
425 | <center>\n
|
---|
426 | _If_(_cgiargct_,_selectqueryform_,_queryform_)\n
|
---|
427 | </center>\n
|
---|
428 | _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>\n
|
---|
429 | <center>\n
|
---|
430 | _searchhistorylist_\n
|
---|
431 | </center>)\n
|
---|
432 | _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)\n
|
---|
433 | <br>\n
|
---|
434 | }\n
|
---|
435 | </pre>\n
|
---|
436 |
|
---|
437 | La 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
|
---|
438 | <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">ceci</a> Ã <a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">ceci</a>.
|
---|
439 |
|
---|
440 | <p>
|
---|
441 | Le 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
|
---|
442 | <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.
|
---|
443 |
|
---|
444 | <pre>
|
---|
445 | ##########################################################################\n
|
---|
446 | package document\n
|
---|
447 | ##########################################################################\n
|
---|
448 | \n
|
---|
449 | _textheader_ {\n
|
---|
450 | _cgihead_\n
|
---|
451 | _htmlhead_(class=\"bgimage\")_startspacer__pagebanner_ \n
|
---|
452 | }\n
|
---|
453 | \n
|
---|
454 | _content_ {\n
|
---|
455 | _navigationbar_\n
|
---|
456 | \n
|
---|
457 | _If_(_phindclassifier__collageclassifier_,\n
|
---|
458 | <p style=\"text-align: center;\">\n
|
---|
459 | _phindclassifier_\n
|
---|
460 | _collageclassifier_\n
|
---|
461 | </p>\n
|
---|
462 | )\n
|
---|
463 | \n
|
---|
464 | _If_(\"_cgiargcl_\" eq \"search\",\n
|
---|
465 | <ul id=\"searchresults\">\n
|
---|
466 | _prevsearchresult_\n
|
---|
467 | _nextsearchresult_\n
|
---|
468 | </ul>)\n
|
---|
469 | \n
|
---|
470 | <div class=\"document\">\n
|
---|
471 | }\n
|
---|
472 | </pre>\n
|
---|
473 |
|
---|
474 | Greenstone 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.
|
---|
475 | "
|
---|
476 |
|
---|
477 | # -- Spanish text ----------------
|
---|
478 | collectionmeta collectionextra [l=es] "
|
---|
479 | Esta 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.
|
---|
480 | <p>
|
---|
481 |
|
---|
482 | <h3>Cómo trabaja esta colección</h3>
|
---|
483 | <p>
|
---|
484 | La 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
|
---|
485 |
|
---|
486 |
|
---|
487 | <p>
|
---|
488 | Para 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
|
---|
489 |
|
---|
490 |
|
---|
491 | <p>
|
---|
492 |
|
---|
493 | El 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.
|
---|
494 | <p>
|
---|
495 |
|
---|
496 |
|
---|
497 | Las 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:
|
---|
498 | <p>
|
---|
499 |
|
---|
500 | <pre>
|
---|
501 | ##########################################################################\n
|
---|
502 | package Global\n
|
---|
503 | ##########################################################################\n
|
---|
504 | \n
|
---|
505 | _starthighlight_ {<b>}\n
|
---|
506 | _endhighlight_ {</b>}\n
|
---|
507 | \n
|
---|
508 | _navbarspacer_ { \n
|
---|
509 | <br/>\n
|
---|
510 | <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n
|
---|
511 | <br/>\n
|
---|
512 | }\n
|
---|
513 | </pre>\n
|
---|
514 |
|
---|
515 | <p>
|
---|
516 | Los 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.
|
---|
517 | <p>
|
---|
518 |
|
---|
519 | A 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.
|
---|
520 | <p>
|
---|
521 |
|
---|
522 | <pre>
|
---|
523 | _navbarspacer_ {<br\/>} \n
|
---|
524 | </pre>\n
|
---|
525 | <p>
|
---|
526 |
|
---|
527 | La 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
|
---|
528 | <p>
|
---|
529 |
|
---|
530 | Para 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:
|
---|
531 | <p>
|
---|
532 |
|
---|
533 | <pre>
|
---|
534 | <img src=\"_httpcimages_\/horzline.gif\"\n
|
---|
535 | width=\"_widthtspace_\" height=\"17\">
|
---|
536 | </pre>\n
|
---|
537 | <p>
|
---|
538 |
|
---|
539 | La variable <i>widthtspace</i> da el ancho del espacio entre los botones, lo cual es calculado por Greenstone.
|
---|
540 | <p>
|
---|
541 |
|
---|
542 | La 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:
|
---|
543 |
|
---|
544 | <p>
|
---|
545 |
|
---|
546 | <pre>
|
---|
547 | ##########################################################################\n
|
---|
548 | package Style\n
|
---|
549 | ##########################################################################\n
|
---|
550 | \n
|
---|
551 |
|
---|
552 | _collectionspecificstyle_ {\n
|
---|
553 | <link rel=\"stylesheet\" href=\"_httpcstyle_/style.css\" type=\"text/css\" \n
|
---|
554 | title=\"Greenstone Style\" charset=\"UTF-8\">\n
|
---|
555 | <style>\n
|
---|
556 | body.bgimage \\\{ background-image: none; \\\}\n
|
---|
557 | a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n
|
---|
558 | </style>\n
|
---|
559 | }\n
|
---|
560 | \n
|
---|
561 | _pagebanner_ {\n
|
---|
562 | <div class=\"pageinfo\"> \n
|
---|
563 | <p class=\"bannerlinks\">_homelink_</p>\n
|
---|
564 | </div>\n
|
---|
565 | }\n
|
---|
566 | </pre>\n
|
---|
567 |
|
---|
568 | <p>
|
---|
569 |
|
---|
570 | La 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.
|
---|
571 |
|
---|
572 | <p>
|
---|
573 | Para 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.
|
---|
574 | <p>
|
---|
575 | La 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.
|
---|
576 | <p>
|
---|
577 |
|
---|
578 | La 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.
|
---|
579 | <p>
|
---|
580 |
|
---|
581 | <pre>
|
---|
582 | ##########################################################################\n
|
---|
583 | package about\n
|
---|
584 | ##########################################################################\n
|
---|
585 | \n
|
---|
586 | _content_ {\n
|
---|
587 | _navigationbar_\n
|
---|
588 | \n
|
---|
589 | _textabout_\n
|
---|
590 | \n
|
---|
591 | <h3>_help:textsimplehelpheading_</h3>\n
|
---|
592 | _help:simplehelp_\n
|
---|
593 | }
|
---|
594 | </pre>\n
|
---|
595 | <p>
|
---|
596 |
|
---|
597 | La 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.
|
---|
598 | <p>
|
---|
599 |
|
---|
600 | La 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>.
|
---|
601 | <p>
|
---|
602 |
|
---|
603 | <pre>
|
---|
604 | ##############################################################################\n
|
---|
605 | package query\n
|
---|
606 | ##############################################################################\n
|
---|
607 |
|
---|
608 | _content_ {\n
|
---|
609 | _navigationbar_\n
|
---|
610 | \n
|
---|
611 | <center>\n
|
---|
612 | _If_(_cgiargct_,_selectqueryform_,_queryform_)\n
|
---|
613 | </center>\n
|
---|
614 | _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>\n
|
---|
615 | <center>\n
|
---|
616 | _searchhistorylist_\n
|
---|
617 | </center>)\n
|
---|
618 | _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)\n
|
---|
619 | <br>\n
|
---|
620 | }\n
|
---|
621 | </pre>\n
|
---|
622 | <p>
|
---|
623 |
|
---|
624 | La 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>.
|
---|
625 | <p>
|
---|
626 |
|
---|
627 | El 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.
|
---|
628 | <p>
|
---|
629 |
|
---|
630 | <pre>
|
---|
631 | ##########################################################################\n
|
---|
632 | package document\n
|
---|
633 | ##########################################################################\n
|
---|
634 | \n
|
---|
635 | _textheader_ {\n
|
---|
636 | _cgihead_\n
|
---|
637 | _htmlhead_(class=\"bgimage\")_startspacer__pagebanner_ \n
|
---|
638 | }\n
|
---|
639 | \n
|
---|
640 | _content_ {\n
|
---|
641 | _navigationbar_\n
|
---|
642 | \n
|
---|
643 | _If_(_phindclassifier__collageclassifier_,\n
|
---|
644 | <p style=\"text-align: center;\">\n
|
---|
645 | _phindclassifier_\n
|
---|
646 | _collageclassifier_\n
|
---|
647 | </p>\n
|
---|
648 | )\n
|
---|
649 | \n
|
---|
650 | _If_(\"_cgiargcl_\" eq \"search\",\n
|
---|
651 | <ul id=\"searchresults\">\n
|
---|
652 | _prevsearchresult_\n
|
---|
653 | _nextsearchresult_\n
|
---|
654 | </ul>)\n
|
---|
655 | \n
|
---|
656 | <div class=\"document\">\n
|
---|
657 | }\n
|
---|
658 | </pre>\n
|
---|
659 | <p>
|
---|
660 |
|
---|
661 | Greenstone 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.
|
---|
662 | "
|
---|
663 |
|
---|
664 | # -- Russian text ----------------
|
---|
665 | collectionmeta collectionextra [l=ru] "
|
---|
666 | ÐÑа ЎеЌПМÑÑÑаÑÐžÐŸÐœÐœÐ°Ñ ÐºÐŸÐ»Ð»ÐµÐºÑÐžÑ ÑПЎеÑÐ¶ÐžÑ ÑÐŸÑ Ð¶Ðµ ЌаÑеÑОал, ÑÑП О ПÑОгОМалÑÐœÐ°Ñ ÐŽÐµÐŒÐŸÐœÑÑÑаÑÐžÐŸÐœÐœÐ°Ñ ÐºÐŸÐ»Ð»ÐµÐºÑÐžÑ Greenstone, МП ÐµÑ Ð²ÐžÐŽ бÑл ОзЌеМеМ., ÑÑÐŸÐ±Ñ ÑлÑÑÑОÑÑ ÑезкПÑÑÑ.
|
---|
667 | <p>
|
---|
668 |
|
---|
669 | <h3>Ðак ÑабПÑÐ°ÐµÑ ÐºÐŸÐ»Ð»ÐµÐºÑОÑ</h3>
|
---|
670 | <p>
|
---|
671 | ÐОЎ кПллекÑОй ÐÑОМÑÑПÑÐœ заЎаеÑÑÑ Â«ÐŒÐ°ÐºÑПÑайлаЌО» в ЎОÑекÑПÑОО ЌакÑПÑа (<i>greenstone/macros</i>>) О ÐŒÐŸÐ¶ÐµÑ Ð±ÑÑÑ Ð¿ÐŸÐ»ÐœÐŸÑÑÑÑ ÐžÐ·ÐŒÐµÐœÐµÐœÐŸ Ñ Ð¿ÐŸÐŒÐŸÑÑÑ ÐŒÐŸÐŽÐžÑОкаÑОй в ÑайлаÑ
|
---|
672 | ЌакÑПÑПв. ÐÑО ЌПЎОÑОкаÑОО ОзЌеМÑÑ Ð²ÐžÐŽ вÑеÑ
|
---|
673 | кПллекÑОй. ЧÑÐŸÐ±Ñ ÐžÐ·ÐŒÐµÐœÐžÑÑ Ð²ÐžÐŽ вÑегП лОÑÑ ÐŸÐŽÐœÐŸÐ¹ кПллекÑОО, пПЌеÑÑОÑе ÑППÑвеÑÑÑвÑÑÑОй ЌПЎОÑОÑОÑПваММÑй ЌакÑÐŸÑ Ð² Ñайл МазваММÑй <i>extra.dm</i> в папке <i>macros</i> ÑÑПй кПллекÑОО. ÐапÑОЌеÑ, ÑÑа кПллекÑÐžÑ ÐžÑпПлÑзÑÐµÑ Ñайл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>.\n
|
---|
674 | <p>
|
---|
675 |
|
---|
676 | ÐÐ»Ñ ÐŸÑÐŽÐµÐ»ÐµÐœÐžÑ ÐœÐµÐºÐŸÑПÑÑÑ
|
---|
677 | ЎеÑалей пÑезеМÑаÑОО ÐŸÑ ÐŒÐ°ÐºÑПÑайлПв ÐÑОМÑÑПÑÐœ ОÑпПлÑзÑÐµÑ <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>, кПÑПÑÑй ÑПЎеÑÐ¶ÐžÑ ÐœÐµÑкПлÑкП кПЌЌеМÑаÑОев ÐŽÐ»Ñ ÑеÑ
|
---|
678 | , кÑП Ме ÑазбОÑаеÑÑÑ Ñ CSS. ÐекПÑПÑÑе ЌакÑПÑÑ Ð² <i>extra.dm</i> ОЌеÑÑ ÑÑÑлкО к ОзПбÑажеМОÑÐŒ пПЌеÑеММÑÐŒ в <i>greenstone/collect/_cgiargc_/images</i>.\n
|
---|
679 |
|
---|
680 | <p>
|
---|
681 |
|
---|
682 | ÐакÑПÑайл <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> ПÑвеÑÐ³Ð°ÐµÑ ÑаÑÑÑ ÐŒÐ°ÐºÑПÑПв, кПÑПÑÑе ОÑпПлÑзÑÑÑÑÑ Ð² Greenstone пП ÑЌПлÑаМОÑ. РЌакÑПÑайлаÑ
|
---|
683 | \"\#\" ПпПвеÑÐ°ÐµÑ ÐŸ ÑÑÑПке кПЌЌеМÑаÑОев (<i>extra.dm</i> ÑПЎеÑÐ¶ÐžÑ ÐºÐŸÐŒÐŒÐµÐœÑаÑОО, ÑÑÐŸÐ±Ñ Ð¿ÐŸÐŒÐŸÑÑ ÐŸÐ±ÑÑÑМОÑÑ, ÑÑП ПМ ЎелаеÑ). СаЌО ЌакÑПÑÑ ÑППбÑаÑÑÑÑ Ð¿ÑÑеЌ пПЎÑеÑкОваМОÑ, О ПМО ЌПгÑÑ ÐŸÐ±ÑаÑаÑÑÑÑ Ðº ÐŽÑÑгОЌ ЌакÑПÑаЌ. ÐÑП ПзМаÑаеÑ, ÑÑП ÑПЎеÑжаМОе ÑÑÑаМОÑÑ ÐŒÐŸÐ¶ÐµÑ Ð±ÑÑÑ ÑазбОÑП Ма ЌМПгОе ЌалеМÑкОе кÑÑкО, О ЌПгÑÑ Ð²ÐŸÐ·ÐœÐžÐºÐ°ÑÑ ÑÑÑЎМПÑÑО пÑО ÑабПÑе пП ÑепО, кПÑПÑÑÑ ÐŒÐ°ÐºÑÐŸÑ Ð²ÑзÑваеÑ. Ð ÑÑаÑÑÑÑ, ÐžÐ·ÐŒÐµÐœÐµÐœÐžÑ Ð² ЌакÑПÑаÑ
|
---|
684 | , пПЎПбМП ОзЌеМеМОÑÐŒ в ÑПÑЌаÑÐœÑÑ
|
---|
685 | ÑÑÑПкаÑ
|
---|
686 | , вÑÑÑпаÑÑ Ð² ÑÐžÐ»Ñ ÐœÐµÐŒÐµÐŽÐ»ÐµÐœÐœÐŸ, еÑлО ÐÑ ÐœÐµ ОÑпПлÑзÑеÑе ÑеÑÐ²ÐµÑ Ð»ÐŸÐºÐ°Ð»ÑМПй бОблОПÑекО Greenstone, в ÑлÑÑае ÑегП ÑеÑÐ²ÐµÑ ÐœÑжЎаеÑÑÑ Ð² пеÑезагÑÑзке. ÐÑП ПблегÑÐ°ÐµÑ ÑкÑпеÑОЌеМÑОÑПваМОе пÑÑеЌ ÑеЎакÑОÑÐŸÐ²Ð°ÐœÐžÑ ÐŒÐ°ÐºÑПÑайлПв.
|
---|
687 | <p>
|
---|
688 |
|
---|
689 |
|
---|
690 | ÐакÑПÑÑ ÑгÑÑппОÑÐŸÐ²Ð°ÐœÑ Ð² «пакеÑÑ». ÐП кажЎÑй Ð¿Ð°ÐºÐµÑ ÐœÐµ ПбÑзаÑелÑМП ÑазЌеÑаеÑÑÑ Ð² ПÑЎелÑМПЌ Ñайле. <i>ÐлПбалÑÐœÑй</i> пакеÑ, бПлÑÑÐ°Ñ ÑаÑÑÑ ÐºÐŸÑПÑПгП МаÑ
|
---|
691 | ПЎОÑÑÑ Ð² Ñайле <a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a> (ÑаÑÑÑ ÐµÐ³ÐŸ МаÑ
|
---|
692 | ПЎОÑÑÑ Ñакже в ÑпеÑОÑОÑеÑкОÑ
|
---|
693 | ÑзÑкПвÑÑ
|
---|
694 | ЌакÑПÑайлаÑ
|
---|
695 | ÑОпа <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a> О <a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>), ÑПЎеÑÐ¶ÐžÑ ÐŒÐ°ÐºÑПÑÑ Ð¿ÐŸ ÑЌПлÑаМОÑ, кПÑПÑÑе ЌПгÑÑ Ð±ÑÑÑ ÐŸÑвеÑгМÑÑÑЌО ЌакÑПÑаЌО в ÐŽÑÑгОÑ
|
---|
696 | пакеÑаÑ
|
---|
697 | . ÐЎеÑÑ ÐžÐŒÐµÐµÑÑÑ ÑаÑÑÑ <i>extra.dm</i>.
|
---|
698 |
|
---|
699 | <pre>
|
---|
700 | ##########################################################################\n
|
---|
701 | package Global\n
|
---|
702 | ##########################################################################\n
|
---|
703 | \n
|
---|
704 | _starthighlight_ {<b>}\n
|
---|
705 | _endhighlight_ {</b>}\n
|
---|
706 | \n
|
---|
707 | _navbarspacer_ { \n
|
---|
708 | <br/>\n
|
---|
709 | <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n
|
---|
710 | <br/>\n
|
---|
711 | }\n
|
---|
712 | </pre>\n
|
---|
713 |
|
---|
714 | кПÑПÑÐ°Ñ ÐŸÐ¿ÑеЎелÑÐµÑ Ð³Ð»ÐŸÐ±Ð°Ð»ÑÐœÑе ЌакÑПÑÑ, зМаÑÐµÐœÐžÑ <i>starthighlight</i> О <i>endhighlight</i> ОÑпПлÑзÑÑÑÑÑ ÐŽÐ»Ñ Ð¿ÐŸÐŽÑвеÑÐžÐ²Ð°ÐœÐžÑ ÑеÑЌОМПв запÑПÑа пÑО пÑеЎÑÑавлеМОО ЎПкÑЌеМÑа. ÐП ÑЌПлÑÐ°ÐœÐžÑ ÐŽÐŸÐ»Ð¶ÐµÐœ бÑÑÑ ÑÑÑаМПвлеМ желÑÑй ÑПМ. ÐеÑÐ²Ð°Ñ ÑпеÑОÑОкаÑÐžÑ Ð²ÐŒÐµÑÑП ÑÑПгП вÑЎелÑÐµÑ Ð·Ð°Ð¿ÑÐŸÑ Ð¿ÐŸÐ»ÑжОÑÐœÑÐŒ ÑÑОÑÑПЌ.
|
---|
715 | <p>
|
---|
716 |
|
---|
717 | СлеЎÑÑÑОй ЌакÑÐŸÑ <i>navbarspacer</i> ÑлÑÐ¶ÐžÑ ÐŽÐ»Ñ ÑПгП, ÑÑÐŸÐ±Ñ ÐŸÑЎелОÑÑ ÐºÐœÐŸÐ¿ÐºÑ Ð¿ÐŸÐžÑка О кМПпкО клаÑÑОÑОкаÑПÑПв в МавОгаÑОПММПй лОМейке. ÐбÑÑМП ÑÑП Ñ
|
---|
718 | ПÑПÑП Ð·ÐœÐ°ÐºÐŸÐŒÐ°Ñ Ð² Greenstone гПÑОзПМÑалÑÐœÐ°Ñ Ð·ÐµÐ»ÐµÐœÐ°Ñ Ð»ÐžÐœÐµÐ¹ÐºÐ°. СлеЎÑÑее ПпÑеЎелеМОе ÐžÐŒÐµÐµÑ ÑÑÑÐµÐºÑ Ð²ÐµÑÑОкалÑМПгП ÑаÑÐ¿ÐŸÐ»ÐŸÐ¶ÐµÐœÐžÑ ÐºÐœÐŸÐ¿ÐŸÐº, ПЎМа МаЎ ÐŽÑÑгПй.
|
---|
719 | <p>
|
---|
720 | <pre>
|
---|
721 | _navbarspacer_ {<br\/>}
|
---|
722 | </pre>\n
|
---|
723 | <p>
|
---|
724 |
|
---|
725 | ÐпÑеЎелеМОе <i>navbarspacer</i>, ЎаММПе ÑаМее ОÑпПлÑзÑÐµÑ ÑОÑÑМПк <i>horzline.gif</i> в каÑеÑÑве ÑазЎелОÑÐµÐ»Ñ (ÑÑÐŸÑ ÑОÑÑМПк ÑПЎеÑжОÑÑÑ Ð² папке кПллекÑОО пПЎ МазваМОеЌ <i>images</i>). ÐÑÑÐµÐºÑ Ð²ÐžÐŽÐµÐœ в МаÑале ÑÑПй ÑÑÑаМОÑÑ.\n
|
---|
726 |
|
---|
727 | <p>
|
---|
728 |
|
---|
729 | РазЌеÑеМОе кМПпПк гПÑОзПМÑалÑМП, вÑе еÑÑ ÐžÑпПлÑзÑÑ <i>horzline.gif</i>, вЌеÑÑП зелеМПй лОМейкО как ÑазЎелОÑелÑ, ÑЎалÑÑ ÑÑгО <i>br</i> О ПпÑеЎелÑÐµÑ ÑелП ЌакÑПÑа (ÑаÑÑÑ Ð² ÑОгÑÑÐœÑÑ
|
---|
730 | ÑкПбкаÑ
|
---|
731 | ), как:
|
---|
732 |
|
---|
733 | <p>
|
---|
734 | <pre>
|
---|
735 | <img src=\"_httpcimages_\/horzline.gif\"\n
|
---|
736 | width=\"_widthtspace_\" height=\"17\">
|
---|
737 | </pre>\n
|
---|
738 |
|
---|
739 | <p>
|
---|
740 | ÐеÑÐµÐŒÐµÐœÐœÐ°Ñ <i>widthtspace</i> заЎаÑÑ ÑОÑÐžÐœÑ Ð¿ÑПЌежÑÑка ÐŒÐµÐ¶ÐŽÑ ÐºÐœÐŸÐ¿ÐºÐ°ÐŒÐž, кПÑПÑÑÑ Ð²ÑÑОÑлÑÐµÑ Greenstone.
|
---|
741 | <p>
|
---|
742 |
|
---|
743 |
|
---|
744 | ЧаÑÑÑ <i>extra.dm</i>, вПÑпÑÐŸÐžÐ·Ð²ÐµÐŽÐµÐœÐœÐ°Ñ ÐœÐžÐ¶Ðµ, пеÑеПпÑеЎелÑÐµÑ ÐŒÐ°ÐºÑПÑÑ Ð² пакеÑе <i>Style</i>, кПÑПÑÑй ПÑвеÑÐ°ÐµÑ Ð·Ð° ÑПзЎаМОе загПлПвка О МОжМей ÑМПÑкО Ма кажЎПй ÑÑÑаМОÑе:\n
|
---|
745 |
|
---|
746 | <p>
|
---|
747 |
|
---|
748 | <pre>
|
---|
749 | ##########################################################################\n
|
---|
750 | package Style\n
|
---|
751 | ##########################################################################\n
|
---|
752 | \n
|
---|
753 |
|
---|
754 | _collectionspecificstyle_ {\n
|
---|
755 | <link rel=\"stylesheet\" href=\"_httpcstyle_/style.css\" type=\"text/css\" \n
|
---|
756 | title=\"Greenstone Style\" charset=\"UTF-8\">\n
|
---|
757 | <style>\n
|
---|
758 | body.bgimage \\\{ background-image: none; \\\}\n
|
---|
759 | a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n
|
---|
760 | </style>\n
|
---|
761 | }\n
|
---|
762 | \n
|
---|
763 | _pagebanner_ {\n
|
---|
764 | <div class=\"pageinfo\"> \n
|
---|
765 | <p class=\"bannerlinks\">_homelink_</p>\n
|
---|
766 | </div>\n
|
---|
767 | }\n
|
---|
768 | </pre>\n
|
---|
769 |
|
---|
770 | <p>
|
---|
771 |
|
---|
772 | ЌакÑÐŸÑ Ð·Ð°Ð³ÐŸÐ»ÐŸÐ²ÐºÐ° ÑÑÑаМОÑÑ 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>, кПÑПÑÑй пПзвПлÑÐµÑ ÐŽÐŸÐ±Ð°Ð²ÐžÑÑ Ðº кПллекÑОО ÑÑОлОÑÑОÑеÑкОе ÑлеЌеМÑÑ Ðº МабПÑÑ Ð¿ÐŸ ÑЌПлÑаМОÑ.
|
---|
773 |
|
---|
774 | <p>
|
---|
775 | ЧÑÐŸÐ±Ñ ÐžÑпПлÑзПваÑÑ ÑПвеÑÑеММП ÐŽÑÑгПй ÑÑÐžÐ»Ñ Ð² кПллекÑОО, вÑбеÑОÑе ЌакÑП <i>cssheader</i> в <i>extra.dm</i>. ЧÑÐŸÐ±Ñ Ð²ÑегП лОÑÑ ÐŽÐŸÐ±Ð°Ð²ÐžÑÑ ÐœÐµÑкПлÑкП МПвÑÑ
|
---|
776 | ÑÑОлевÑÑ
|
---|
777 | ПпÑеЎелеМОй к ÑÑÐžÐ»Ñ Ð¿ÐŸ ÑЌПлÑаМОÑ, вÑбеÑОÑе <i>collectionspecificstyle</i> в <i>extra.dm</i>. ÐÑП бÑлП ÑЎелаМП в ÑÑПй кПллекÑОО. ÐÑÑеÑказаМÑй ЌакÑП <i>collectionspecificstyle</i> ÑПЎеÑÐ¶ÐžÑ ÑаблОÑÑ ÑÑОлей кПллекÑОО, О пеÑеПпÑеЎелÑÐµÑ Ð¿Ð°ÑÑ ÑÑОлей ÐŽÐ»Ñ ÐžÐ·ÐŸÐ±ÑажеМОй: ÐÐµÐ»ÐµÐœÐ°Ñ ÑÐŸÐœÐŸÐ²Ð°Ñ Ð¿Ð»Ð°ÐœÐºÐ° Ñ Ð·Ð°Ð²ÐžÑкаЌО ОÑÑезла, а ÑПМ МавОгаÑОПММПй паМелО ÑепеÑÑ ÑОМОй.\n
|
---|
778 |
|
---|
779 | <p>
|
---|
780 | ÐакÑÐŸÑ Ð·Ð°Ð³ÐŸÐ»ÐŸÐ²ÐºÐž ÑÑÑаМОÑÑ Ñакже вÑзÑÐ²Ð°ÐµÑ <i>pagebanner</i>, ÑÑÐŸÐ±Ñ Ð²ÐºÐ»ÑÑОÑÑ ÑÐŒÐ±Ð»ÐµÐŒÑ ÐºÐŸÐ»Ð»ÐµÐºÑОО, кМПпкО home/help/preferences О ОзПбÑажеМОе Ñлева ввеÑÑ
|
---|
781 | Ñ, кПÑПÑПе ОЎеМÑОÑОÑОÑÑÐµÑ ÑÑÑаМОÑÑ (П ÑÑÑаМОÑе, пПОÑÐºÐŸÐ²Ð°Ñ ÑÑÑаМОÑа О Ñ.ÐŽ.). ÐÑПгÑаЌЌа, ÑÐºÐ°Ð·Ð°ÐœÐœÐ°Ñ Ð²ÑÑе, ПпÑеЎелÑÐµÑ Ð±Ð°ÐœÐœÐµÑ, ÑÑÐŸÐ±Ñ Ð¿ÐŸÐŽÐ°Ð²ÐžÑÑ ÑÑО ОзПбÑажеМОÑ. Ðак ÐÑ ÐŒÐŸÐ¶ÐµÑе вОЎеÑÑ, ПМО Ме пПÑвлÑÑÑÑÑ ÐœÐ°Ð²ÐµÑÑ
|
---|
782 | Ñ ÑÑПй ÑÑÑаМОÑÑ.\n
|
---|
783 |
|
---|
784 | <p>
|
---|
785 | СлеЎÑÑÑÐ°Ñ ÑаÑÑÑ <i>extra.dm</i> пеÑеПпÑеЎелÑÐµÑ ÐŒÐ°ÐºÑÐŸÑ ÐŽÐ»Ñ ÐŸÐ¿ÐžÑÐ°ÐœÐžÑ Ð <i>пакеÑе</i>, ÑПЎеÑжаÑОйÑÑ Ð² <a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>, кПÑПÑÑй геМеÑОÑÑÐµÑ ÑÑÑаМОÑÑ <i>«Ðб ÑÑПй кПллекÑОО»</i>, кПÑПÑÑÑ ÐÑ Ð²ÐžÐŽÐžÑе ÑейÑаÑ.
|
---|
786 |
|
---|
787 | <pre>
|
---|
788 | ##########################################################################\n
|
---|
789 | package about\n
|
---|
790 | ##########################################################################\n
|
---|
791 | \n
|
---|
792 | _content_ {\n
|
---|
793 | _navigationbar_\n
|
---|
794 | \n
|
---|
795 | _textabout_\n
|
---|
796 | \n
|
---|
797 | <h3>_help:textsimplehelpheading_</h3>\n
|
---|
798 | _help:simplehelp_\n
|
---|
799 | }
|
---|
800 | </pre>\n
|
---|
801 |
|
---|
802 | ÐакÑПÑПЎеÑжаМОе ÐŽÐ»Ñ ÑекÑÑа <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>) ÑеЌ, ÑÑП МавОгаÑÐžÐŸÐœÐœÐ°Ñ Ð»ÐžÐœÐµÐ¹ÐºÐ° Ме ПÑÑеМÑÑОÑПваМа О зЎеÑÑ ÐœÐµÑ ÐœÐžÐºÐ°ÐºÐŸÐ³ÐŸ Ð¿ÐŸÐ»Ñ Ð¿ÐŸÐžÑка.
|
---|
803 | <p>
|
---|
804 |
|
---|
805 | СлеЎÑÑÑÐ°Ñ ÑаÑÑÑ <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>.
|
---|
806 |
|
---|
807 | <pre>
|
---|
808 | ##############################################################################\n
|
---|
809 | package query\n
|
---|
810 | ##############################################################################\n
|
---|
811 |
|
---|
812 | _content_ {\n
|
---|
813 | _navigationbar_\n
|
---|
814 | \n
|
---|
815 | <center>\n
|
---|
816 | _If_(_cgiargct_,_selectqueryform_,_queryform_)\n
|
---|
817 | </center>\n
|
---|
818 | _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>\n
|
---|
819 | <center>\n
|
---|
820 | _searchhistorylist_\n
|
---|
821 | </center>)\n
|
---|
822 | _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)\n
|
---|
823 | <br>\n
|
---|
824 | }\n
|
---|
825 | </pre>\n
|
---|
826 |
|
---|
827 | ÐпÑеЎелеМОе <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>.
|
---|
828 | <p>
|
---|
829 |
|
---|
830 |
|
---|
831 | Ѐайл <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>). ЀакÑОÑеÑкО ÑÑÑаМОÑÑ, геМеÑОÑÑеЌÑе клаÑÑОÑОкаÑПÑаЌО (МапÑОЌеÑ, ÑпОÑкПЌ МаОЌеМПваМОй) Ñакже ÑпÑавлÑÑÑÑÑ Ðž ÑÑОЌО ЌакÑПÑаЌО.
|
---|
832 |
|
---|
833 | <pre>
|
---|
834 | ##########################################################################\n
|
---|
835 | package document\n
|
---|
836 | ##########################################################################\n
|
---|
837 | \n
|
---|
838 | _textheader_ {\n
|
---|
839 | _cgihead_\n
|
---|
840 | _htmlhead_(class=\"bgimage\")_startspacer__pagebanner_ \n
|
---|
841 | }\n
|
---|
842 | \n
|
---|
843 | _content_ {\n
|
---|
844 | _navigationbar_\n
|
---|
845 | \n
|
---|
846 | _If_(_phindclassifier__collageclassifier_,\n
|
---|
847 | <p style=\"text-align: center;\">\n
|
---|
848 | _phindclassifier_\n
|
---|
849 | _collageclassifier_\n
|
---|
850 | </p>\n
|
---|
851 | )\n
|
---|
852 | \n
|
---|
853 | _If_(\"_cgiargcl_\" eq \"search\",\n
|
---|
854 | <ul id=\"searchresults\">\n
|
---|
855 | _prevsearchresult_\n
|
---|
856 | _nextsearchresult_\n
|
---|
857 | </ul>)\n
|
---|
858 | \n
|
---|
859 | <div class=\"document\">\n
|
---|
860 | }
|
---|
861 | </pre>\n
|
---|
862 |
|
---|
863 | ÐÑОМÑÑПÑÐœ аММÑлОÑÑÐµÑ ÐŒÐ°ÐºÑП <i>header</i>, еÑлО ОзПбÑажеМ ЎПкÑÐŒÐµÐœÑ (а Ме клаÑÑОÑОкаÑПÑ). ÐÑеЎпПлПжОЌ, ÐŒÑ ÐœÐµ Ñ
|
---|
864 | ПÑОЌ ÑÑПгП. ÐÑÑеÑÑПÑÑОй кПЎ пеÑеПпÑеЎелÑÐµÑ ÐŒÐ°ÐºÑП <i>textheader</i> (ПбÑÑМП ПпÑеЎелеММПЌ в <i>document.dm</i>) в каÑеÑÑве пеÑвПМаÑалÑМПгП ÑПЎеÑÐ¶Ð°ÐœÐžÑ ÐŒÐ°ÐºÑП <i>header</i>. ÐÑÑеÑÑПÑÑее ПпÑеЎелеМОе <i>content</i> аММÑлОÑÑÐµÑ Ð·ÐœÐ°ÑеМОе пП-ÑЌПлÑаМОÑ, Ñак ÑÑП МавОгаÑОПММПе ÐŒÐµÐœÑ ÐœÐµ ÑеМÑÑОÑÑеÑÑÑ.
|
---|
865 | "
|
---|
866 |
|
---|
867 | # -- Simplified Chinese text ----------------
|
---|
868 | collectionmeta collectionextra [l=zh] "
|
---|
869 | æ¬éŠèæå
|
---|
870 | å«çææ¡£äžGreenstoneæŒç€ºéŠèäžçäžæ ·ïŒäœå
|
---|
871 | ¶å€è§è¢«æŽæ¹äžºgarishé£æ Œã\n
|
---|
872 |
|
---|
873 | <h3>æ¬éŠèåŠäœå·¥äœ</h3>\n
|
---|
874 |
|
---|
875 | <p>GreenstoneéŠèçå€è§ç±<i>greenstone/macros</i>ç®åœäžç\"å®æ件\"å®ä¹ïŒä¿®æ¹è¿äºæ件çå
|
---|
876 | 容å°æŽæ¹ææéŠèçå€è§ã
|
---|
877 | åŠæåªä¿®æ¹äžäžªéŠèçå€è§ïŒå°ä¿®æ¹åçå®æŸå
|
---|
878 | ¥è¯¥éŠè<i>macros</i>ç®åœäžç<i>extra.dm</i>æ件äžãäŸåŠïŒè¿äžªéŠè䜿çšè¿äžªæ件
|
---|
879 | <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>ã\n
|
---|
880 |
|
---|
881 | <p>䞺äºå°åç°ç»èä»å®æ件äžå犻åºæ¥ïŒGreenstone䜿çš<i>å±çº§æ ·åŒè¡š</i>ïŒæŽå€ä¿¡æ¯è¯·åè§<a href=\"http://www.w3.org/Style/CSS/\">
|
---|
882 | http://www.w3.org/Style/CSS/</a>ïŒïŒè¿å
|
---|
883 | 讞æå®HTML页é¢çåäœãé¢è²ãéŽé以åå
|
---|
884 | ¶ä»å
|
---|
885 | çŽ ãæ åçGreenstoneæ ·åŒè¡šäœäº
|
---|
886 | <a href=\"_httpstyle_/style.css\">greenstone/web/style/style.css</a>ãæ¬éŠè䜿çšäžäžªéå±çæ ·åŒè¡šïŒ
|
---|
887 | <a href=\"_httpcstyle_/style.css\">greenstone/collect/_cgiargc_/style/style.css</a>ïŒäžçŒºçæ ·åŒè¡šäžèµ·äœ¿çšãè¯¥æ ·åŒè¡šå
|
---|
888 | æ¬äžäºæ³šéä¿¡æ¯ä»¥
|
---|
889 | 䟿äžçæå±çº§æ ·åŒè¡šç人ç解ã<i>extra.dm</i>æ件äžçäžäºå®åŒçšäºäœäº<i>greenstone/collect/_cgiargc_/images</i>äžçåŸçã\n
|
---|
890 |
|
---|
891 | <p><a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>å®æ件å°èŠåGreenstoneç猺çå®ãåšå®æ件äžïŒ
|
---|
892 | \"\#\"笊å·è¡šç€ºäžäžªæ³šéè¡ïŒ<i>extra.dm</i>äžå·²æ·»å 泚é以䟿诎æå
|
---|
893 | ¶åèœïŒãå®æ¬èº«ç±äžå线åŒå§ïŒèäžå¯ä»¥åŒçšå
|
---|
894 | ¶ä»å®ãè¿æå³çäžäžªé¡µé¢çå
|
---|
895 | 容
|
---|
896 | å¯ä»¥è¢«åå²æåŸå€å°åïŒèäžåŸéŸå¯çæŽäžªåŒçšéŸæ¥åŒæž
|
---|
897 | æ¥åªäžªå®è°çšäºåªäžªå®ã幞è¿çæ¯ïŒå®åœäžçæŽæ¹ïŒåŠåæ ŒåŒåæ°äžçæŽæ¹ïŒèœç«å³è§æïŒé€éåœ
|
---|
898 | å䜿çšçæ¯Greenstoneæ¬å°æå¡åšæš¡åŒïŒåšè¿ç§æ
|
---|
899 | åµäžéèŠéå¯æå¡åšãè¿äœ¿åŸè°è¯å®æ件ååŸåŸå®¹æã
|
---|
900 |
|
---|
901 | <p>è¿äºå®æ\"packages\"ïŒå
|
---|
902 | ïŒåç»ãäœæ¯å¹¶äžæ¯äžªå
|
---|
903 | éœäžéèŠäžäžªåç¬çæ件ã<i>Global</i>ïŒå
|
---|
904 | šå±ïŒå
|
---|
905 | ïŒå€§éšåååšäº
|
---|
906 | <a href=\"_httpprefix_/macros/base.dm\" target=macro>base.dm</a>æ件äžïŒïŒä¹æäžéšåä¿ååšè¯èšçžå
|
---|
907 | ³çå®æ件äžïŒæ¯åŠ
|
---|
908 | <a href=\"_httpprefix_/macros/english.dm\" target=macro>english.dm</a>äž<a href=\"_httpprefix_/macros/french.dm\" target=macro>french.dm</a>ïŒïŒ
|
---|
909 | å
|
---|
910 | å«äºçŒºççå®äžå¯è¢«å
|
---|
911 | ¶ä»å
|
---|
912 | äžçå®èŠåãè¿éæ¯<i>extra.dm</i>æ件äžéå®ä¹äºå
|
---|
913 | šå±å®åéçéšåã
|
---|
914 |
|
---|
915 | <pre>
|
---|
916 | ##########################################################################\n
|
---|
917 | package Global\n
|
---|
918 | ##########################################################################\n
|
---|
919 | \n
|
---|
920 | _starthighlight_ {<b>}\n
|
---|
921 | _endhighlight_ {</b>}\n
|
---|
922 | \n
|
---|
923 | _navbarspacer_ { \n
|
---|
924 | <br/>\n
|
---|
925 | <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n
|
---|
926 | <br/>\n
|
---|
927 | }\n
|
---|
928 | </pre>\n
|
---|
929 |
|
---|
930 | <i>starthighlight</i>äž<i>endhighlight</i>çåŒè¢«çšäºåšæŸç€ºææ¡£æ¶é«äº®æŸç€ºæ¥è¯¢è¯ã猺çæ
|
---|
931 | åµæ¶å°èæ¯è®Ÿçœ®æé»è²ãäžé¢ç第äžäžªè®Ÿçœ®å³å°æ¥è¯¢è¯çé«äº®è®Ÿçœ®äžºé»äœã\n
|
---|
932 |
|
---|
933 | <p>æ¥äžæ¥ïŒ<i>navbarspacer</i>å®èŽèŽ£å°æµè§æ¡äžçæ玢æé®äžåç±»æé®ååŒãéåžžæ
|
---|
934 | åµäžGreenstoneæäžäžªæ°Žå¹³ç绿è²çæµè§æ¡ãæ¥äžæ¥çå®ä¹å°åçŽçœåè¿äºæé®ïŒ
|
---|
935 | äžäžªåšåŠäžäžªä¹äžã
|
---|
936 | <pre>
|
---|
937 | _navbarspacer_ {<br\/>}
|
---|
938 | </pre>\n
|
---|
939 |
|
---|
940 | åé¢ç»åºç<i>navbarspacer</i>å®ä¹çšå°äº<i>horzline.gif</i>åŸçäœäžºåé笊ïŒè¿äžªåŸçåšéŠèç<i>images</i>ç®åœäžïŒãåšè¿äžªé¡µé¢ç顶端å³å¯çå°ææã\n
|
---|
941 |
|
---|
942 | <p>è¥èŠææ°Žå¹³æ¹åŒæåè¿äºæé®ïŒå¹¶ä»äœ¿çš<i>horzline.gif</i>èäžæ¯ç»¿è²æ¡äœäžºåé笊ïŒå é€<i>br</i>æ 记并å®ä¹å®çäž»äœïŒåšå€§æ¬å·äžçéšåïŒäžºïŒ
|
---|
943 | <pre>
|
---|
944 | <img src=\"_httpcimages_\/horzline.gif\"\n
|
---|
945 | width=\"_widthtspace_\" height=\"17\">
|
---|
946 | </pre>\n
|
---|
947 |
|
---|
948 | <i>widthtspace</i>åéå®ä¹äºæé®éŽç宜床ïŒGreenstoneå°è®¡ç®è¿äžªå®œåºŠã\n
|
---|
949 |
|
---|
950 | <p>äžé¢æåç<i>extra.dm</i>éšåéå®ä¹äº<i>Style</i>å
|
---|
951 | äžçå®ïŒè¿äžªå®å°èŽèŽ£å建æ¯äžªé¡µé¢ç页倎å页尟ïŒå¹¶å®ä¹åžžçšçæ ·åŒä¿¡æ¯ïŒ
|
---|
952 |
|
---|
953 | <pre>
|
---|
954 | ##########################################################################\n
|
---|
955 | package Style\n
|
---|
956 | ##########################################################################\n
|
---|
957 | \n
|
---|
958 |
|
---|
959 | _collectionspecificstyle_ {\n
|
---|
960 | <link rel=\"stylesheet\" href=\"_httpcstyle_/style.css\" type=\"text/css\" \n
|
---|
961 | title=\"Greenstone Style\" charset=\"UTF-8\">\n
|
---|
962 | <style>\n
|
---|
963 | body.bgimage \\\{ background-image: none; \\\}\n
|
---|
964 | a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n
|
---|
965 | </style>\n
|
---|
966 | }\n
|
---|
967 | \n
|
---|
968 | _pagebanner_ {\n
|
---|
969 | <div class=\"pageinfo\"> \n
|
---|
970 | <p class=\"bannerlinks\">_homelink_</p>\n
|
---|
971 | </div>\n
|
---|
972 | }\n
|
---|
973 | </pre>\n
|
---|
974 |
|
---|
975 | Greenstoneçç倎å®ïŒå³<a href=\"_httpprefix_/macros/style.dm\" target=macro>style.dm</a>äžç<i>header</i>ïŒå°æŸç€ºè¯¥éŠèçå称æè
|
---|
976 | æ å¿ïŒ
|
---|
977 | 并éŸæ¥å°äž»é¡µãåž®å©é¡µé¢äžå奜页é¢ãå®å°è°çš<i>htmlhead</i>å®ïŒè¿äžªå®å°æŸç€ºHTMLæ件çåŒå€Žéšåãè¿éè°çš<i>cssheader</i>å®ïŒ
|
---|
978 | è¿äžªå®æŸç€ºé¡µé¢çæ ·åŒä¿¡æ¯ãè¿éå
|
---|
979 | æ¬äº<i>collectionspecificstyle</i>å®ïŒè¿äžªå®å
|
---|
980 | 讞éŠèåšçŒºçæ ·åŒçåºç¡äžæ·»å å
|
---|
981 | ¶ä»æ ·åŒå
|
---|
982 | çŽ ã
|
---|
983 |
|
---|
984 | <p>è¥èŠåšè¯¥éŠèäžäœ¿çšå
|
---|
985 | šæ°çæ ·åŒïŒåš<i>extra.dm</i>äžå®ä¹<i>cssheader</i>å®ãè¥åªæ¯åšçŒºçæ ·åŒäžæ·»å å äžªæ ·åŒå®ä¹ïŒåš<i>extra.dm</i>äžå®ä¹
|
---|
986 | <i>collectionspecificstyle</i>ãè¿å°±æ¯éŠèç圢ææ¹åŒãäžé¢ç<i>collectionspecificstyle</i>å®å
|
---|
987 | å«äºè¯¥éŠèèªå·±çæ ·åŒè¡šïŒåæ¶ä¹èŠåäºäžäºåŸççå®ä¹ïŒ
|
---|
988 | å»æäºç»¿è²æ蜬æ¡çº¹çèæ¯åŸçïŒå¹¶å°æµè§æ¡çæ¬åèæ¯å䞺èè²ã
|
---|
989 |
|
---|
990 | <p>页é¢å€Žå®ä¹è°çš<i>pagebanner</i>æ¥å
|
---|
991 | å«è¯¥éŠèçæ å¿ïŒäž»é¡µ/åž®å©/å奜æé®ïŒä»¥åå·Šäžæ¹æ瀺åœå页é¢çåŸçïŒè¯Žæ页é¢ïŒæ玢页é¢ççïŒãäžé¢ç代ç é
|
---|
992 | å®ä¹çæ å¿é€å»äºææåŸçïŒé€äºäž»é¡µæé®ä¹å€ââè¿äºåŸç没æåºç°åšè¿äžªé¡µé¢ç顶端ã\n
|
---|
993 |
|
---|
994 | <p><i>extra.dm</i>æ¥äžæ¥çäžéšåéæ°å®ä¹äº<i>about</i>å
|
---|
995 | äžçå®ïŒå
|
---|
996 | å«åš<a href=\"_httpprefix_/macros/about.dm\" target=macro>about.dm</a>äžïŒïŒ
|
---|
997 | è¿äžªå®å°äº§ç\"å
|
---|
998 | ³äºæ¬éŠè\"页é¢ïŒåŠäžæ瀺ïŒ
|
---|
999 |
|
---|
1000 | <pre>
|
---|
1001 | ##########################################################################\n
|
---|
1002 | package about\n
|
---|
1003 | ##########################################################################\n
|
---|
1004 | \n
|
---|
1005 | _content_ {\n
|
---|
1006 | _navigationbar_\n
|
---|
1007 | \n
|
---|
1008 | _textabout_\n
|
---|
1009 | \n
|
---|
1010 | <h3>_help:textsimplehelpheading_</h3>\n
|
---|
1011 | _help:simplehelp_\n
|
---|
1012 | }
|
---|
1013 | </pre>\n
|
---|
1014 |
|
---|
1015 | <i>About</i>页é¢ç<i>content</i>å®éåžžå
|
---|
1016 | å«äºæµè§æ¡ïŒéŸæ¥å°<i>æ玢</i>äžä»»æäžäžªåç±»åšïŒïŒæ¥äžæ¥æ¯\"å
|
---|
1017 | ³äºæ¬éŠè\"äž\"åŠäœæŸå°çžå
|
---|
1018 | ³ä¿¡æ¯\"çææ¬ãå 䞺è¿äžª
|
---|
1019 | å®æ¯ééŠèçäžåèäžåïŒ<i>navigationbar</i>å®æ¯ç±Greenstoneå
|
---|
1020 | éšå®ä¹çïŒèäžäœ¿çšåé¢å®ä¹ç<i>navbarspacer</i>å®ã<i>å
|
---|
1021 | ³äº</i>页é¢ç<i>content</i>å®ïŒ
|
---|
1022 | åŠäžé¢æ瀺ïŒäžåäºåžžè§çå®ïŒæ¯åŠæŒç€ºéŠèçå®ïŒè§<a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=p&p=about\">è¿é</a>ïŒïŒäžåä¹å€åšäºæµè§æ¡å¹¶äžæ¯å±
|
---|
1023 | äžæŸç€ºçïŒ
|
---|
1024 | èäžæ²¡ææ玢æ¡ã\n
|
---|
1025 |
|
---|
1026 | <p><i>extra.dm</i>çäžäžéšåéæ°å®ä¹äº<i>query</i>å
|
---|
1027 | äžçå®ïŒåŠ<a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>äžæ瀺ïŒïŒè¿äžªå®
|
---|
1028 | çšäºçæ<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">æ玢页</a>ïŒ
|
---|
1029 |
|
---|
1030 | <pre>
|
---|
1031 | ##############################################################################\n
|
---|
1032 | package query\n
|
---|
1033 | ##############################################################################\n
|
---|
1034 |
|
---|
1035 | _content_ {\n
|
---|
1036 | _navigationbar_\n
|
---|
1037 | \n
|
---|
1038 | <center>\n
|
---|
1039 | _If_(_cgiargct_,_selectqueryform_,_queryform_)\n
|
---|
1040 | </center>\n
|
---|
1041 | _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>\n
|
---|
1042 | <center>\n
|
---|
1043 | _searchhistorylist_\n
|
---|
1044 | </center>)\n
|
---|
1045 | _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)\n
|
---|
1046 | <br>\n
|
---|
1047 | }\n
|
---|
1048 | </pre>\n
|
---|
1049 |
|
---|
1050 | æ å<i>query</i>äžå®ä¹ç<i>content</i>å®äžäžè¿°å®ä¹ç±»äŒŒïŒé€äºæ åå®ä¹äŒå±
|
---|
1051 | äžæŸç€º<i>navigationbar</i>å®ïŒèäžè¿°å®ä¹äžå±
|
---|
1052 | äžæŸç€ºïŒèäžå®è¿é¢å€å
|
---|
1053 | å«äºäžäžªç»¿è²æ¡ã
|
---|
1054 | æ¯èŸ<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">è¿äžª</a>å<a href=\"_gwcgi_?l=_cgiargl_&c=demo&a=q\">è¿äžª</a>.\n
|
---|
1055 |
|
---|
1056 | <p><a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>æ件ä¹éæ°å®ä¹äº<i>document</i>å
|
---|
1057 | äžçå®ïŒè¿äºå®è¢«çšäºæŸç€ºææ¡£ïŒåè§
|
---|
1058 | <a href=\"_httpprefix_/macros/document.dm\" target=macro>document.dm</a>ïŒãäºå®äžïŒåç±»åšæå建ç页é¢ïŒäŸåŠé¢ååè¡šïŒä¹æ¯è¢«è¿äºå®æå®ä¹ã
|
---|
1059 |
|
---|
1060 | ##########################################################################\n
|
---|
1061 | package document\n
|
---|
1062 | ##########################################################################\n
|
---|
1063 | \n
|
---|
1064 | _textheader_ {\n
|
---|
1065 | _cgihead_\n
|
---|
1066 | _htmlhead_(class=\"bgimage\")_startspacer__pagebanner_ \n
|
---|
1067 | }\n
|
---|
1068 | \n
|
---|
1069 | _content_ {\n
|
---|
1070 | _navigationbar_\n
|
---|
1071 | \n
|
---|
1072 | _If_(_phindclassifier__collageclassifier_,\n
|
---|
1073 | <p style=\"text-align: center;\">\n
|
---|
1074 | _phindclassifier_\n
|
---|
1075 | _collageclassifier_\n
|
---|
1076 | </p>\n
|
---|
1077 | )\n
|
---|
1078 | \n
|
---|
1079 | _If_(\"_cgiargcl_\" eq \"search\",\n
|
---|
1080 | <ul id=\"searchresults\">\n
|
---|
1081 | _prevsearchresult_\n
|
---|
1082 | _nextsearchresult_\n
|
---|
1083 | </ul>)\n
|
---|
1084 | \n
|
---|
1085 | <div class=\"document\">\n
|
---|
1086 | }\n
|
---|
1087 | </pre>\n
|
---|
1088 |
|
---|
1089 | åŠææŸç€ºçæ¯ææ¡£ïŒèäžæ¯åç±»åšïŒïŒGreenstoneå°èŠå<i>header</i>å®ãå讟æ们äžæ³è®©GreenstoneèŠåè¿äžªå®ïŒåäžé¢ç代ç å°éæ°å®ä¹<i>textheader</i>å®
|
---|
1090 | ïŒéåžžåš<i>document.dm</i>äžå®ä¹ïŒïŒå¹¶äœäžºåå§ç<i>header</i>å®çå
|
---|
1091 | 容ãäžè¿°<i>content</i>çå®ä¹èŠåäºçŒºççåŒïŒå æ€æµè§æ¡ä¹äžäŒå±
|
---|
1092 | äžæŸç€ºã
|
---|
1093 | "
|
---|