source: trunk/gsdl/macros/document.dm@ 548

Last change on this file since 548 was 548, checked in by sjboddie, 25 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 17.1 KB
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="_compressedoptions_">
123<input type=hidden name="d" value="_cgiargd_">
124<input type=hidden name="cl" value="_cgiargcl_">
125<input type="submit" value="go to page">
126<input type="text" name="gp" size="3" maxlength="4">
127</form>
128}
129
130#######################################################################
131# icons
132#######################################################################
133
134# title images - there should be one of these for each classification
135# supported by this receptionist
136
137_iconTitlepage_ {<img src="_httpiconhtitle_" width=_widthhtitle_
138height=_heighthtitle_}
139_iconTitlepage_ [v=1] {<h2>_texticonhtitle_</h2>}
140
141_iconListpage_ {<img src="_httpiconhlist_" width=_widthhlist_
142height=_heighthlist_}
143_iconListpage_ [v=1] {<h2>_texticonhlist_</h2>}
144
145_iconCreatorpage_ {<img src="_httpiconhauth_" width=_widthhauth_
146height=_heighthauth_}
147_iconCreatorpage_ [v=1] {<h2>_texticonhauth_</h2>}
148
149_iconSubjectpage_ {<img src="_httpiconhsubj_" width=_widthhsubj_
150height=_heighthsubj_}
151_iconSubjectpage_ [v=1] {<h2>_texticonhsubj_</h2>}
152
153_iconSeriespage_ {<img src="_httpiconhser_" width=_widthhser_
154height=_heighthser_}
155_iconSeriespage_ [v=1] {<h2>_texticonhser_</h2>}
156
157_iconDatepage_ {<img src="_httpiconhdate_" width=_widthhdate_
158height=_heighthdate_}
159_iconDatepage_ [v=1] {<h2>_texticonhdate_</h2>}
160
161_iconHowtopage_ {<img src="_httpiconhhow_" width=_widthhhow_
162height=_heighthhow_}
163_iconHowtopage_ [v=1] {<h2>_texticonhhow_</h2>}
164
165_iconTopicpage_ {<img src="_httpiconhtopic_" width=_widthhtopic_
166height=_heighthtopic_}
167_iconTopicpage_ [v=1] {<h2>_texticonhtopic_</h2>}
168
169_iconOrganizationpage_ {<img src="_httpiconhorg_" width=_widthhorg_
170height=_heighthorg_}
171_iconOrganizationpage_ [v=1] {<h2>_texticonhorg_</h2>}
172
173_iconBrowsepage_ {<img src="_httpiconhbrwse_" width=_widthhbrwse_
174height=_heighthbrwse_}
175_iconBrowsepage_ [v=1] {<h2>_texticonhbrwse_</h2>}
176
177
178
179_iconsmalltext_ {<img src="_httpiconsmtext_" border=0 width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_">}
180_iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
181
182_iconarrowsmalltext_ {<img src="_httpiconasmtext_" border=0 width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_">}
183_iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
184
185_iconclosedfolder_ {<img src="_httpiconclsdfldr_" border=0 width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_">}
186_iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
187
188_iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" border=0 width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_">}
189_iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
190
191_iconopenfolder_ {<img src="_httpiconopenfldr_" border=0 width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_">}
192_iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
193
194_iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" border=0 width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_">}
195_iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
196
197_iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ border=0 alt="_texticonclosedbook_">}
198_iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
199
200_iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ border=0 alt="_texticonopenbook_">}
201_iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
202
203_iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ border=0 alt="_texticonopenbook_">}
204_iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
205
206_iconopenbookshelf_ {<img src="_httpiconbshelf_" border=0 width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_">}
207_iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
208
209_iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" border=0 width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_">}
210_iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
211
212_iconclosedbookshelf_ {<img src="_httpiconbshelf_" border=0 width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_">}
213_iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
214
215_iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" border=0 width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_">}
216_iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
217
218_iconpointer_ {<img src="_httpiconarrrght_" border=0 width=_widtharrrght_ height=_heightarrrght_>}
219_iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
220
221_icontab_ {<img src="_httpicontabspace_" width=_widthtabspace_ height=_heighttabspace_>}
222_tab_ {<td>_icontab_</td>}
223
224_iconcontracttoc_ {<img name="concon" src="_httpiconeconcof_" width=_widtheconcx_ height=_heighteconcof_ alt="_texticoncontracttoc_" border=0>}
225_iconcontracttoc_[v=1] {_texticoncontracttoc_}
226
227_iconexpandtoc_ {<img name="expcon" src="_httpiconeexpcof_" width=_widtheexpx_ height=_heighteexpcx_ alt="_texticonexpandtoc_" border=0>}
228_iconexpandtoc_[v=1] {_texticonexpandtoc_}
229
230_iconcontracttext_ {<img name="thissec" src="_httpiconetsecof_" width=_widthetsecx_ height=_heightetsecx_ alt="_texticoncontracttext_" border=0>}
231_iconcontracttext_[v=1] {_texticoncontracttext_}
232
233_iconexpandtext_ {<img name="alltext" src="_httpiconealltof_" width=_widthealltx_ height=_heightealltx_ alt="_texticonexpandtext_" border=0>}
234_iconexpandtext_[v=1] {_texticonexpandtext_}
235
236_icondetach_ {<img name="detach" src="_httpiconedtchof_" width=_widthedtchx_ height=_heightedtchx_ alt="_texticondetach_" border=0>}
237_icondetach_[v=1] {_texticondetach_}
238
239_iconhighlight_ {<img name="hl" src="_httpiconehlof_" width=_widthehlx_ height=_heightehlx_ alt="_texticonhighlight_" border=0>}
240_iconhighlight_ [v=1] {_texticonhighlight_}
241
242_iconnohighlight_ {<img name="nhl" src="_httpiconenhlof_" width=_widthenhlx_ height=_heightenhlx_ alt="_texticonnohighlight_" border=0>}
243_iconnohighlight_ [v=1] {_texticonnohighlight_}
244
245_iconwarning_ {<img src="_httpiconwarning_" width=_widthwarning_ height=_heightwarning_ border=0 align=left>}
246_iconwarning_ [v=1] {_texticonwarning_}
247
248_iconcont_ {<img name="cont" src="_httpiconcontoff_" width=_widthcontx_ height=_heightcontx_ border=0>}
249_iconcont_ [v=1] {_texticoncont_}
250
251
252#######################################################################
253# images
254#######################################################################
255
256_imagedetach_ {<a href="_httpcurrentdocument_&x=1" target=\_blank onMouseover = "img\_on('detach')"
257onMouseout = "img\_off('detach')">_icondetach_</a>}
258_imagedetach_[v=1] {<a href="_httpcurrentdocument_&x=1" target=\_blank>_texticondetach_</a><br>}
259
260_imagehighlight_ {<a href="_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_" onMouseover = "img\_on('hl')"
261onMouseout = "img\_off('hl')">_iconhighlight_</a>}
262_imagehighlight_ [v=1] {<a href="_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_">_texticonhighlight_</a><br>}
263
264_imagenohighlight_ {<a href="_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_" onMouseover = "img\_on('nhl')"
265onMouseout = "img\_off('nhl')">_iconnohighlight_</a>}
266_imagenohighlight_ [v=1] {<a href="_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_">_texticonnohighlight_</a><br>}
267
268_imagecontracttoc_ {<a href="_httpcurrentdocument_&gc=0" onMouseover = "img\_on('concon')"
269onMouseout = "img\_off('concon')">_iconcontracttoc_</a>}
270_imagecontracttoc_[v=1] {"<a href="_httpcurrentdocument_&gc=0">_texticoncontracttoc_</a><br>}
271
272_imageexpandtoc_ {<a href="_httpcurrentdocument_&gc=1" onMouseover = "img\_on('expcon')"
273onMouseout = "img\_off('expcon')">_iconexpandtoc_</a>}
274_imageexpandtoc_ [v=1] {"<a href="_httpcurrentdocument_&gc=1">_texticonexpandtoc_</a><br>}
275
276_imagecontracttext_ {<a href="_httpcurrentdocument_&amp;gt=0" onMouseover = "img\_on('thissec')"
277onMouseout = "img\_off('thissec')">_iconcontracttext_</a>}
278_imagecontracttext_[v=1] {<a href="_httpcurrentdocument_&amp;gt=0">display only current section</a><br>}
279
280_imageexpandtext_ {<a href="_httpcurrentdocument_&amp;gt=1" onMouseover = "img\_on('alltext')"
281onMouseout = "img\_off('alltext')">_iconexpandtext_</a>}
282_imageexpandtext_[v=1] {<a href="_httpcurrentdocument_&amp;gt=1">display all text</a><br>}
283
284_imagecont_ {<a href="_httpcurrentdocument_&amp;gt=2" onMouseover = "img\_on('cont')"
285onMouseout = "img\_off('cont')">_iconcont_</a>}
286_imagecont_[v=1] {<a href="_httpcurrentdocument&amp;gt=2">_texticoncont_</a><br>}
287
288
289#######################################################################
290# https
291#
292# These contain the url without any quotes
293#######################################################################
294
295_httpiconhtitle_ {_httpimg_/h\_title.gif}
296_widthhtitle_ {200}
297_heighthtitle_ {57}
298
299_httpiconhlist_ {_httpimg_/h\_list.gif}
300_widthhlist_ {200}
301_heighthlist_ {57}
302
303_httpiconhauth_ {_httpimg_/h\_auth.gif}
304_widthhauth_ {200}
305_heighthauth_ {57}
306
307_httpiconhsubj_ {_httpimg_/h\_subj.gif}
308_widthhsubj_ {200}
309_heighthsubj_ {57}
310
311_httpiconhser_ {_httpimg_/h\_ser.gif}
312_httpiconhser_ [l=mi] {_httpimg_/mh\_ser.gif}
313_widthhser_ {200}
314_widthhser_ [l=mi] {310}
315_heighthser_ {57}
316
317_httpiconhdate_ {_httpimg_/h\_date.gif}
318_httpiconhdate_ [l=mi] {_httpimg_/mh\_date.gif}
319_widthhdate_ {200}
320_heighthdate_ {57}
321
322_httpiconhhow_ {_httpimg_/h\_how.gif}
323_widthhhow_ {200}
324_heighthhow_ {57}
325
326_httpiconhtopic_ {_httpimg_/h\_topic.gif}
327_widthhtopic_ {200}
328_heighthtopic_ {57}
329
330_httpiconhorg_ {_httpimg_/h\_org.gif}
331_widthhorg_ {250}
332_heighthorg_ {57}
333
334_httpiconhbrwse_ {_httpimg_/h\_brwse.gif}
335_widthhbrwse_ {200}
336_heighthbrwse_ {57}
337
338_httpiconcontoff_ {_httpimg_/contoff.gif}
339_httpiconconton_ {_httpimg_/conton.gif}
340_widthcontx_ {76}
341_heightcontx_ {17}
342
343_httpiconealltof_ {_httpimg_/ealltof.gif}
344_httpiconealltof_ [l=mi] {_httpimg_/mealltof.gif}
345_httpiconeallton_ {_httpimg_/eallton.gif}
346_httpiconeallton_ [l=mi] {_httpimg_/meallton.gif}
347_widthealltx_ {46}
348_widthealltx_ [l=mi] {42}
349_heightealltx_ {30}
350
351_httpiconeconcof_ {_httpimg_/econcof.gif}
352_httpiconeconcon_ {_httpimg_/econcon.gif}
353_widtheconcx_ {63}
354_heighteconcx_ {30}
355
356_httpiconedtchof_ {_httpimg_/edtchof.gif}
357_httpiconedtchof_ [l=mi] {_httpimg_/medtchof.gif}
358_httpiconedtchon_ {_httpimg_/edtchon.gif}
359_httpiconedtchon_ [l=mi] {_httpimg_/medtchon.gif}
360_widthedtchx_ {47}
361_widthedtchx_ [l=mi] {56}
362_heightedtchx_ {30}
363
364_httpiconeexpcof_ {_httpimg_/eexpcof.gif}
365_httpiconeexpcon_ {_httpimg_/eexpcon.gif}
366_widtheexpcx_ {60}
367_heighteexpcx_ {30}
368
369_httpiconetsecof_ {_httpimg_/etsecof.gif}
370_httpiconetsecof_ [l=mi] {_httpimg_/metsecof.gif}
371_httpiconetsecon_ {_httpimg_/etsecon.gif}
372_httpiconetsecon_ [l=mi] {_httpimg_/metsecon.gif}
373_widthetsecx_ {63}
374_widthetsecx_ [l=mi] {53}
375_heightetsecx_ {30}
376
377_httpiconehlof_ {_httpimg_/ehlof.gif}
378_httpiconehlon_ {_httpimg_/ehlon.gif}
379_widthehlx_ {53}
380_heightehlx_ {30}
381
382_httpiconenhlof_ {_httpimg_/enhlof.gif}
383_httpiconenhlon_ {_httpimg_/enhlon.gif}
384_widthenhlx_ {57}
385_heightenhlx_ {30}
386
387
388#######################################################################
389# headers/footers
390#######################################################################
391
392
393# header overridden for text pages
394_textheader_ {_cgihead_
395_htmlhead_
396<center>
397<table width=_pagewidth_><tr><td align=right>
398_javalinks_</td></tr></table>
399</center>
400}
401_textheader_ [v=1] {_cgihead_
402_htmlhead_
403_javalinks_
404}
405
406_footer_ {
407<p>
408_navarrows_
409</table>
410_endspacer__htmlfooter_
411}
412
413
414#######################################################################
415# English language text macros
416#######################################################################
417
418_textTitlepage_ {_texticonhtitle_}
419_textCreatorpage_ {_texticonhauth_}
420_textSubjectpage_ {_texticonhsubj_}
421_textSeriespage_ {_texticonhser_}
422_textDatepage_ {_texticonhdate_}
423_textHowtopage_ {_texticonhhow_}
424_textOrganizationpage_ {_texticonhorg_}
425_textBrowsepage_ {_texticonhbrwse_}
426
427_texticonhtitle_ {Titles A-Z}
428_texticonhauth_ {Authors A-Z}
429_texticonhsubj_ {Subjects}
430_texticonhser_ {Series}
431_texticonhdate_ {Dates}
432_texticonhhow_ {How to}
433_texticonhorg_ {Organizations}
434_texticonhbrwse_ {Browse}
435
436_texticonopenbookshelf_ {close this section of the library}
437_texticonclosedbookshelf_ {open this section of the library and view contents}
438_texticonopenbook_ {close this book}
439_texticonclosedfolder_ {Open this folder and view contents}
440_texticonclosedfolder2_ {open sub-section: }
441_texticonopenfolder_ {close this folder}
442_texticonopenfolder2_ {close sub-section: }
443_texticonsmalltext_ {View this section of the text}
444_texticonsmalltext2_ {view text: }
445_texticonpointer_ {current section}
446_texticondetach_ {Open this page in a new window}
447_texticonhighlight_ {Highlight search terms}
448_texticonnohighlight_ {Don't highlight search terms}
449_texticoncontracttoc_ {Collapse table of contents}
450_texticonexpandtoc_ {Expand table of contents}
451_texticonexpandtext_ {Display all text}
452_texticoncontracttext_ {Display text only for currently selected section}
453_texticonwarning_ {<b>Warning: </b>}
454_texticoncont_ {continue?}
455
456_textltwarning_ {
457<p><center>
458<table cellspacing=0 cellpadding=0 width=_pagewidth_>
459<tr valign=top><td>_iconwarning_Expanding the text here will generate a large
460amount of data for your browser to display _imagecont_
461</td></tr></table></center>
462}
463
464
465#######################################################################
466# Maori text macros
467#######################################################################
468
469_texticondetach_ [l=mi] {Huakina mai he matapihi hou m&ouml; t&euml;nei k&ouml;rero}
470_texticonexpandtext_ [l=mi] {Titiro ki ng&auml; kupu katoa o t&euml;nei niupepa}
471_texticoncontracttext_ [l=mi] {Titiro ki ng&auml; kupu o t&euml;nei wh&auml;rangi anake}
472_texticonopenbookshelf_ [l=mi] {k&auml;tia}
473_texticonclosedbookshelf_ [l=mi] {whakat&uuml;whera mai}
474_texticonclosedbook_ [l=mi] {whakat&uuml;whera mai}
475_texticonopenbook_ [l=mi] {k&auml;tia}
476_texticonpointer_ [l=mi] {w&auml;hanga e tiro ana}
Note: See TracBrowser for help on using the repository browser.