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

Last change on this file since 18692 was 18692, checked in by davidb, 15 years ago

Introduction of _httpassocdir_. Defined to be the same of _httpcollimg_ but better named for many of the uses it is put to. _httpcollimg_ remains for backwards compatability.

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