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

Last change on this file since 1969 was 1969, 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.5 KB
RevLine 
[148]1#######################################################################
2# GLOBAL MACROS
3#######################################################################
[128]4
[148]5package Global
[128]6
[644]7##########
[590]8
[1969]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
[876]16_htmlextra_ {}
[590]17
[876]18_starthighlight_ {<b><u>}
19_endhighlight_ {</u></b>}
[590]20
[148]21#######################################################################
22# page content
23#
24# these should always be overridden for each page/collection
25#######################################################################
[128]26
[645]27_content_ {<p><h2>oops</h2>
[876]28_textdefaultcontent_}
29_pagetitle_ {_textdefaulttitle_}
[148]30_imagethispage_ {}
[548]31_iconcollection_ {}
[1272]32_collectionname_ {}
[128]33
[1272]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
[258]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
[651]48# width of tabs when displaying tables of contents
49_tabwidth_ {25}
50
[218]51_pagewidth_ {537}
[645]52# defaultwidth is the width buttons default to if not included in this list
53_defaultwidth_ {87}
54_searchwidth_ {_widthtsrchx_}
[258]55_Titlewidth_ {_widthttitlx_}
[283]56_Listwidth_ {_widthtlistx_}
[258]57_Creatorwidth_ {_widthtauthx_}
58_Serieswidth_ {_widthtserx_}
59_Datewidth_ {_widthtdatex_}
60_Subjectwidth_ {_widthtsubjx_}
[1207]61_Towidth_ {_widthttox_}
62_Fromwidth_ {_widthtfromx_}
[258]63_Organizationwidth_ {_widthtorgx_}
64_Howtowidth_ {_widththowx_}
[454]65_Topicwidth_ {_widthttopicx_}
66_Browsewidth_ {_widthtbrwsex_}
[601]67_Peoplewidth_ {_widthtpeopx_}
[1386]68_Languagewidth_ {_widthtlangx_}
[1406]69_Acronymwidth_ {_widthtacrox_}
[1697]70_Phrasewidth_ {_widthtphrsex_}
[128]71
[148]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#######################################################################
[128]76
[1305]77# _win32_ will be set to 1 if we're on windows
78_win32_ {}
79
[218]80_navigationbar_ {}
[258]81_widthtspace_ {2}
[128]82
[283]83# all cgi args are set as _cgiargX_ macros - those I've put here
84# are those that need to default to something
[276]85_cgiargd_ {}
[283]86_cgiargcl_ {}
[276]87
88# set from within the query action
89_hselection_ {}
90_jselection_ {}
91_nselection_ {}
[1120]92#granularity selection for mgpp
93_gselection_ {}
[1419]94
[148]95#######################################################################
[1419]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#######################################################################
[258]138# navigation bar images
[128]139#
[148]140#######################################################################
[128]141
[218]142# the spacer image - the width of this is set from server
143_imagespacer_ {<img
144src="_httpicontspace_" width="_widthtspace_" height="_heighttspace_">}
[548]145_imagespacer_[v=1] {<br>
[128]146}
147
[218]148# image macros for all the classifications currently supported by
[1263]149# this receptionist.
[218]150
[1419]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_(_httpbrowseBrowse_,_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_)}
[1696]166_imagePhrase_ {_gsimage_(_httpbrowsePhrase_,_httpicontphrseof_,_httpicontphrseon_,phrase,_textimagePhrase_)}
[128]167
[218]168
[148]169#######################################################################
[258]170# java images/scripts
[148]171#######################################################################
[128]172
[148]173# the _javalinks_ macros are the flashy image links at the top right of
[258]174# the page.
[128]175
[454]176_javalinks_ {_imagehome__imagehelp__imagepref_}
[548]177_javalinks_ [v=1] {
[283]178_imagehome_<br>
[128]179_imagehelp_<br>
180_imagepref_<br>
181}
182
183
[148]184#######################################################################
185# general web macros
186#######################################################################
187
[1275]188_mailaddr_ {[email protected]}
[128]189
[876]190_gsdltop_ {_top}
[128]191
[148]192#######################################################################
193# http macros
194#
[128]195# These contain the url without any quotes
[148]196#######################################################################
[128]197
[876]198_httpcollimg_ {_httpcollection_/index/assoc}
[1019]199_httpdocimg_ {_httpcollimg_/_thisOID_}
[876]200
[1416]201_httpcollection_ {_httpprefix_/collect/_cgiargc_}
[128]202
[258]203_httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
[1796]204_httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status&p=frameset}
205_httppagecollector_ {_gwcgi_?a=collector&p=intro}
[148]206_httppageabout_ {_httppagex_(about)}
[548]207#_httppagehome_ {_httppagex_(home)}
[1414]208###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&p=home}
[1133]209_httppagehome_ {_gwcgi_?a=p&p=home}
[128]210_httppagehelp_ {_httppagex_(help)}
211_httppagepref_ {_httppagex_(preferences)}
[942]212_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&a=dh}
[148]213
[128]214_httpgreenstone_ {_httppagex_(gsdl)}
[1107]215_httpdownload_ {http://www.nzdl.org/download}
[1111]216_httppublications_ {_httpdownload_/greenstone/publications}
[128]217
[258]218_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
219_httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
[876]220
221# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
222# may occasionally be altered by the server however
[258]223_httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
[876]224_httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
225
[725]226_httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
227_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
[128]228
[129]229_httpiconchalk_ {_httpimg_/chalk.gif}
230_widthchalk_ {2000}
231_heightchalk_ {10}
232
233_httpicondivb_ {_httpimg_/divb.gif}
[218]234_widthdivb_ {_pagewidth_}
[129]235_heightdivb_ {17}
236
237_httpicongsdl_ {_httpimg_/gsdl.gif}
238_widthgsdl_ {140}
239_heightgsdl_ {77}
240
241_httpiconitext_ {_httpimg_/itext.gif}
242_widthitext_ {16}
243_heightitext_ {21}
244
[548]245_httpiconibtext_ {_httpimg_/ibtext.gif}
246_widthibtext_ {16}
247_heightibtext_ {21}
248
[964]249_httpiconimpegvideo_ {_httpimg_/impegvideo.gif}
250_widthimpegvideo_ {29}
251_heightimpegvideo_ {32}
252
253_httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
254_widthiqtvideo_ {29}
255_heightiqtvideo_ {32}
256
257_httpiconirmvideo_ {_httpimg_/irmvideo.gif}
258_widthirmvideo_ {29}
259_heightirmvideo_ {32}
260
[129]261_httpiconless_ {_httpimg_/less.gif}
262_widthless_ {30}
263_heightless_ {16}
264
265_httpiconmore_ {_httpimg_/more.gif}
266_widthmore_ {30}
267_heightmore_ {16}
268
269_httpiconspacer_ {_httpimg_/spacer.gif}
270_widthspacer_ {42}
271_heightspacer_ {4}
272
273_httpicontabspace_ {_httpimg_/tabspace.gif}
274_widthtabspace_ {23}
[454]275_heighttabspace_ {1}
[129]276
[148]277_httpicontspace_ {_httpimg_/tspace.gif}
278_heighttspace_ {17}
279
[129]280_httpiconwarning_ {_httpimg_/warning.gif}
281_widthwarning_ {30}
282_heightwarning_ {29}
283
284_httpiconhhome_ {_httpimg_/h\_home.gif}
285_widthhhome_ {200}
286_heighthhome_ {57}
287
[148]288_httpiconarrrght_ {_httpimg_/arrrght.gif}
289_widtharrrght_ {23}
290_heightarrrght_ {15}
[129]291
[454]292_httpiconopenbook_ {_httpimg_/openbook.gif}
293_widthopenbook_ {28}
294_heightopenbook_ {23}
295
296_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
297_widthaopenbk_ {28}
298_heightaopenbk_ {23}
299
300_httpiconopenfldr_ {_httpimg_/openfldr.gif}
301_widthopenfldr_ {23}
302_heightopenfldr_ {15}
303
304_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
305_widthaopenfdr_ {23}
306_heightaopenfdr_ {15}
307
[148]308_httpiconbook_ {_httpimg_/book.gif}
309_widthbook_ {18}
310_heightbook_ {11}
[129]311
[454]312_httpiconabook_ {_httpimg_/abook.gif}
313_widthabook_ {18}
314_heightabook_ {11}
315
[148]316_httpiconbshelf_ {_httpimg_/bshelf.gif}
317_widthbshelf_ {20}
318_heightbshelf_ {16}
[129]319
[454]320_httpiconabshelf_ {_httpimg_/abshelf.gif}
321_widthabshelf_ {20}
322_heightabshelf_ {16}
[129]323
[454]324_httpiconsmtext_ {_httpimg_/smtext.gif}
325_widthsmtext_ {23}
326_heightsmtext_ {15}
327
328_httpiconasmtext_ {_httpimg_/asmtext.gif}
329_widthasmtext_ {23}
330_heightasmtext_ {15}
331
332_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
333_widthclsdfldr_ {23}
334_heightclsdfldr_ {15}
335
336_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
337_widthaclsdfdr_ {23}
338_heightaclsdfdr_ {15}
339
[1414]340_httpiconipdf_ {_httpimg_/ipdf.gif}
341_widthipdf_ {26}
342_heightipdf_ {26}
[454]343
[1414]344_httpiconimsword_ {_httpimg_/imsword.gif}
345_widthimsword_ {26}
346_heightimsword_ {26}
347
[1444]348_httpiconimidi_ {_httpimg_/imidi.gif}
349_widthimidi_ {16}
350_heightimidi_ {21}
[1414]351
[148]352#######################################################################
353# Icons
354#
[128]355# Must not include links (so they can be used as links). If you want to
356# include links use _image
[148]357#######################################################################
[128]358
[218]359_iconnext_{<img src="_httpiconmore_" align=absbottom
[258]360width=_widthmore_ height=_heightmore_ border=0 alt="_texticonnext_">}
[548]361_iconnext_[v=1] {_texticonnext_}
[128]362
[218]363_iconprev_{<img src="_httpiconless_" align=absbottom
[258]364width=_widthless_ height=_heightless_ border=0 alt="_texticonprev_">}
[548]365_iconprev_[v=1] {_texticonprev_}
[128]366
[218]367_icontabsearchgreen_ {<img
[283]368src="_httpicontsrchgr_" height=_heighttsrchx_ width=_widthtsrchx_ border=0>}
[548]369_icontabsearchgreen_[v=1] {_texticontabsearchgreen_}
[128]370
[283]371_icontabListgreen_ {<img
372src="_httpicontlistgr_" height=_heighttlistx_ width=_widthtlistx_ border=0>}
[548]373_icontablistgreen_ [v=1] {_texticontablistgreen_}
[283]374
[258]375_icontabTitlegreen_ {<img
[283]376src="_httpiconttitlgr_" height=_heightttitlx_ width=_widthttitlx_ border=0>}
[548]377_icontabTitlegreen_[v=1] {_texticontabtitlegreen_}
[128]378
[258]379_icontabCreatorgreen_ {<img
[283]380src="_httpicontauthgr_" height=_heighttauthx_ width=_widthtauthx_ border=0>}
[548]381_icontabCreatorgreen_[v=1] {_texticontabauthorgreen_}
[128]382
[258]383_icontabSeriesgreen_ {<img
[283]384src="_httpicontsergr_" height=_heighttserx_ width=_widthtserx_ border=0>}
[548]385_icontabSeriesgreen_[v=1] {_texticontabseriesgreen_}
[128]386
[258]387_icontabDategreen_ {<img
[283]388src="_httpicontdategr_" height=_heighttdatex_ width=_widthtdatex_ border=0>}
[548]389_icontabDategreen_[v=1] {_texticontabdategreen_}
[148]390
[258]391_icontabSubjectgreen_ {<img
[1196]392src="_httpicontsubjgr_" height=_heighttsubjx_ width=_widthtsubjx_ border=0>}
[548]393_icontabSubjectgreen_[v=1] {_texticontabsubjectgreen_}
[218]394
[1207]395_icontabTogreen_ {<img
396src="_httpiconttogr_" height=_heightttox_ width=_widthttox_ border=0>}
397_icontabTogreen_[v=1] {_texticontabtogreen_}
398
399_icontabFromgreen_ {<img
400src="_httpicontfromgr_" height=_heighttfromx_ width=_widthtfromx_ border=0>}
401_icontabFromgreen_[v=1] {_texticontabfromgreen_}
402
[258]403_icontabHowtogreen_ {<img
[454]404src="_httpiconthowgr_" height=_heightthowx_ width=_widththowx_ border=0>}
[548]405_icontabHowtogreen_[v=1] {_texticontabhowgreen_}
[218]406
[454]407_icontabTopicgreen_ {<img
408src="_httpiconttopicgr_" height=_heightttopicx_ width=_widthttopicx_ border=0>}
[548]409_icontabTopicgreen_[v=1] {_texticontabtopicgreen_}
[454]410
411_icontabBrowsegreen_ {<img
412src="_httpicontbrwsegr_" height=_heighttbrwsex_ width=_widthtbrwsex_ border=0>}
[548]413_icontabBrowsegreen_[v=1] {_texticontabbrwsegreen_}
[454]414
[258]415_icontabOrganizationgreen_ {<img
[1195]416src="_httpicontorggr_" height=_heighttorgx_ width=_widthtorgx_ border=0>}
[548]417_icontabOrganizationgreen_[v=1] {_texticontaborggreen_}
[218]418
[601]419_icontabPeoplegreen_ {<img
420src="_httpicontpeopgr_" height=_heighttpeopx_ width=_widthtpeopx_ border=0>}
421_icontabPeoplegreen_[v=1] {_texticontabPeoplegreen_}
422
[1386]423_icontabLanguagegreen_ {<img
424src="_httpicontlanggr_" height=_heighttlangx_ width=_widthtlangx_ border=0>}
425_icontabLanguagegreen_[v=1] {_texticontabLanguagegreen_}
426
427_icontabAcronymgreen_ {<img
428src="_httpicontacrogr_" height=_heighttacrox_ width=_widthtacrox_ border=0>}
429_icontabAcronymgreen_[v=1] {_texticontabAcronymgreen_}
430
[1696]431_icontabPhrasegreen_ {<img
432src="_httpicontphrsegr_" height=_heighttphrsex_ width=_widthtphrsex_ border=0>}
433_icontabPhrasegreen_[v=1] {_texticontabPhrasegreen_}
434
[876]435_iconblankbar_ {<center><img src="_httpicondivb_" width=_widthdivb_ height=6></center>}
[548]436_iconblankbar_[v=1] {<br><hr><br>}
[128]437
[258]438_icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
[548]439_icontext_[v=1] {_texticontext_}
[128]440
[548]441_iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
442_iconblanktext_[v=1] {}
[128]443
[548]444_iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_">}
445_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
[876]446_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
[128]447
[1414]448_icondoc_ {<img border=0 align=absmiddle src="_httpiconimsword_" width=_widthimsword_ height=_heightimsword_ alt="_texticonmsword_">}
449_iconmsword_[v=1] {_texticonmsword_}
[548]450
[1414]451_iconpdf_ {<img border=0 align=absmiddle src="_httpiconipdf_" width=_widthipdf_ height=_heightipdf_ alt="_texticonpdf_">}
452_iconpdf_[v=1] {_texticonpdf_}
453
[1444]454_iconmidi_ {<img border=0 align=absmiddle src="_httpiconimidi_" width=_widthimidi_ height=_heightimidi_ alt="_texticonmidi_">}
455_iconmidi_[v=1] {_texticonmidi_}
456
[148]457#######################################################################
458# Image links
459#
[128]460# These might include a link (not like an _icon_
[148]461#######################################################################
[128]462
[1419]463_imagehome_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
[128]464
[1419]465_imagehelp_ {_gsimage_(_httppagehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
[128]466
[1419]467_imagepref_ {_gsimage_(_httppagepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
[129]468
[548]469_imagegreenstone_ {<img src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" border="0" alt="_textimagegreenstone_" hspace=0>}
470_imagegreenstone_[v=1] {_textimagegreenstone_}
Note: See TracBrowser for help on using the repository browser.