source: main/trunk/greenstone2/macros/base.dm@ 21893

Last change on this file since 21893 was 21747, checked in by kjdon, 14 years ago

added macros for ogg and real media icons

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