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

Last change on this file since 18432 was 17860, checked in by mdewsnip, 16 years ago

Moved hard-wired usage of space.gif into a macro, so it can be overridden on a collection-specific basis. By Jeffrey at DL Consulting Ltd.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 12.1 KB
RevLine 
[7343]1# this file must be UTF-8 encoded
[148]2#######################################################################
3# GLOBAL MACROS
4#######################################################################
[128]5
[148]6package Global
[128]7
[644]8##########
[590]9
[1969]10_optsite_ {}
11
12
13##########
14
[876]15_htmlextra_ {}
[590]16
[11117]17# now defined in nav_css/nav_ns4 macro files
[2898]18#_starthighlight_ {<b><u>}
19#_endhighlight_ {</u></b>}
[590]20
[148]21#######################################################################
22# page content
23#
24# these should always be overridden for each page/collection
25#######################################################################
[128]26
[645]27_content_ {<p><h2>oops</h2>
[876]28_textdefaultcontent_}
29_pagetitle_ {_textdefaulttitle_}
[148]30_imagethispage_ {}
[548]31_iconcollection_ {}
[1272]32_collectionname_ {}
[128]33
[3878]34
35package Global
36
37
[1272]38_imagecollection_ {_If_("_iconcollection_" ne "",
[10872]39<a href="_httppageabout_"><img class="icon" src="_iconcollection_" alt="_collectionname_" title="_collectionname_"></a>,
[7394]40_imagecollectionv_)}
[1272]41_imagecollection_ [v=1] {_imagecollectionv_}
[11820]42_imagecollectionv_ {_If_(_collectionname_,<p class="collectiontitle"><a class="collectiontitle" href="_httppageabout_">_collectionname_</a></p>)}
[1272]43
[258]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
[651]52# width of tabs when displaying tables of contents
53_tabwidth_ {25}
54
[218]55_pagewidth_ {537}
[645]56# defaultwidth is the width buttons default to if not included in this list
57_defaultwidth_ {87}
58_searchwidth_ {_widthtsrchx_}
[8106]59
[148]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#######################################################################
[128]64
[1305]65# _win32_ will be set to 1 if we're on windows
66_win32_ {}
67
[283]68# all cgi args are set as _cgiargX_ macros - those I've put here
69# are those that need to default to something
[276]70_cgiargd_ {}
[283]71_cgiargcl_ {}
[276]72
73# set from within the query action
74_hselection_ {}
75_jselection_ {}
76_nselection_ {}
[4781]77#level (granularity) selection for mgpp
[1120]78_gselection_ {}
[4781]79#level selection for form searching - dont have paragraph
80_gformselection_ {_gselection_}
[4758]81_fqfselection_ {}
[12778]82# sort field for lucene
83_sfselection_ {}
[1419]84
85#######################################################################
[12175]86# navigation bar
[128]87#
[148]88#######################################################################
[12175]89# Most of the stuff to do with navigation bars is now defined in nav_css.dm
90# and nav_ns4.dm
[128]91
[15846]92_dynamicclassifiernavbarentries_ {}
[12175]93_navigationbar_ {}
94_widthtspace_ {2}
[10872]95
[12175]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__)) }
[218]98
[148]99#######################################################################
[10872]100# global navigation links
[148]101#######################################################################
[128]102
[11117]103# _globallinks_ is now defined in nav_css and nav_ns4 macro files
[128]104
[148]105#######################################################################
106# general web macros
107#######################################################################
108
[876]109_gsdltop_ {_top}
[128]110
[148]111#######################################################################
112# http macros
113#
[128]114# These contain the url without any quotes
[148]115#######################################################################
[128]116
[8910]117_httpcimages_ {_httpcollection_/images}
[876]118_httpcollimg_ {_httpcollection_/index/assoc}
[1019]119_httpdocimg_ {_httpcollimg_/_thisOID_}
[876]120
[1416]121_httpcollection_ {_httpprefix_/collect/_cgiargc_}
[128]122
[10872]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}
[11999]127_httppagedepositor_ {_gwcgi_?e=_compressedoptions_&amp;a=depositor&amp;p=select}
[6723]128_httppagegli_ {_httppagex_(gli)}
[148]129_httppageabout_ {_httppagex_(about)}
[548]130#_httppagehome_ {_httppagex_(home)}
[10872]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_}
[128]133_httppagehelp_ {_httppagex_(help)}
134_httppagepref_ {_httppagex_(preferences)}
[2562]135_httppagedocs_ {_httppagex_(docs)}
[10872]136_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&amp;a=dh}
[148]137
[128]138_httpgreenstone_ {_httppagex_(gsdl)}
[1107]139_httpdownload_ {http://www.nzdl.org/download}
[1111]140_httppublications_ {_httpdownload_/greenstone/publications}
[128]141
[10872]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}
[876]145
146# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
147# may occasionally be altered by the server however
[10872]148_httpdocument_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
149_httpdoc_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
[876]150
[11999]151_httpdocumenthandle_ {_httpprefix_handle/_1_/_2_}
152
[10872]153_httpextlink_ {_gwcgi_?e=_compressedoptions_&amp;a=extlink}
154_httpbuild_ {_gwcgi_?e=_compressedoptions_&amp;a=bc}
[128]155
[10872]156# this is obsolete now (still used by collector). done by stylesheet instead
[129]157_httpiconchalk_ {_httpimg_/chalk.gif}
158_widthchalk_ {2000}
159_heightchalk_ {10}
160
161_httpicondivb_ {_httpimg_/divb.gif}
[10872]162# these sizes are obsolete, now done in style sheet
[218]163_widthdivb_ {_pagewidth_}
[129]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
[9332]174_httpiconiworld_ {_httpimg_/iworld.gif}
175_widthiworld_ {16}
176_heightiworld_ {21}
177
[7502]178_httpiconiunknown_ {_httpimg_/iunknown.gif}
179_widthiunknown_ {16}
180_heightiunknown_ {21}
181
[548]182_httpiconibtext_ {_httpimg_/ibtext.gif}
183_widthibtext_ {16}
184_heightibtext_ {21}
185
[2042]186_httpiconimpegvideo_ {_httpimg_/impegvid.gif}
[964]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
[129]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}
[454]212_heighttabspace_ {1}
[129]213
[10872]214_httpicontspace_ {_httpimg_/bg_green.png}
[148]215_heighttspace_ {17}
216
[129]217_httpiconwarning_ {_httpimg_/warning.gif}
218_widthwarning_ {30}
219_heightwarning_ {29}
220
221_widthhhome_ {200}
222_heighthhome_ {57}
223
[148]224_httpiconarrrght_ {_httpimg_/arrrght.gif}
225_widtharrrght_ {23}
226_heightarrrght_ {15}
[129]227
[454]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
[148]244_httpiconbook_ {_httpimg_/book.gif}
245_widthbook_ {18}
246_heightbook_ {11}
[129]247
[454]248_httpiconabook_ {_httpimg_/abook.gif}
249_widthabook_ {18}
250_heightabook_ {11}
251
[148]252_httpiconbshelf_ {_httpimg_/bshelf.gif}
253_widthbshelf_ {20}
254_heightbshelf_ {16}
[129]255
[454]256_httpiconabshelf_ {_httpimg_/abshelf.gif}
257_widthabshelf_ {20}
258_heightabshelf_ {16}
[129]259
[454]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
[2992]276_httpiconimidi_ {_httpimg_/imidi.gif}
277_widthimidi_ {16}
278_heightimidi_ {21}
279
280_httpiconimsword_ {_httpimg_/imsword.gif}
281_widthimsword_ {26}
282_heightimsword_ {26}
283
[11143]284_httpiconimp3_ {_httpimg_/imp3.gif}
[8917]285_widthimp3_ {25}
286_heightimp3_ {20}
287
[1414]288_httpiconipdf_ {_httpimg_/ipdf.gif}
289_widthipdf_ {26}
290_heightipdf_ {26}
[454]291
[2014]292_httpiconips_ {_httpimg_/ips.gif}
293_widthips_ {25}
294_heightips_ {32}
295
[2982]296_httpiconippt_ {_httpimg_/ippt.gif}
297_widthippt_ {32}
298_heightippt_ {30}
299
[2569]300_httpiconirtf_ {_httpimg_/irtf.gif}
301_widthirtf_ {29}
302_heightirtf_ {32}
303
[2992]304_httpiconixls_ {_httpimg_/iexcel.gif}
305_widthixls_ {32}
306_heightixls_ {30}
[1414]307
[17860]308_httpiconspace_ {_httpimg_/space.gif}
309
[148]310#######################################################################
311# Icons
312#
[128]313# Must not include links (so they can be used as links). If you want to
314# include links use _image
[148]315#######################################################################
[128]316
[10597]317_iconnext_{<img src="_httpiconmore_" align="absbottom"
318width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
[548]319_iconnext_[v=1] {_texticonnext_}
[128]320
[10597]321_iconprev_{<img src="_httpiconless_" align="absbottom"
322width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
[548]323_iconprev_[v=1] {_texticonprev_}
[128]324
[10872]325_icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
[548]326_icontext_[v=1] {_texticontext_}
[128]327
[10872]328_iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
[9332]329_iconworld_[v=1] {_texticonworld_}
330
[10872]331_iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
[7502]332_iconunknown_[v=1] {_texticonunknown_}
333
[10872]334_iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
[548]335_iconblanktext_[v=1] {}
[128]336
[10872]337_iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
[548]338_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
[876]339_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
[128]340
[10872]341_icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
[10383]342_icondoc_[v=1] {_texticonmsword_}
[548]343
[10872]344_iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
[8917]345_iconmp3_[v=1] {_texticonmp3_}
346
[10872]347_iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
[2992]348_iconmidi_[v=1] {_texticonmidi_}
349
[10872]350_iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
[1414]351_iconpdf_[v=1] {_texticonpdf_}
352
[10872]353_iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
[2014]354_iconps_[v=1] {_texticonps_}
355
[10872]356_iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
[2982]357_iconppt_[v=1] {_texticonppt_}
358
[10872]359_iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
[2569]360_iconrtf_[v=1] {_texticonrtf_}
361
[10872]362_iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
[2992]363_iconxls_[v=1] {_texticonxls_}
[1444]364
[148]365#######################################################################
366# Image links
367#
[128]368# These might include a link (not like an _icon_
[148]369#######################################################################
[128]370
371
[10872]372_imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
[128]373
[10872]374_imagegreenstone_[v=1] {_textdescrgreenstone_}
[129]375
[12569]376###########################################################################
377# Metadata formatting stuff
378#
379#
380###########################################################################
381package format
382
383# _1_ is Year, _2_ is month, _3_ is day
384_date_ {_If_("_3_" ne "",_3_ )_If_("_2_" ne "",_textmonth_2__ )_If_("_1_" ne "",_1_)}
385
Note: See TracBrowser for help on using the repository browser.