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

Last change on this file since 14263 was 12787, checked in by kjdon, 18 years ago

removed mailaddr macro

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