root/trunk/gsdl/macros/document.dm @ 931

Revision 931, 13.1 KB (checked in by sjboddie, 20 years ago)

tidied up a bit - added icons to language files

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1package document
2
3#######################################################################
4# macros set from within the server
5#######################################################################
6
7_classificationlinks_ {}
8_imagethispage_ {}
9_httpprevarrow_ {}
10_httpnextarrow_ {}
11_pagetitle_ {}
12
13#######################################################################
14# page content
15#######################################################################
16
17_content_ {
18<center>
19_navigationbar_
20<p>
21_classificationlinks_
22</center>
23}
24
25
26#######################################################################
27# javascript macros
28#
29# there should be one of these for each flashy javascript button
30# that may appear within a document page
31#######################################################################
32
33# javaextras allows specific collections to include extra java macros
34# without having to override their document action
35_javaextras_ {}
36
37_javadetach_ {
38    detach\_on = new Image(_widthedtchx_, _heightedtchx_);
39    detach\_on.src = "_httpiconedtchon_";
40    detach\_off = new Image(_widthedtchx_, _heightedtchx_);
41    detach\_off.src = "_httpiconedtchof_";
42}
43
44_javaexpandcontents_ {
45    expcon\_on = new Image(_widtheexpcx_, _heighteexpcx_);
46    expcon\_on.src = "_httpiconeexpcon_";
47    expcon\_off = new Image(_widtheexpcx_, _heighteexpcx_);
48    expcon\_off.src = "_httpiconeexpcof_";
49}
50
51_javacontractcontents_ {
52    concon\_on = new Image(_widtheconcx_, _heighteconcx_);
53    concon\_on.src = "_httpiconeconcon_";
54    concon\_off = new Image(_widtheconcx_, _heighteconcx_);
55    concon\_off.src = "_httpiconeconcof_";
56}
57
58_javaexpandtext_ {
59    alltext\_on = new Image(_widthealltx_, _heightealltx_);
60    alltext\_on.src = "_httpiconeallton_";
61    alltext\_off = new Image(_widthealltx_, _heightealltx_);
62    alltext\_off.src = "_httpiconealltof_";
63}
64
65_javacontracttext_ {
66    thissec\_on = new Image(_widthetsecx_, _heightetsecx_);
67    thissec\_on.src = "_httpiconetsecon_";
68    thissec\_off = new Image(_widthetsecx_, _heightetsecx_);
69    thissec\_off.src = "_httpiconetsecof_";
70}
71
72_javahighlighting_ {
73    hl\_on = new Image(_widthehlx_, _heightehlx_);
74    hl\_on.src = "_httpiconehlon_";
75    hl\_off = new Image(_widthehlx_, _heightehlx_);
76    hl\_off.src = "_httpiconehlof_";
77}
78
79_javanohighlighting_ {
80    nhl\_on = new Image(_widthenhlx_, _heightenhlx_);
81    nhl\_on.src = "_httpiconenhlon_";
82    nhl\_off = new Image(_widthenhlx_, _heightenhlx_);
83    nhl\_off.src = "_httpiconenhlof_";
84}
85
86_javacontinue_ {
87    cont\_on = new Image(_widthcontx_, _heightcontx_);
88    cont\_on.src = "_httpiconconton_";
89    cont\_off = new Image(_widthcontx_, _heightcontx_);
90    cont\_off.src = "_httpiconcontoff_";
91}
92
93#######################################################################
94# navigation arrows
95#
96#######################################################################
97
98_navarrows_ {<center>
99<table width=_pagewidth_ cellpadding=0 cellspacing=0 border=0>
100<tr><td align=left valign=top>
101_prevarrow_
102</td><td align=right valign=top>
103_nextarrow_
104</td></tr></table>
105</center>
106}
107
108_prevarrow_ {_If_(_httpprevarrow_,<a href="_httpprevarrow_">_iconprev_</a>)}
109_nextarrow_ {_If_(_httpnextarrow_,<a href="_httpnextarrow_">_iconnext_</a>)}
110
111_navarrows_ [v=1] {<p>
112_prevarrow_<br>
113_nextarrow_
114}
115
116#######################################################################
117# the goto form
118#######################################################################
119
120_gotoform_ {
121<form name="GotoForm" method="get" action="_gwcgi_">
122<input type=hidden name="e" value="_decodedcompressedoptions_">
123<input type=hidden name="d" value="_cgiargd_">
124<input type=hidden name="cl" value="_cgiargcl_">
125<input type="text" name="gp" size="3" maxlength="4">
126<input type="submit" value="go to page">
127</form>
128}
129
130_textnumpages_ {&nbsp;<i>(_1_ pages)</i>}
131_textpage_ {page }
132_textintro_ { <i>(introductory text)</i>}
133_parentarrow_ {}
134
135
136#######################################################################
137# icons
138#######################################################################
139
140# title images - there should be one of these for each classification
141# supported by this receptionist
142
143_iconTitlepage_ {<img src="_httpiconhtitle_" width=_widthhtitle_
144height=_heighthtitle_}
145_iconTitlepage_ [v=1] {<h2>_texticonhtitle_</h2>}
146
147_iconListpage_ {<img src="_httpiconhlist_" width=_widthhlist_
148height=_heighthlist_}
149_iconListpage_ [v=1] {<h2>_texticonhlist_</h2>}
150
151_iconCreatorpage_ {<img src="_httpiconhauth_" width=_widthhauth_
152height=_heighthauth_}
153_iconCreatorpage_ [v=1] {<h2>_texticonhauth_</h2>}
154
155_iconSubjectpage_ {<img src="_httpiconhsubj_" width=_widthhsubj_
156height=_heighthsubj_}
157_iconSubjectpage_ [v=1] {<h2>_texticonhsubj_</h2>}
158
159_iconSeriespage_ {<img src="_httpiconhser_" width=_widthhser_
160height=_heighthser_}
161_iconSeriespage_ [v=1] {<h2>_texticonhser_</h2>}
162
163_iconDatepage_ {<img src="_httpiconhdate_" width=_widthhdate_
164height=_heighthdate_}
165_iconDatepage_ [v=1] {<h2>_texticonhdate_</h2>}
166
167_iconHowtopage_ {<img src="_httpiconhhow_" width=_widthhhow_
168height=_heighthhow_}
169_iconHowtopage_ [v=1] {<h2>_texticonhhow_</h2>}
170
171_iconTopicpage_ {<img src="_httpiconhtopic_" width=_widthhtopic_
172height=_heighthtopic_}
173_iconTopicpage_ [v=1] {<h2>_texticonhtopic_</h2>}
174
175_iconOrganizationpage_ {<img src="_httpiconhorg_" width=_widthhorg_
176height=_heighthorg_}
177_iconOrganizationpage_ [v=1] {<h2>_texticonhorg_</h2>}
178
179_iconBrowsepage_ {<img src="_httpiconhbrwse_" width=_widthhbrwse_
180height=_heighthbrwse_}
181_iconBrowsepage_ [v=1] {<h2>_texticonhbrwse_</h2>}
182
183_iconPeoplepage_ {<img src="_httpiconhpeople_" width=_widthhpeople_
184height=_heighthpeople_}
185_iconPeoplepage_ [v=1] {<h2>_texticonhpeople_</h2>}
186
187
188_iconsmalltext_ {<img src="_httpiconsmtext_" border=0 width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_">}
189_iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
190
191_iconarrowsmalltext_ {<img src="_httpiconasmtext_" border=0 width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_">}
192_iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
193
194_iconclosedfolder_ {<img src="_httpiconclsdfldr_" border=0 width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_">}
195_iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
196
197_iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" border=0 width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_">}
198_iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
199
200_iconopenfolder_ {<img src="_httpiconopenfldr_" border=0 width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_">}
201_iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
202
203_iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" border=0 width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_">}
204_iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
205
206_iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ border=0 alt="_texticonclosedbook_">}
207_iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
208
209_iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ border=0 alt="_texticonopenbook_">}
210_iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
211
212_iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ border=0 alt="_texticonopenbook_">}
213_iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
214
215_iconopenbookshelf_ {<img src="_httpiconbshelf_" border=0 width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_">}
216_iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
217
218_iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" border=0 width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_">}
219_iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
220
221_iconclosedbookshelf_ {<img src="_httpiconbshelf_" border=0 width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_">}
222_iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
223
224_iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" border=0 width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_">}
225_iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
226
227_iconpointer_ {<img src="_httpiconarrrght_" border=0 width=_widtharrrght_ height=_heightarrrght_>}
228_iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
229
230_icontab_ {<img src="_httpicontabspace_" width=_widthtabspace_ height=_heighttabspace_>}
231_tab_ {<td>_icontab_</td>}
232
233_iconcontracttoc_ {<img name="concon" src="_httpiconeconcof_" width=_widtheconcx_ height=_heighteconcof_ alt="_texticoncontracttoc_" border=0>}
234_iconcontracttoc_[v=1] {_texticoncontracttoc_}
235
236_iconexpandtoc_ {<img name="expcon" src="_httpiconeexpcof_" width=_widtheexpx_ height=_heighteexpcx_ alt="_texticonexpandtoc_" border=0>}
237_iconexpandtoc_[v=1] {_texticonexpandtoc_}
238
239_iconcontracttext_ {<img name="thissec" src="_httpiconetsecof_" width=_widthetsecx_ height=_heightetsecx_ alt="_texticoncontracttext_" border=0>}
240_iconcontracttext_[v=1] {_texticoncontracttext_}
241
242_iconexpandtext_ {<img name="alltext" src="_httpiconealltof_" width=_widthealltx_ height=_heightealltx_ alt="_texticonexpandtext_" border=0>}
243_iconexpandtext_[v=1] {_texticonexpandtext_}
244
245_icondetach_ {<img name="detach" src="_httpiconedtchof_" width=_widthedtchx_ height=_heightedtchx_ alt="_texticondetach_" border=0>}
246_icondetach_[v=1] {_texticondetach_}
247
248_iconhighlight_ {<img name="hl" src="_httpiconehlof_" width=_widthehlx_ height=_heightehlx_ alt="_texticonhighlight_" border=0>}
249_iconhighlight_ [v=1] {_texticonhighlight_}
250
251_iconnohighlight_ {<img name="nhl" src="_httpiconenhlof_" width=_widthenhlx_ height=_heightenhlx_ alt="_texticonnohighlight_" border=0>}
252_iconnohighlight_ [v=1] {_texticonnohighlight_}
253
254_iconwarning_ {<img src="_httpiconwarning_" width=_widthwarning_ height=_heightwarning_ border=0 align=left>}
255_iconwarning_ [v=1] {_texticonwarning_}
256
257_iconcont_ {<img name="cont" src="_httpiconcontoff_" width=_widthcontx_ height=_heightcontx_ border=0>}
258_iconcont_ [v=1] {_texticoncont_}
259
260
261#######################################################################
262# images
263#######################################################################
264
265_imagedetach_ {<a href="_httpcurrentdocument_&x=1" target=\_blank onMouseover = "img\_on('detach')"
266onMouseout = "img\_off('detach')">_icondetach_</a>}
267_imagedetach_[v=1] {<a href="_httpcurrentdocument_&x=1" target=\_blank>_texticondetach_</a><br>}
268
269_imagehighlight_ {<a href="_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_" onMouseover = "img\_on('hl')"
270onMouseout = "img\_off('hl')">_iconhighlight_</a>}
271_imagehighlight_ [v=1] {<a href="_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_">_texticonhighlight_</a><br>}
272
273_imagenohighlight_ {<a href="_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_" onMouseover = "img\_on('nhl')"
274onMouseout = "img\_off('nhl')">_iconnohighlight_</a>}
275_imagenohighlight_ [v=1] {<a href="_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_">_texticonnohighlight_</a><br>}
276
277_imagecontracttoc_ {<a href="_httpcurrentdocument_&gc=0" onMouseover = "img\_on('concon')"
278onMouseout = "img\_off('concon')">_iconcontracttoc_</a>}
279_imagecontracttoc_[v=1] {"<a href="_httpcurrentdocument_&gc=0">_texticoncontracttoc_</a><br>}
280
281_imageexpandtoc_ {<a href="_httpcurrentdocument_&gc=1" onMouseover = "img\_on('expcon')"
282onMouseout = "img\_off('expcon')">_iconexpandtoc_</a>}
283_imageexpandtoc_ [v=1] {"<a href="_httpcurrentdocument_&gc=1">_texticonexpandtoc_</a><br>}
284
285_imagecontracttext_ {<a href="_httpcurrentdocument_&amp;gt=0" onMouseover = "img\_on('thissec')"
286onMouseout = "img\_off('thissec')">_iconcontracttext_</a>}
287_imagecontracttext_[v=1] {<a href="_httpcurrentdocument_&amp;gt=0">display only current section</a><br>}
288
289_imageexpandtext_ {<a href="_httpcurrentdocument_&amp;gt=1" onMouseover = "img\_on('alltext')"
290onMouseout = "img\_off('alltext')">_iconexpandtext_</a>}
291_imageexpandtext_[v=1] {<a href="_httpcurrentdocument_&amp;gt=1">display all text</a><br>}
292
293_imagecont_ {<a href="_httpcurrentdocument_&amp;gt=2" onMouseover = "img\_on('cont')"
294onMouseout = "img\_off('cont')">_iconcont_</a>}
295_imagecont_[v=1] {<a href="_httpcurrentdocument&amp;gt=2">_texticoncont_</a><br>}
296
297
298#######################################################################
299# headers/footers
300#######################################################################
301
302
303# header overridden for text pages
304_textheader_ {_cgihead_
305_htmlhead_
306<center>
307<table width=_pagewidth_><tr><td align=right>
308_javalinks_</td></tr></table>
309</center>
310}
311_textheader_ [v=1] {_cgihead_
312_htmlhead_
313_javalinks_
314}
315
316_footer_ {
317<p>
318_navarrows_
319</table>
320_endspacer__htmlfooter_
321}
322
323
324#######################################################################
325# English language text macros
326#######################################################################
327
328# moved to english.dm
329
330
331
332#######################################################################
333# Maori text macros
334#######################################################################
335
336# moved to maori.dm
337
338
339
340#######################################################################
341# Chinese text macros
342#######################################################################
343
344# moved to chinese.dm
345
346
347
348
Note: See TracBrowser for help on using the browser.