source: trunk/gsdl/macros/base.dm@ 2562

Last change on this file since 2562 was 2562, checked in by sjboddie, 23 years ago

Added link to manuals from home page

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 15.4 KB
Line 
1#######################################################################
2# GLOBAL MACROS
3#######################################################################
4
5package Global
6
7##########
8
9# not sure exactly what this is used for but it seems it needs to default
10# to something
11_optsite_ {}
12
13
14##########
15
16_htmlextra_ {}
17
18_starthighlight_ {<b><u>}
19_endhighlight_ {</u></b>}
20
21#######################################################################
22# page content
23#
24# these should always be overridden for each page/collection
25#######################################################################
26
27_content_ {<p><h2>oops</h2>
28_textdefaultcontent_}
29_pagetitle_ {_textdefaulttitle_}
30_imagethispage_ {}
31_iconcollection_ {}
32_collectionname_ {}
33
34_imagecollection_ {_If_("_iconcollection_" ne "",
35<a href="_httppageabout_"><img src="_iconcollection_" border=0></a>,
36_imagecollectionv_}
37_imagecollection_ [v=1] {_imagecollectionv_}
38_imagecollectionv_ {_If_(_collectionname_,<br><br><h2><a href="_httppageabout_">_collectionname_</a></h2>)}
39
40#######################################################################
41# these width macros are read in by the server when calculating
42# width of navigation bar etc. There should be one for each
43# classification that this receptionist supports, one for the
44# search button, and the _pagewidth_ macro which is the total width
45# of the page
46#######################################################################
47
48# width of tabs when displaying tables of contents
49_tabwidth_ {25}
50
51_pagewidth_ {537}
52# defaultwidth is the width buttons default to if not included in this list
53_defaultwidth_ {87}
54_searchwidth_ {_widthtsrchx_}
55_Titlewidth_ {_widthttitlx_}
56_Listwidth_ {_widthtlistx_}
57_Creatorwidth_ {_widthtauthx_}
58_Serieswidth_ {_widthtserx_}
59_Datewidth_ {_widthtdatex_}
60_Subjectwidth_ {_widthtsubjx_}
61_Towidth_ {_widthttox_}
62_Fromwidth_ {_widthtfromx_}
63_Organizationwidth_ {_widthtorgx_}
64_Howtowidth_ {_widththowx_}
65_Topicwidth_ {_widthttopicx_}
66_Browsewidth_ {_widthtbrwsex_}
67_Peoplewidth_ {_widthtpeopx_}
68_Languagewidth_ {_widthtlangx_}
69_Acronymwidth_ {_widthtacrox_}
70_Phrasewidth_ {_widthtphrsex_}
71
72#######################################################################
73# Macros whose values are set from within the server at runtime. These
74# are here only for reference and to set default values if required.
75#######################################################################
76
77# _win32_ will be set to 1 if we're on windows
78_win32_ {}
79
80_navigationbar_ {}
81_widthtspace_ {2}
82
83# all cgi args are set as _cgiargX_ macros - those I've put here
84# are those that need to default to something
85_cgiargd_ {}
86_cgiargcl_ {}
87
88# set from within the query action
89_hselection_ {}
90_jselection_ {}
91_nselection_ {}
92#granularity selection for mgpp
93_gselection_ {}
94
95#######################################################################
96# flashy rollover image macro
97#
98#######################################################################
99
100# imagescript should always be included in html header if there are
101# flashy images on the page
102_imagescript_ {
103var loaded = new Array();
104function gbutton (image, onimage) \{
105 if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) \{
106 s = image.src;
107 image.out = new Image();
108 image.out.src = s;
109 image.over = new Image();
110 image.over.src = onimage;
111 loaded[image.name] = image;
112 \}
113\}
114
115function roll (imagename, over) \{
116 if (document.images) \{
117 if (over) i = "over";
118 else i = "out";
119 image = loaded[imagename];
120 if (image) image.src = eval("image."+i+".src");
121 \}
122\}
123}
124
125# gsimage should be used to define an instance of a flashy image
126# parameters are:
127# 1. the url to go to when the button is clicked
128# 2. the url of the "off" image
129# 3. the url of the "on" image
130# 4. the name of the image (must be unique)
131# 5. image alt text
132_gsimage_ {<a href="_1_" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);"><img
133name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>}
134
135_gsimage_ [v=1] {<a href="_1_">_5_</a><br>}
136
137#######################################################################
138# navigation bar images
139#
140#######################################################################
141
142# the spacer image - the width of this is set from server
143_imagespacer_ {<img
144src="_httpicontspace_" width="_widthtspace_" height="_heighttspace_">}
145_imagespacer_[v=1] {<br>
146}
147
148# image macros for all the classifications currently supported by
149# this receptionist.
150
151_imagesearch_ {_gsimage_(_httpquery_,_httpicontsrchof_,_httpicontsrchon_,srch,_textimagesearch_)}
152_imageTitle_ {_gsimage_(_httpbrowseTitle_,_httpiconttitlof_,_httpiconttitlon_,titles,_textimageTitle_)}
153_imageCreator_ {_gsimage_(_httpbrowseCreator_,_httpicontauthof_,_httpicontauthon_,authors,_textimageCreator_)}
154_imageSeries_ {_gsimage_(_httpbrowseSeries_,_httpicontserof_,_httpicontseron_,series,_textimageSeries_)}
155_imageDate_ {_gsimage_(_httpbrowseDate_,_httpicontdateof_,_httpicontdateon_,dates,_textimageDate_)}
156_imageSubject_ {_gsimage_(_httpbrowseSubject_,_httpicontsubjof_,_httpicontsubjon_,subjects,_textimageSubject_)}
157_imageTo_ {_gsimage_(_httpbrowseTo_,_httpiconttoof_,_httpiconttoon_,to,_textimageTo_)}
158_imageFrom_ {_gsimage_(_httpbrowseFrom_,_httpicontfromof_,_httpicontfromon_,from,_textimageFrom_)}
159_imageOrganization_ {_gsimage_(_httpbrowseOrganization_,_httpicontorgof_,_httpicontorgon_,org,_textimageOrganization_)}
160_imageHowto_ {_gsimage_(_httpbrowseHowto_,_httpiconthowof_,_httpiconthowon_,how,_textimageHowto_)}
161_imageTopic_ {_gsimage_(_httpbrowseTopic_,_httpiconttopicof_,_httpiconttopicon_,topic,_textimageTopic_)}
162_imageBrowse_ {_gsimage_(_httpBrowse_,_httpicontbrwseof_,_httpicontbrwseon_,browse,_textimageBrowse_)}
163_imagePeople_ {_gsimage_(_httpbrowsePeople_,_httpicontpeopof_,_httpicontpeopon_,people,_textimagePeople_)}
164_imageLanguage_ {_gsimage_(_httpbrowseLanguage_,_httpicontlangof_,_httpicontlangon_,language,_textimageLanguage_)}
165_imageAcronym_ {_gsimage_(_httpbrowseAcronym_,_httpicontacroof_,_httpicontacroon_,acronym,_textimageAcronym_)}
166_imagePhrase_ {_gsimage_(_httpbrowsePhrase_,_httpicontphrseof_,_httpicontphrseon_,phrase,_textimagePhrase_)}
167
168#######################################################################
169# java images/scripts
170#######################################################################
171
172# the _javalinks_ macros are the flashy image links at the top right of
173# the page.
174
175_javalinks_ {_imagehome__imagehelp__imagepref_}
176_javalinks_ [v=1] {
177_imagehome_<br>
178_imagehelp_<br>
179_imagepref_<br>
180}
181
182
183#######################################################################
184# general web macros
185#######################################################################
186
187_mailaddr_ {[email protected]}
188
189_gsdltop_ {_top}
190
191#######################################################################
192# http macros
193#
194# These contain the url without any quotes
195#######################################################################
196
197_httpcollimg_ {_httpcollection_/index/assoc}
198_httpdocimg_ {_httpcollimg_/_thisOID_}
199
200_httpcollection_ {_httpprefix_/collect/_cgiargc_}
201
202_httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
203_httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status&p=frameset}
204_httppagecollector_ {_gwcgi_?a=collector&p=intro}
205_httppageabout_ {_httppagex_(about)}
206#_httppagehome_ {_httppagex_(home)}
207###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&p=home}
208_httppagehome_ {_gwcgi_?a=p&p=home}
209_httppagehelp_ {_httppagex_(help)}
210_httppagepref_ {_httppagex_(preferences)}
211_httppagedocs_ {_httppagex_(docs)}
212_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&a=dh}
213
214_httpgreenstone_ {_httppagex_(gsdl)}
215_httpdownload_ {http://www.nzdl.org/download}
216_httppublications_ {_httpdownload_/greenstone/publications}
217
218_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
219_httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
220_httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
221
222# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
223# may occasionally be altered by the server however
224_httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
225_httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
226
227_httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
228_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
229
230_httpiconchalk_ {_httpimg_/chalk.gif}
231_widthchalk_ {2000}
232_heightchalk_ {10}
233
234_httpicondivb_ {_httpimg_/divb.gif}
235_widthdivb_ {_pagewidth_}
236_heightdivb_ {17}
237
238_httpicongsdl_ {_httpimg_/gsdl.gif}
239_widthgsdl_ {140}
240_heightgsdl_ {77}
241
242_httpiconitext_ {_httpimg_/itext.gif}
243_widthitext_ {16}
244_heightitext_ {21}
245
246_httpiconibtext_ {_httpimg_/ibtext.gif}
247_widthibtext_ {16}
248_heightibtext_ {21}
249
250_httpiconimpegvideo_ {_httpimg_/impegvid.gif}
251_widthimpegvideo_ {29}
252_heightimpegvideo_ {32}
253
254_httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
255_widthiqtvideo_ {29}
256_heightiqtvideo_ {32}
257
258_httpiconirmvideo_ {_httpimg_/irmvideo.gif}
259_widthirmvideo_ {29}
260_heightirmvideo_ {32}
261
262_httpiconless_ {_httpimg_/less.gif}
263_widthless_ {30}
264_heightless_ {16}
265
266_httpiconmore_ {_httpimg_/more.gif}
267_widthmore_ {30}
268_heightmore_ {16}
269
270_httpiconspacer_ {_httpimg_/spacer.gif}
271_widthspacer_ {42}
272_heightspacer_ {4}
273
274_httpicontabspace_ {_httpimg_/tabspace.gif}
275_widthtabspace_ {23}
276_heighttabspace_ {1}
277
278_httpicontspace_ {_httpimg_/tspace.gif}
279_heighttspace_ {17}
280
281_httpiconwarning_ {_httpimg_/warning.gif}
282_widthwarning_ {30}
283_heightwarning_ {29}
284
285_httpiconhhome_ {_httpimg_/h\_home.gif}
286_widthhhome_ {200}
287_heighthhome_ {57}
288
289_httpiconarrrght_ {_httpimg_/arrrght.gif}
290_widtharrrght_ {23}
291_heightarrrght_ {15}
292
293_httpiconopenbook_ {_httpimg_/openbook.gif}
294_widthopenbook_ {28}
295_heightopenbook_ {23}
296
297_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
298_widthaopenbk_ {28}
299_heightaopenbk_ {23}
300
301_httpiconopenfldr_ {_httpimg_/openfldr.gif}
302_widthopenfldr_ {23}
303_heightopenfldr_ {15}
304
305_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
306_widthaopenfdr_ {23}
307_heightaopenfdr_ {15}
308
309_httpiconbook_ {_httpimg_/book.gif}
310_widthbook_ {18}
311_heightbook_ {11}
312
313_httpiconabook_ {_httpimg_/abook.gif}
314_widthabook_ {18}
315_heightabook_ {11}
316
317_httpiconbshelf_ {_httpimg_/bshelf.gif}
318_widthbshelf_ {20}
319_heightbshelf_ {16}
320
321_httpiconabshelf_ {_httpimg_/abshelf.gif}
322_widthabshelf_ {20}
323_heightabshelf_ {16}
324
325_httpiconsmtext_ {_httpimg_/smtext.gif}
326_widthsmtext_ {23}
327_heightsmtext_ {15}
328
329_httpiconasmtext_ {_httpimg_/asmtext.gif}
330_widthasmtext_ {23}
331_heightasmtext_ {15}
332
333_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
334_widthclsdfldr_ {23}
335_heightclsdfldr_ {15}
336
337_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
338_widthaclsdfdr_ {23}
339_heightaclsdfdr_ {15}
340
341_httpiconipdf_ {_httpimg_/ipdf.gif}
342_widthipdf_ {26}
343_heightipdf_ {26}
344
345_httpiconips_ {_httpimg_/ips.gif}
346_widthips_ {25}
347_heightips_ {32}
348
349_httpiconimsword_ {_httpimg_/imsword.gif}
350_widthimsword_ {26}
351_heightimsword_ {26}
352
353_httpiconimidi_ {_httpimg_/imidi.gif}
354_widthimidi_ {16}
355_heightimidi_ {21}
356
357#######################################################################
358# Icons
359#
360# Must not include links (so they can be used as links). If you want to
361# include links use _image
362#######################################################################
363
364_iconnext_{<img src="_httpiconmore_" align=absbottom
365width=_widthmore_ height=_heightmore_ border=0 alt="_texticonnext_">}
366_iconnext_[v=1] {_texticonnext_}
367
368_iconprev_{<img src="_httpiconless_" align=absbottom
369width=_widthless_ height=_heightless_ border=0 alt="_texticonprev_">}
370_iconprev_[v=1] {_texticonprev_}
371
372_icontabsearchgreen_ {<img
373src="_httpicontsrchgr_" width=_widthtsrchx_ border=0>}
374_icontabsearchgreen_[v=1] {_texticontabsearchgreen_}
375
376_icontabListgreen_ {<img
377src="_httpicontlistgr_" width=_widthtlistx_ border=0>}
378_icontablistgreen_ [v=1] {_texticontablistgreen_}
379
380_icontabTitlegreen_ {<img
381src="_httpiconttitlgr_" width=_widthttitlx_ border=0>}
382_icontabTitlegreen_[v=1] {_texticontabtitlegreen_}
383
384_icontabCreatorgreen_ {<img
385src="_httpicontauthgr_" width=_widthtauthx_ border=0>}
386_icontabCreatorgreen_[v=1] {_texticontabauthorgreen_}
387
388_icontabSeriesgreen_ {<img
389src="_httpicontsergr_" width=_widthtserx_ border=0>}
390_icontabSeriesgreen_[v=1] {_texticontabseriesgreen_}
391
392_icontabDategreen_ {<img
393src="_httpicontdategr_" width=_widthtdatex_ border=0>}
394_icontabDategreen_[v=1] {_texticontabdategreen_}
395
396_icontabSubjectgreen_ {<img
397src="_httpicontsubjgr_" width=_widthtsubjx_ border=0>}
398_icontabSubjectgreen_[v=1] {_texticontabsubjectgreen_}
399
400_icontabTogreen_ {<img
401src="_httpiconttogr_" width=_widthttox_ border=0>}
402_icontabTogreen_[v=1] {_texticontabtogreen_}
403
404_icontabFromgreen_ {<img
405src="_httpicontfromgr_" width=_widthtfromx_ border=0>}
406_icontabFromgreen_[v=1] {_texticontabfromgreen_}
407
408_icontabHowtogreen_ {<img
409src="_httpiconthowgr_" width=_widththowx_ border=0>}
410_icontabHowtogreen_[v=1] {_texticontabhowgreen_}
411
412_icontabTopicgreen_ {<img
413src="_httpiconttopicgr_" width=_widthttopicx_ border=0>}
414_icontabTopicgreen_[v=1] {_texticontabtopicgreen_}
415
416_icontabBrowsegreen_ {<img
417src="_httpicontbrwsegr_" width=_widthtbrwsex_ border=0>}
418_icontabBrowsegreen_[v=1] {_texticontabbrwsegreen_}
419
420_icontabOrganizationgreen_ {<img
421src="_httpicontorggr_" width=_widthtorgx_ border=0>}
422_icontabOrganizationgreen_[v=1] {_texticontaborggreen_}
423
424_icontabPeoplegreen_ {<img
425src="_httpicontpeopgr_" width=_widthtpeopx_ border=0>}
426_icontabPeoplegreen_[v=1] {_texticontabPeoplegreen_}
427
428_icontabLanguagegreen_ {<img
429src="_httpicontlanggr_" width=_widthtlangx_ border=0>}
430_icontabLanguagegreen_[v=1] {_texticontabLanguagegreen_}
431
432_icontabAcronymgreen_ {<img
433src="_httpicontacrogr_" width=_widthtacrox_ border=0>}
434_icontabAcronymgreen_[v=1] {_texticontabAcronymgreen_}
435
436_icontabPhrasegreen_ {<img
437src="_httpicontphrsegr_" width=_widthtphrsex_ border=0>}
438_icontabPhrasegreen_[v=1] {_texticontabPhrasegreen_}
439
440_iconblankbar_ {<center><img src="_httpicondivb_" width=_widthdivb_ height=_heightdivb_></center>}
441_iconblankbar_[v=1] {<br><hr><br>}
442
443_icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
444_icontext_[v=1] {_texticontext_}
445
446_iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
447_iconblanktext_[v=1] {}
448
449_iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_">}
450_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
451_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
452
453_icondoc_ {<img border=0 align=absmiddle src="_httpiconimsword_" width=_widthimsword_ height=_heightimsword_ alt="_texticonmsword_">}
454_iconmsword_[v=1] {_texticonmsword_}
455
456_iconpdf_ {<img border=0 align=absmiddle src="_httpiconipdf_" width=_widthipdf_ height=_heightipdf_ alt="_texticonpdf_">}
457_iconpdf_[v=1] {_texticonpdf_}
458
459_iconps_ {<img border=0 align=absmiddle src="_httpiconips_" width=_widthips_ height=_heightips_ alt="_texticonps_">}
460_iconps_[v=1] {_texticonps_}
461
462_iconmidi_ {<img border=0 align=absmiddle src="_httpiconimidi_" width=_widthimidi_ height=_heightimidi_ alt="_texticonmidi_">}
463_iconmidi_[v=1] {_texticonmidi_}
464
465#######################################################################
466# Image links
467#
468# These might include a link (not like an _icon_
469#######################################################################
470
471_imagehome_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
472
473_imagehelp_ {_gsimage_(_httppagehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
474
475_imagepref_ {_gsimage_(_httppagepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
476
477_imagegreenstone_ {<img src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" border="0" alt="_textimagegreenstone_" hspace=0>}
478_imagegreenstone_[v=1] {_textimagegreenstone_}
Note: See TracBrowser for help on using the repository browser.