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

Last change on this file since 12522 was 12175, checked in by kjdon, 18 years ago

removed navtabXXX macros which weren't used. tidied up some comments, and added navlinktitle and navlinkalt macros

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 11.7 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# all cgi args are set as _cgiargX_ macros - those I've put here
69# are those that need to default to something
70_cgiargd_ {}
71_cgiargcl_ {}
72
73# set from within the query action
74_hselection_ {}
75_jselection_ {}
76_nselection_ {}
77#level (granularity) selection for mgpp
78_gselection_ {}
79#level selection for form searching - dont have paragraph
80_gformselection_ {_gselection_}
81_fqfselection_ {}
82
83
84#######################################################################
85# navigation bar
86#
87#######################################################################
88# Most of the stuff to do with navigation bars is now defined in nav_css.dm
89# and nav_ns4.dm
90
91_navigationbar_ {}
92_widthtspace_ {2}
93
94_navlinktitle_ {_If_("_label_1__" eq "\_label_1_\_",_1_,_label_1__)}
95_navlinkalt_ {_If_("_textdescr_1__" ne "\_textdescr_1_\_", _textdescr_1__, _If_("_text_1__" eq "\_text_1_\_",_textdescrdefault_(_1_),_textdescrdefault_(_text_1__)) }
96
97#######################################################################
98# global navigation links
99#######################################################################
100
101# _globallinks_ is now defined in nav_css and nav_ns4 macro files
102
103#######################################################################
104# general web macros
105#######################################################################
106
107_mailaddr_ {[email protected]}
108
109_gsdltop_ {_top}
110
111#######################################################################
112# http macros
113#
114# These contain the url without any quotes
115#######################################################################
116
117_httpcimages_ {_httpcollection_/images}
118_httpcollimg_ {_httpcollection_/index/assoc}
119_httpdocimg_ {_httpcollimg_/_thisOID_}
120
121_httpcollection_ {_httpprefix_/collect/_cgiargc_}
122
123_httppagex_ {_gwcgi_?e=_compressedoptions_&amp;a=p&amp;p=_1_}
124_httppagestatus_ {_gwcgi_?e=_compressedoptions_&amp;a=status&amp;p=frameset}
125_httppagetranslator_ {_gwcgi_?e=_compressedoptions_&amp;a=gti&amp;p=home}
126_httppagecollector_ {_gwcgi_?e=_compressedoptions_&amp;a=collector&amp;p=intro}
127_httppagedepositor_ {_gwcgi_?e=_compressedoptions_&amp;a=depositor&amp;p=select}
128_httppagegli_ {_httppagex_(gli)}
129_httppageabout_ {_httppagex_(about)}
130#_httppagehome_ {_httppagex_(home)}
131###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&amp;p=home}
132_httppagehome_ {_gwcgi_?a=p&amp;p=home&amp;l=_cgiargl_&amp;w=_cgiargw_}
133_httppagehelp_ {_httppagex_(help)}
134_httppagepref_ {_httppagex_(preferences)}
135_httppagedocs_ {_httppagex_(docs)}
136_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&amp;a=dh}
137
138_httpgreenstone_ {_httppagex_(gsdl)}
139_httpdownload_ {http://www.nzdl.org/download}
140_httppublications_ {_httpdownload_/greenstone/publications}
141
142_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&amp;cl=_cgiargcl_&amp;d=_cgiargd_}
143_httpquery_ {_gwcgi_?e=_compressedoptions_&amp;a=q}
144_httpBrowse_ {_gwcgi_?e=_compressedoptions_&amp;a=br}
145
146# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
147# may occasionally be altered by the server however
148_httpdocument_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
149_httpdoc_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
150
151_httpdocumenthandle_ {_httpprefix_handle/_1_/_2_}
152
153_httpextlink_ {_gwcgi_?e=_compressedoptions_&amp;a=extlink}
154_httpbuild_ {_gwcgi_?e=_compressedoptions_&amp;a=bc}
155
156# this is obsolete now (still used by collector). done by stylesheet instead
157_httpiconchalk_ {_httpimg_/chalk.gif}
158_widthchalk_ {2000}
159_heightchalk_ {10}
160
161_httpicondivb_ {_httpimg_/divb.gif}
162# these sizes are obsolete, now done in style sheet
163_widthdivb_ {_pagewidth_}
164_heightdivb_ {17}
165
166_httpicongsdl_ {_httpimg_/gsdl.gif}
167_widthgsdl_ {140}
168_heightgsdl_ {77}
169
170_httpiconitext_ {_httpimg_/itext.gif}
171_widthitext_ {16}
172_heightitext_ {21}
173
174_httpiconiworld_ {_httpimg_/iworld.gif}
175_widthiworld_ {16}
176_heightiworld_ {21}
177
178_httpiconiunknown_ {_httpimg_/iunknown.gif}
179_widthiunknown_ {16}
180_heightiunknown_ {21}
181
182_httpiconibtext_ {_httpimg_/ibtext.gif}
183_widthibtext_ {16}
184_heightibtext_ {21}
185
186_httpiconimpegvideo_ {_httpimg_/impegvid.gif}
187_widthimpegvideo_ {29}
188_heightimpegvideo_ {32}
189
190_httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
191_widthiqtvideo_ {29}
192_heightiqtvideo_ {32}
193
194_httpiconirmvideo_ {_httpimg_/irmvideo.gif}
195_widthirmvideo_ {29}
196_heightirmvideo_ {32}
197
198_httpiconless_ {_httpimg_/less.gif}
199_widthless_ {30}
200_heightless_ {16}
201
202_httpiconmore_ {_httpimg_/more.gif}
203_widthmore_ {30}
204_heightmore_ {16}
205
206_httpiconspacer_ {_httpimg_/spacer.gif}
207_widthspacer_ {42}
208_heightspacer_ {4}
209
210_httpicontabspace_ {_httpimg_/tabspace.gif}
211_widthtabspace_ {23}
212_heighttabspace_ {1}
213
214_httpicontspace_ {_httpimg_/bg_green.png}
215_heighttspace_ {17}
216
217_httpiconwarning_ {_httpimg_/warning.gif}
218_widthwarning_ {30}
219_heightwarning_ {29}
220
221_widthhhome_ {200}
222_heighthhome_ {57}
223
224_httpiconarrrght_ {_httpimg_/arrrght.gif}
225_widtharrrght_ {23}
226_heightarrrght_ {15}
227
228_httpiconopenbook_ {_httpimg_/openbook.gif}
229_widthopenbook_ {28}
230_heightopenbook_ {23}
231
232_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
233_widthaopenbk_ {28}
234_heightaopenbk_ {23}
235
236_httpiconopenfldr_ {_httpimg_/openfldr.gif}
237_widthopenfldr_ {23}
238_heightopenfldr_ {15}
239
240_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
241_widthaopenfdr_ {23}
242_heightaopenfdr_ {15}
243
244_httpiconbook_ {_httpimg_/book.gif}
245_widthbook_ {18}
246_heightbook_ {11}
247
248_httpiconabook_ {_httpimg_/abook.gif}
249_widthabook_ {18}
250_heightabook_ {11}
251
252_httpiconbshelf_ {_httpimg_/bshelf.gif}
253_widthbshelf_ {20}
254_heightbshelf_ {16}
255
256_httpiconabshelf_ {_httpimg_/abshelf.gif}
257_widthabshelf_ {20}
258_heightabshelf_ {16}
259
260_httpiconsmtext_ {_httpimg_/smtext.gif}
261_widthsmtext_ {23}
262_heightsmtext_ {15}
263
264_httpiconasmtext_ {_httpimg_/asmtext.gif}
265_widthasmtext_ {23}
266_heightasmtext_ {15}
267
268_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
269_widthclsdfldr_ {23}
270_heightclsdfldr_ {15}
271
272_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
273_widthaclsdfdr_ {23}
274_heightaclsdfdr_ {15}
275
276_httpiconimidi_ {_httpimg_/imidi.gif}
277_widthimidi_ {16}
278_heightimidi_ {21}
279
280_httpiconimsword_ {_httpimg_/imsword.gif}
281_widthimsword_ {26}
282_heightimsword_ {26}
283
284_httpiconimp3_ {_httpimg_/imp3.gif}
285_widthimp3_ {25}
286_heightimp3_ {20}
287
288_httpiconipdf_ {_httpimg_/ipdf.gif}
289_widthipdf_ {26}
290_heightipdf_ {26}
291
292_httpiconips_ {_httpimg_/ips.gif}
293_widthips_ {25}
294_heightips_ {32}
295
296_httpiconippt_ {_httpimg_/ippt.gif}
297_widthippt_ {32}
298_heightippt_ {30}
299
300_httpiconirtf_ {_httpimg_/irtf.gif}
301_widthirtf_ {29}
302_heightirtf_ {32}
303
304_httpiconixls_ {_httpimg_/iexcel.gif}
305_widthixls_ {32}
306_heightixls_ {30}
307
308#######################################################################
309# Icons
310#
311# Must not include links (so they can be used as links). If you want to
312# include links use _image
313#######################################################################
314
315_iconnext_{<img src="_httpiconmore_" align="absbottom"
316width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
317_iconnext_[v=1] {_texticonnext_}
318
319_iconprev_{<img src="_httpiconless_" align="absbottom"
320width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
321_iconprev_[v=1] {_texticonprev_}
322
323_icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
324_icontext_[v=1] {_texticontext_}
325
326_iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
327_iconworld_[v=1] {_texticonworld_}
328
329_iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
330_iconunknown_[v=1] {_texticonunknown_}
331
332_iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
333_iconblanktext_[v=1] {}
334
335_iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
336_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
337_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
338
339_icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
340_icondoc_[v=1] {_texticonmsword_}
341
342_iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
343_iconmp3_[v=1] {_texticonmp3_}
344
345_iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
346_iconmidi_[v=1] {_texticonmidi_}
347
348_iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
349_iconpdf_[v=1] {_texticonpdf_}
350
351_iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
352_iconps_[v=1] {_texticonps_}
353
354_iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
355_iconppt_[v=1] {_texticonppt_}
356
357_iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
358_iconrtf_[v=1] {_texticonrtf_}
359
360_iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
361_iconxls_[v=1] {_texticonxls_}
362
363#######################################################################
364# Image links
365#
366# These might include a link (not like an _icon_
367#######################################################################
368
369
370_imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
371
372_imagegreenstone_[v=1] {_textdescrgreenstone_}
373
Note: See TracBrowser for help on using the repository browser.