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

Last change on this file since 12017 was 11999, checked in by davidb, 18 years ago

First cut at macros used to support 'The Depository' -- Greenstone's runtime
action for institutional repository support.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 14.6 KB
Line 
1# this file must be UTF-8 encoded
2#######################################################################
3# GLOBAL MACROS
4#######################################################################
5
6package Global
7
8##########
9
10_optsite_ {}
11
12
13##########
14
15_htmlextra_ {}
16
17# now defined in nav_css/nav_ns4 macro files
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
35package Global
36
37
38_imagecollection_ {_If_("_iconcollection_" ne "",
39<a href="_httppageabout_"><img class="icon" src="_iconcollection_" alt="_collectionname_" title="_collectionname_"></a>,
40_imagecollectionv_)}
41_imagecollection_ [v=1] {_imagecollectionv_}
42_imagecollectionv_ {_If_(_collectionname_,<p class="collectiontitle"><a class="collectiontitle" href="_httppageabout_">_collectionname_</a></p>)}
43
44#######################################################################
45# these width macros are read in by the server when calculating
46# width of navigation bar etc. There should be one for each
47# classification that this receptionist supports, one for the
48# search button, and the _pagewidth_ macro which is the total width
49# of the page
50#######################################################################
51
52# width of tabs when displaying tables of contents
53_tabwidth_ {25}
54
55_pagewidth_ {537}
56# defaultwidth is the width buttons default to if not included in this list
57_defaultwidth_ {87}
58_searchwidth_ {_widthtsrchx_}
59
60#######################################################################
61# Macros whose values are set from within the server at runtime. These
62# are here only for reference and to set default values if required.
63#######################################################################
64
65# _win32_ will be set to 1 if we're on windows
66_win32_ {}
67
68_navigationbar_ {}
69_widthtspace_ {2}
70
71# The following is useful if collection specific macro. Override
72# _optnavigationbar_ to be empty if you don't want the navigation bar to
73# appear in the standard place, and then specify _navigationbar_ elsewhere
74# in a collection specific macro file(s) to be where you do want it.
75
76# _optnavigationbar_ is now defined in nav_css/nav_ns4 macro files
77
78# all cgi args are set as _cgiargX_ macros - those I've put here
79# are those that need to default to something
80_cgiargd_ {}
81_cgiargcl_ {}
82
83# set from within the query action
84_hselection_ {}
85_jselection_ {}
86_nselection_ {}
87#level (granularity) selection for mgpp
88_gselection_ {}
89#level selection for form searching - dont have paragraph
90_gformselection_ {_gselection_}
91_fqfselection_ {}
92
93# this is used for the tabs (eg for search/classifiers) on the navigation bar
94# parameters are:
95# 1. the url to go to when clicked
96# 2. the name of the tab
97# 3. alt/title explanatory text
98# 4. optional "selected" or not if it is the current tab
99
100# _navtab_ is defined in the nav_css/nav_ns4 macro files
101
102
103#######################################################################
104# navigation bar images
105#
106#######################################################################
107
108# the spacer image - the width of this is calculated and set from server
109# _navbarspacer_ set in nav_css/ns4
110
111# image macros for all the classifications currently supported by
112# this receptionist.
113
114## used to make the tabs in the navigation bar
115
116# _navtabsearch_ defined in nav_css/ns4 macro files
117
118# Dublin Core Metadata Element Set, Version 1.1
119
120_navtabTitle_ {_navtab_(_httpbrowseTitle_,titles,_textdescrTitle_,_1_)}
121_navtabCreator_ {_navtab_(_httpbrowseCreator_,creators,_textdescrCreator_,_1_)}
122_navtabSubject_ {_navtab_(_httpbrowseSubject_,_labelSubject_,_textdescrSubject_,_1_)}
123_navtabDescription_ {_navtab_(_httpbrowseDescription_,,_1_)}
124_navtabPublisher_ {_navtab_(_httpbrowsePublisher_,tabtepublishers,_textdescrPublisher_,_1_)}
125_navtabContributor_ {_navtab_(_httpbrowseContributor_,_labelContributor_,_textdescrContributor_,_1_)}
126_navtabDate_ {_navtab_(_httpbrowseDate_,_labelDate_,_textdescrDate_,_1_)}
127_navtabType_ {_navtab_(_httpbrowseType_,types,_textdescrType_,_1_)}
128_navtabFormat_ {_navtab_(_httpbrowseFormat_,formats,_textdescrFormat_,_1_)}
129_navtabIdentifier_ {_navtab_(_httpbrowseIdentifier_,identifiers,_textdescrIdentifier_,_1_)}
130_navtabSource_ {_navtab_(_httpbrowseSource_,source,_textdescrSource_,_1_)}
131_navtabLanguage_ {_navtab_(_httpbrowseLanguage_,language,_textdescrLanguage_,_1_)}
132_navtabRelation_ {_navtab_(_httpbrowseRelation_,,_1_)}
133_navtabCoverage_ {_navtab_(_httpbrowseCoverage_,coverage,_textdescrCoverage_,_1_)}
134_navtabRights_ {_navtab_(_httpbrowseRights_,rights,_textdescrRights_,_1_)}
135
136_navtabSeries_ {_navtab_(_httpbrowseSeries_,series,_textdescrSeries_,_1_)}
137_navtabTo_ {_navtab_(_httpbrowseTo_,to,_textdescrTo_,_1_)}
138_navtabFrom_ {_navtab_(_httpbrowseFrom_,from,_textdescrFrom_,_1_)}
139_navtabOrganization_ {_navtab_(_httpbrowseOrganization_,,_1_)}
140_navtabHowto_ {_navtab_(_httpbrowseHowto_,how,_textdescrHowto_,_1_)}
141_navtabTopic_ {_navtab_(_httpbrowseTopic_,topic,_textdescrTopic_,_1_)}
142_navtabBrowse_ {_navtab_(_httpbrowseBrowse_,browse,_textdescrBrowse_}
143_navtabPeople_ {_navtab_(_httpbrowsePeople_,people,_textdescrPeople_,_1_)}
144_navtabAcronym_ {_navtab_(_httpbrowseAcronym_,acronym,_textdescrAcronym_,_1_)}
145_navtabCollage_ {_navtab_(_httpbrowseCollage_,collage,_textdescrCollage_,_1_)}
146_navtabPhrase_ {_navtab_(_httpbrowsePhrase_,phrase,_textdescrPhrase_,_1_)}
147_navtabArtist_ {_navtab_(_httpbrowseArtist_,artist,_textdescrArtist_,_1_)}
148_navtabKeyword_ {_navtab_(_httpbrowseKeyword_,kw,_textdescrKeyword_,_1_)}
149_navtabVolume_ {_navtab_(_httpbrowseVolume_,volume,_textdescrVolume_,_1_)}
150_navtabCaptions_ {_navtab_(_httpbrowseCaptions_,captions,_textdescrCaptions_,_1_)}
151_navtabCountries_ {_navtab_(_httpbrowseCountries_,countries,_textdescrCountries_,_1_)}
152
153#######################################################################
154# global navigation links
155#######################################################################
156
157# _globallinks_ is now defined in nav_css and nav_ns4 macro files
158
159#######################################################################
160# general web macros
161#######################################################################
162
163_mailaddr_ {[email protected]}
164
165_gsdltop_ {_top}
166
167#######################################################################
168# http macros
169#
170# These contain the url without any quotes
171#######################################################################
172
173_httpcimages_ {_httpcollection_/images}
174_httpcollimg_ {_httpcollection_/index/assoc}
175_httpdocimg_ {_httpcollimg_/_thisOID_}
176
177_httpcollection_ {_httpprefix_/collect/_cgiargc_}
178
179_httppagex_ {_gwcgi_?e=_compressedoptions_&amp;a=p&amp;p=_1_}
180_httppagestatus_ {_gwcgi_?e=_compressedoptions_&amp;a=status&amp;p=frameset}
181_httppagetranslator_ {_gwcgi_?e=_compressedoptions_&amp;a=gti&amp;p=home}
182_httppagecollector_ {_gwcgi_?e=_compressedoptions_&amp;a=collector&amp;p=intro}
183_httppagedepositor_ {_gwcgi_?e=_compressedoptions_&amp;a=depositor&amp;p=select}
184_httppagegli_ {_httppagex_(gli)}
185_httppageabout_ {_httppagex_(about)}
186#_httppagehome_ {_httppagex_(home)}
187###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&amp;p=home}
188_httppagehome_ {_gwcgi_?a=p&amp;p=home&amp;l=_cgiargl_&amp;w=_cgiargw_}
189_httppagehelp_ {_httppagex_(help)}
190_httppagepref_ {_httppagex_(preferences)}
191_httppagedocs_ {_httppagex_(docs)}
192_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&amp;a=dh}
193
194_httpgreenstone_ {_httppagex_(gsdl)}
195_httpdownload_ {http://www.nzdl.org/download}
196_httppublications_ {_httpdownload_/greenstone/publications}
197
198_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&amp;cl=_cgiargcl_&amp;d=_cgiargd_}
199_httpquery_ {_gwcgi_?e=_compressedoptions_&amp;a=q}
200_httpBrowse_ {_gwcgi_?e=_compressedoptions_&amp;a=br}
201
202# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
203# may occasionally be altered by the server however
204_httpdocument_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
205_httpdoc_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
206
207_httpdocumenthandle_ {_httpprefix_handle/_1_/_2_}
208
209_httpextlink_ {_gwcgi_?e=_compressedoptions_&amp;a=extlink}
210_httpbuild_ {_gwcgi_?e=_compressedoptions_&amp;a=bc}
211
212# this is obsolete now (still used by collector). done by stylesheet instead
213_httpiconchalk_ {_httpimg_/chalk.gif}
214_widthchalk_ {2000}
215_heightchalk_ {10}
216
217_httpicondivb_ {_httpimg_/divb.gif}
218# these sizes are obsolete, now done in style sheet
219_widthdivb_ {_pagewidth_}
220_heightdivb_ {17}
221
222_httpicongsdl_ {_httpimg_/gsdl.gif}
223_widthgsdl_ {140}
224_heightgsdl_ {77}
225
226_httpiconitext_ {_httpimg_/itext.gif}
227_widthitext_ {16}
228_heightitext_ {21}
229
230_httpiconiworld_ {_httpimg_/iworld.gif}
231_widthiworld_ {16}
232_heightiworld_ {21}
233
234_httpiconiunknown_ {_httpimg_/iunknown.gif}
235_widthiunknown_ {16}
236_heightiunknown_ {21}
237
238_httpiconibtext_ {_httpimg_/ibtext.gif}
239_widthibtext_ {16}
240_heightibtext_ {21}
241
242_httpiconimpegvideo_ {_httpimg_/impegvid.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_/bg_green.png}
271_heighttspace_ {17}
272
273_httpiconwarning_ {_httpimg_/warning.gif}
274_widthwarning_ {30}
275_heightwarning_ {29}
276
277_widthhhome_ {200}
278_heighthhome_ {57}
279
280_httpiconarrrght_ {_httpimg_/arrrght.gif}
281_widtharrrght_ {23}
282_heightarrrght_ {15}
283
284_httpiconopenbook_ {_httpimg_/openbook.gif}
285_widthopenbook_ {28}
286_heightopenbook_ {23}
287
288_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
289_widthaopenbk_ {28}
290_heightaopenbk_ {23}
291
292_httpiconopenfldr_ {_httpimg_/openfldr.gif}
293_widthopenfldr_ {23}
294_heightopenfldr_ {15}
295
296_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
297_widthaopenfdr_ {23}
298_heightaopenfdr_ {15}
299
300_httpiconbook_ {_httpimg_/book.gif}
301_widthbook_ {18}
302_heightbook_ {11}
303
304_httpiconabook_ {_httpimg_/abook.gif}
305_widthabook_ {18}
306_heightabook_ {11}
307
308_httpiconbshelf_ {_httpimg_/bshelf.gif}
309_widthbshelf_ {20}
310_heightbshelf_ {16}
311
312_httpiconabshelf_ {_httpimg_/abshelf.gif}
313_widthabshelf_ {20}
314_heightabshelf_ {16}
315
316_httpiconsmtext_ {_httpimg_/smtext.gif}
317_widthsmtext_ {23}
318_heightsmtext_ {15}
319
320_httpiconasmtext_ {_httpimg_/asmtext.gif}
321_widthasmtext_ {23}
322_heightasmtext_ {15}
323
324_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
325_widthclsdfldr_ {23}
326_heightclsdfldr_ {15}
327
328_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
329_widthaclsdfdr_ {23}
330_heightaclsdfdr_ {15}
331
332_httpiconimidi_ {_httpimg_/imidi.gif}
333_widthimidi_ {16}
334_heightimidi_ {21}
335
336_httpiconimsword_ {_httpimg_/imsword.gif}
337_widthimsword_ {26}
338_heightimsword_ {26}
339
340_httpiconimp3_ {_httpimg_/imp3.gif}
341_widthimp3_ {25}
342_heightimp3_ {20}
343
344_httpiconipdf_ {_httpimg_/ipdf.gif}
345_widthipdf_ {26}
346_heightipdf_ {26}
347
348_httpiconips_ {_httpimg_/ips.gif}
349_widthips_ {25}
350_heightips_ {32}
351
352_httpiconippt_ {_httpimg_/ippt.gif}
353_widthippt_ {32}
354_heightippt_ {30}
355
356_httpiconirtf_ {_httpimg_/irtf.gif}
357_widthirtf_ {29}
358_heightirtf_ {32}
359
360_httpiconixls_ {_httpimg_/iexcel.gif}
361_widthixls_ {32}
362_heightixls_ {30}
363
364#######################################################################
365# Icons
366#
367# Must not include links (so they can be used as links). If you want to
368# include links use _image
369#######################################################################
370
371_iconnext_{<img src="_httpiconmore_" align="absbottom"
372width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
373_iconnext_[v=1] {_texticonnext_}
374
375_iconprev_{<img src="_httpiconless_" align="absbottom"
376width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
377_iconprev_[v=1] {_texticonprev_}
378
379_icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
380_icontext_[v=1] {_texticontext_}
381
382_iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
383_iconworld_[v=1] {_texticonworld_}
384
385_iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
386_iconunknown_[v=1] {_texticonunknown_}
387
388_iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
389_iconblanktext_[v=1] {}
390
391_iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
392_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
393_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
394
395_icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
396_icondoc_[v=1] {_texticonmsword_}
397
398_iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
399_iconmp3_[v=1] {_texticonmp3_}
400
401_iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
402_iconmidi_[v=1] {_texticonmidi_}
403
404_iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
405_iconpdf_[v=1] {_texticonpdf_}
406
407_iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
408_iconps_[v=1] {_texticonps_}
409
410_iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
411_iconppt_[v=1] {_texticonppt_}
412
413_iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
414_iconrtf_[v=1] {_texticonrtf_}
415
416_iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
417_iconxls_[v=1] {_texticonxls_}
418
419#######################################################################
420# Image links
421#
422# These might include a link (not like an _icon_
423#######################################################################
424
425
426_imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
427
428_imagegreenstone_[v=1] {_textdescrgreenstone_}
429
Note: See TracBrowser for help on using the repository browser.