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

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

* empty log message *

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