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

Last change on this file since 2745 was 2683, checked in by dmm9, 23 years ago

hopefully browsing will be back up and running in cstr now

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