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

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

lots of little changes to macro files

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