root/trunk/gsdl/macros/base.dm @ 2014

Revision 2014, 15.7 KB (checked in by jrm21, 19 years ago)

Added macros for *iconps for Postscript files.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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
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#######################################################################
76
77# _win32_ will be set to 1 if we're on windows
78_win32_ {}
79
80_navigationbar_ {}
81_widthtspace_ {2}
82
83# all cgi args are set as _cgiargX_ macros - those I've put here
84# are those that need to default to something
85_cgiargd_ {}
86_cgiargcl_ {}
87
88# set from within the query action
89_hselection_ {}
90_jselection_ {}
91_nselection_ {}
92#granularity selection for mgpp
93_gselection_ {}
94
95#######################################################################
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#######################################################################
138# navigation bar images
139#
140#######################################################################
141
142# the spacer image - the width of this is set from server
143_imagespacer_ {<img
144src="_httpicontspace_" width="_widthtspace_" height="_heighttspace_">}
145_imagespacer_[v=1] {<br>
146}
147
148# image macros for all the classifications currently supported by
149# this receptionist.
150
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_)}
166_imagePhrase_ {_gsimage_(_httpbrowsePhrase_,_httpicontphrseof_,_httpicontphrseon_,phrase,_textimagePhrase_)}
167
168
169#######################################################################
170# java images/scripts
171#######################################################################
172
173# the _javalinks_ macros are the flashy image links at the top right of
174# the page.
175
176_javalinks_ {_imagehome__imagehelp__imagepref_}
177_javalinks_ [v=1] {
178_imagehome_<br>
179_imagehelp_<br>
180_imagepref_<br>
181}
182
183
184#######################################################################
185# general web macros
186#######################################################################
187
188_mailaddr_ {greenstone@cs.waikato.ac.nz}
189
190_gsdltop_ {_top}
191
192#######################################################################
193# http macros
194#
195# These contain the url without any quotes
196#######################################################################
197
198_httpcollimg_ {_httpcollection_/index/assoc}
199_httpdocimg_ {_httpcollimg_/_thisOID_}
200
201_httpcollection_ {_httpprefix_/collect/_cgiargc_}
202
203_httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
204_httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status&p=frameset}
205_httppagecollector_ {_gwcgi_?a=collector&p=intro}
206_httppageabout_ {_httppagex_(about)}
207#_httppagehome_ {_httppagex_(home)}
208###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&p=home}
209_httppagehome_ {_gwcgi_?a=p&p=home}
210_httppagehelp_ {_httppagex_(help)}
211_httppagepref_ {_httppagex_(preferences)}
212_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&a=dh}
213
214_httpgreenstone_ {_httppagex_(gsdl)}
215_httpdownload_ {http://www.nzdl.org/download}
216_httppublications_ {_httpdownload_/greenstone/publications}
217
218_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
219_httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
220
221# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
222# may occasionally be altered by the server however
223_httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
224_httpdoc_  {_gwcgi_?e=_compressedoptions_&a=d}
225
226_httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
227_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
228
229_httpiconchalk_ {_httpimg_/chalk.gif}
230_widthchalk_ {2000}
231_heightchalk_ {10}
232
233_httpicondivb_ {_httpimg_/divb.gif}
234_widthdivb_ {_pagewidth_}
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
245_httpiconibtext_ {_httpimg_/ibtext.gif}
246_widthibtext_ {16}
247_heightibtext_ {21}
248
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
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}
275_heighttabspace_ {1}
276
277_httpicontspace_ {_httpimg_/tspace.gif}
278_heighttspace_ {17}
279
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
288_httpiconarrrght_ {_httpimg_/arrrght.gif}
289_widtharrrght_ {23}
290_heightarrrght_ {15}
291
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
308_httpiconbook_ {_httpimg_/book.gif}
309_widthbook_ {18}
310_heightbook_ {11}
311
312_httpiconabook_ {_httpimg_/abook.gif}
313_widthabook_ {18}
314_heightabook_ {11}
315
316_httpiconbshelf_ {_httpimg_/bshelf.gif}
317_widthbshelf_ {20}
318_heightbshelf_ {16}
319
320_httpiconabshelf_ {_httpimg_/abshelf.gif}
321_widthabshelf_ {20}
322_heightabshelf_ {16}
323
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
340_httpiconipdf_ {_httpimg_/ipdf.gif}
341_widthipdf_ {26}
342_heightipdf_ {26}
343
344_httpiconips_ {_httpimg_/ips.gif}
345_widthips_ {25}
346_heightips_ {32}
347
348_httpiconimsword_ {_httpimg_/imsword.gif}
349_widthimsword_ {26}
350_heightimsword_ {26}
351
352_httpiconimidi_ {_httpimg_/imidi.gif}
353_widthimidi_ {16}
354_heightimidi_ {21}
355
356#######################################################################
357# Icons
358#
359# Must not include links (so they can be used as links). If you want to
360# include links use _image
361#######################################################################
362
363_iconnext_{<img src="_httpiconmore_" align=absbottom
364width=_widthmore_ height=_heightmore_ border=0 alt="_texticonnext_">}
365_iconnext_[v=1] {_texticonnext_}
366
367_iconprev_{<img src="_httpiconless_" align=absbottom
368width=_widthless_ height=_heightless_ border=0 alt="_texticonprev_">}
369_iconprev_[v=1] {_texticonprev_}
370
371_icontabsearchgreen_ {<img
372src="_httpicontsrchgr_" height=_heighttsrchx_ width=_widthtsrchx_ border=0>}
373_icontabsearchgreen_[v=1] {_texticontabsearchgreen_}
374
375_icontabListgreen_ {<img
376src="_httpicontlistgr_" height=_heighttlistx_ width=_widthtlistx_ border=0>}
377_icontablistgreen_ [v=1] {_texticontablistgreen_}
378
379_icontabTitlegreen_ {<img
380src="_httpiconttitlgr_" height=_heightttitlx_ width=_widthttitlx_ border=0>}
381_icontabTitlegreen_[v=1] {_texticontabtitlegreen_}
382
383_icontabCreatorgreen_ {<img
384src="_httpicontauthgr_" height=_heighttauthx_ width=_widthtauthx_ border=0>}
385_icontabCreatorgreen_[v=1] {_texticontabauthorgreen_}
386
387_icontabSeriesgreen_ {<img
388src="_httpicontsergr_" height=_heighttserx_ width=_widthtserx_ border=0>}
389_icontabSeriesgreen_[v=1] {_texticontabseriesgreen_}
390
391_icontabDategreen_ {<img
392src="_httpicontdategr_" height=_heighttdatex_ width=_widthtdatex_ border=0>}
393_icontabDategreen_[v=1] {_texticontabdategreen_}
394
395_icontabSubjectgreen_ {<img
396src="_httpicontsubjgr_" height=_heighttsubjx_ width=_widthtsubjx_ border=0>}
397_icontabSubjectgreen_[v=1] {_texticontabsubjectgreen_}
398
399_icontabTogreen_ {<img
400src="_httpiconttogr_" height=_heightttox_ width=_widthttox_ border=0>}
401_icontabTogreen_[v=1] {_texticontabtogreen_}
402
403_icontabFromgreen_ {<img
404src="_httpicontfromgr_" height=_heighttfromx_ width=_widthtfromx_ border=0>}
405_icontabFromgreen_[v=1] {_texticontabfromgreen_}
406
407_icontabHowtogreen_ {<img
408src="_httpiconthowgr_" height=_heightthowx_ width=_widththowx_ border=0>}
409_icontabHowtogreen_[v=1] {_texticontabhowgreen_}
410
411_icontabTopicgreen_ {<img
412src="_httpiconttopicgr_" height=_heightttopicx_ width=_widthttopicx_ border=0>}
413_icontabTopicgreen_[v=1] {_texticontabtopicgreen_}
414
415_icontabBrowsegreen_ {<img
416src="_httpicontbrwsegr_" height=_heighttbrwsex_ width=_widthtbrwsex_ border=0>}
417_icontabBrowsegreen_[v=1] {_texticontabbrwsegreen_}
418
419_icontabOrganizationgreen_ {<img
420src="_httpicontorggr_" height=_heighttorgx_ width=_widthtorgx_ border=0>}
421_icontabOrganizationgreen_[v=1] {_texticontaborggreen_}
422
423_icontabPeoplegreen_ {<img
424src="_httpicontpeopgr_" height=_heighttpeopx_ width=_widthtpeopx_ border=0>}
425_icontabPeoplegreen_[v=1] {_texticontabPeoplegreen_}
426
427_icontabLanguagegreen_ {<img
428src="_httpicontlanggr_" height=_heighttlangx_ width=_widthtlangx_ border=0>}
429_icontabLanguagegreen_[v=1] {_texticontabLanguagegreen_}
430
431_icontabAcronymgreen_ {<img
432src="_httpicontacrogr_" height=_heighttacrox_ width=_widthtacrox_ border=0>}
433_icontabAcronymgreen_[v=1] {_texticontabAcronymgreen_}
434
435_icontabPhrasegreen_ {<img
436src="_httpicontphrsegr_" height=_heighttphrsex_ width=_widthtphrsex_ border=0>}
437_icontabPhrasegreen_[v=1] {_texticontabPhrasegreen_}
438
439_iconblankbar_ {<center><img src="_httpicondivb_" width=_widthdivb_ height=6></center>}
440_iconblankbar_[v=1] {<br><hr><br>}
441
442_icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
443_icontext_[v=1] {_texticontext_}
444
445_iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
446_iconblanktext_[v=1] {}
447
448_iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_">}
449_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
450_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
451
452_icondoc_ {<img border=0 align=absmiddle src="_httpiconimsword_" width=_widthimsword_ height=_heightimsword_ alt="_texticonmsword_">}
453_iconmsword_[v=1] {_texticonmsword_}
454
455_iconpdf_ {<img border=0 align=absmiddle src="_httpiconipdf_" width=_widthipdf_ height=_heightipdf_ alt="_texticonpdf_">}
456_iconpdf_[v=1] {_texticonpdf_}
457
458_iconps_ {<img border=0 align=absmiddle src="_httpiconips_" width=_widthips_ height=_heightips_ alt="_texticonps_">}
459_iconps_[v=1] {_texticonps_}
460
461_iconmidi_ {<img border=0 align=absmiddle src="_httpiconimidi_" width=_widthimidi_ height=_heightimidi_ alt="_texticonmidi_">}
462_iconmidi_[v=1] {_texticonmidi_}
463
464#######################################################################
465# Image links
466#
467# These might include a link (not like an _icon_
468#######################################################################
469
470_imagehome_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
471
472_imagehelp_ {_gsimage_(_httppagehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
473
474_imagepref_ {_gsimage_(_httppagepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
475
476_imagegreenstone_ {<img src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" border="0" alt="_textimagegreenstone_" hspace=0>}
477_imagegreenstone_[v=1] {_textimagegreenstone_}
Note: See TracBrowser for help on using the browser.