source: main/tags/2.37/gsdl/macros/base.dm@ 32020

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

added new "filenames" classifier button

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