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

Last change on this file since 1507 was 1449, checked in by sjboddie, 24 years ago

* empty log message *

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