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

Last change on this file since 11142 was 11117, checked in by jrm21, 18 years ago

In the language files, renamed the _tabtext*_ macros to be called _label*_.
The new nav_css.dm macro file re-defines the _tabtext*_ macros and some of
the macros from base.dm/style.dm/home.dm to do with the navigation bar
and the home/help/preferences links have also been moved into nav_css.dm

A separate nav_ns4.dm macro (not committed here) exists that can be used
instead of nav_css.dm and uses the old behaviour of the roll-over images
for the navigation bar.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 14.6 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_,<br><br><h2><a href="_httppageabout_">_collectionname_</a></h2>)}
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_navigationbar_ {}
69_widthtspace_ {2}
70
71# The following is useful if collection specific macro. Override
72# _optnavigationbar_ to be empty if you don't want the navigation bar to
73# appear in the standard place, and then specify _navigationbar_ elsewhere
74# in a collection specific macro file(s) to be where you do want it.
75
76# _optnavigationbar_ is now defined in nav_css/nav_ns4 macro files
77
78# all cgi args are set as _cgiargX_ macros - those I've put here
79# are those that need to default to something
80_cgiargd_ {}
81_cgiargcl_ {}
82
83# set from within the query action
84_hselection_ {}
85_jselection_ {}
86_nselection_ {}
87#level (granularity) selection for mgpp
88_gselection_ {}
89#level selection for form searching - dont have paragraph
90_gformselection_ {_gselection_}
91_fqfselection_ {}
92
93# this is used for the tabs (eg for search/classifiers) on the navigation bar
94# parameters are:
95# 1. the url to go to when clicked
96# 2. the name of the tab
97# 3. alt/title explanatory text
98# 4. optional "selected" or not if it is the current tab
99
100# _navtab_ is defined in the nav_css/nav_ns4 macro files
101
102
103#######################################################################
104# navigation bar images
105#
106#######################################################################
107
108# the spacer image - the width of this is calculated and set from server
109# _navbarspacer_ set in nav_css/ns4
110
111# image macros for all the classifications currently supported by
112# this receptionist.
113
114## used to make the tabs in the navigation bar
115
116# _navtabsearch_ defined in nav_css/ns4 macro files
117
118# Dublin Core Metadata Element Set, Version 1.1
119
120_navtabTitle_ {_navtab_(_httpbrowseTitle_,titles,_textdescrTitle_,_1_)}
121_navtabCreator_ {_navtab_(_httpbrowseCreator_,creators,_textdescrCreator_,_1_)}
122_navtabSubject_ {_navtab_(_httpbrowseSubject_,_labelSubject_,_textdescrSubject_,_1_)}
123_navtabDescription_ {_navtab_(_httpbrowseDescription_,,_1_)}
124_navtabPublisher_ {_navtab_(_httpbrowsePublisher_,tabtepublishers,_textdescrPublisher_,_1_)}
125_navtabContributor_ {_navtab_(_httpbrowseContributor_,_labelContributor_,_textdescrContributor_,_1_)}
126_navtabDate_ {_navtab_(_httpbrowseDate_,_labelDate_,_textdescrDate_,_1_)}
127_navtabType_ {_navtab_(_httpbrowseType_,types,_textdescrType_,_1_)}
128_navtabFormat_ {_navtab_(_httpbrowseFormat_,formats,_textdescrFormat_,_1_)}
129_navtabIdentifier_ {_navtab_(_httpbrowseIdentifier_,identifiers,_textdescrIdentifier_,_1_)}
130_navtabSource_ {_navtab_(_httpbrowseSource_,source,_textdescrSource_,_1_)}
131_navtabLanguage_ {_navtab_(_httpbrowseLanguage_,language,_textdescrLanguage_,_1_)}
132_navtabRelation_ {_navtab_(_httpbrowseRelation_,,_1_)}
133_navtabCoverage_ {_navtab_(_httpbrowseCoverage_,coverage,_textdescrCoverage_,_1_)}
134_navtabRights_ {_navtab_(_httpbrowseRights_,rights,_textdescrRights_,_1_)}
135
136_navtabSeries_ {_navtab_(_httpbrowseSeries_,series,_textdescrSeries_,_1_)}
137_navtabTo_ {_navtab_(_httpbrowseTo_,to,_textdescrTo_,_1_)}
138_navtabFrom_ {_navtab_(_httpbrowseFrom_,from,_textdescrFrom_,_1_)}
139_navtabOrganization_ {_navtab_(_httpbrowseOrganization_,,_1_)}
140_navtabHowto_ {_navtab_(_httpbrowseHowto_,how,_textdescrHowto_,_1_)}
141_navtabTopic_ {_navtab_(_httpbrowseTopic_,topic,_textdescrTopic_,_1_)}
142_navtabBrowse_ {_navtab_(_httpbrowseBrowse_,browse,_textdescrBrowse_}
143_navtabPeople_ {_navtab_(_httpbrowsePeople_,people,_textdescrPeople_,_1_)}
144_navtabAcronym_ {_navtab_(_httpbrowseAcronym_,acronym,_textdescrAcronym_,_1_)}
145_navtabCollage_ {_navtab_(_httpbrowseCollage_,collage,_textdescrCollage_,_1_)}
146_navtabPhrase_ {_navtab_(_httpbrowsePhrase_,phrase,_textdescrPhrase_,_1_)}
147_navtabArtist_ {_navtab_(_httpbrowseArtist_,artist,_textdescrArtist_,_1_)}
148_navtabKeyword_ {_navtab_(_httpbrowseKeyword_,kw,_textdescrKeyword_,_1_)}
149_navtabVolume_ {_navtab_(_httpbrowseVolume_,volume,_textdescrVolume_,_1_)}
150_navtabCaptions_ {_navtab_(_httpbrowseCaptions_,captions,_textdescrCaptions_,_1_)}
151_navtabCountries_ {_navtab_(_httpbrowseCountries_,countries,_textdescrCountries_,_1_)}
152
153#######################################################################
154# global navigation links
155#######################################################################
156
157# _globallinks_ is now defined in nav_css and nav_ns4 macro files
158
159#######################################################################
160# general web macros
161#######################################################################
162
163_mailaddr_ {[email protected]}
164
165_gsdltop_ {_top}
166
167#######################################################################
168# http macros
169#
170# These contain the url without any quotes
171#######################################################################
172
173_httpcimages_ {_httpcollection_/images}
174_httpcollimg_ {_httpcollection_/index/assoc}
175_httpdocimg_ {_httpcollimg_/_thisOID_}
176
177_httpcollection_ {_httpprefix_/collect/_cgiargc_}
178
179_httppagex_ {_gwcgi_?e=_compressedoptions_&amp;a=p&amp;p=_1_}
180_httppagestatus_ {_gwcgi_?e=_compressedoptions_&amp;a=status&amp;p=frameset}
181_httppagetranslator_ {_gwcgi_?e=_compressedoptions_&amp;a=gti&amp;p=home}
182_httppagecollector_ {_gwcgi_?e=_compressedoptions_&amp;a=collector&amp;p=intro}
183_httppagegli_ {_httppagex_(gli)}
184_httppageabout_ {_httppagex_(about)}
185#_httppagehome_ {_httppagex_(home)}
186###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&amp;p=home}
187_httppagehome_ {_gwcgi_?a=p&amp;p=home&amp;l=_cgiargl_&amp;w=_cgiargw_}
188_httppagehelp_ {_httppagex_(help)}
189_httppagepref_ {_httppagex_(preferences)}
190_httppagedocs_ {_httppagex_(docs)}
191_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&amp;a=dh}
192
193_httpgreenstone_ {_httppagex_(gsdl)}
194_httpdownload_ {http://www.nzdl.org/download}
195_httppublications_ {_httpdownload_/greenstone/publications}
196
197_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&amp;cl=_cgiargcl_&amp;d=_cgiargd_}
198_httpquery_ {_gwcgi_?e=_compressedoptions_&amp;a=q}
199_httpBrowse_ {_gwcgi_?e=_compressedoptions_&amp;a=br}
200
201# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
202# may occasionally be altered by the server however
203_httpdocument_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
204_httpdoc_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
205
206_httpextlink_ {_gwcgi_?e=_compressedoptions_&amp;a=extlink}
207_httpbuild_ {_gwcgi_?e=_compressedoptions_&amp;a=bc}
208
209# this is obsolete now (still used by collector). done by stylesheet instead
210_httpiconchalk_ {_httpimg_/chalk.gif}
211_widthchalk_ {2000}
212_heightchalk_ {10}
213
214_httpicondivb_ {_httpimg_/divb.gif}
215# these sizes are obsolete, now done in style sheet
216_widthdivb_ {_pagewidth_}
217_heightdivb_ {17}
218
219_httpicongsdl_ {_httpimg_/gsdl.gif}
220_widthgsdl_ {140}
221_heightgsdl_ {77}
222
223_httpiconitext_ {_httpimg_/itext.gif}
224_widthitext_ {16}
225_heightitext_ {21}
226
227_httpiconiworld_ {_httpimg_/iworld.gif}
228_widthiworld_ {16}
229_heightiworld_ {21}
230
231_httpiconiunknown_ {_httpimg_/iunknown.gif}
232_widthiunknown_ {16}
233_heightiunknown_ {21}
234
235_httpiconibtext_ {_httpimg_/ibtext.gif}
236_widthibtext_ {16}
237_heightibtext_ {21}
238
239_httpiconimpegvideo_ {_httpimg_/impegvid.gif}
240_widthimpegvideo_ {29}
241_heightimpegvideo_ {32}
242
243_httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
244_widthiqtvideo_ {29}
245_heightiqtvideo_ {32}
246
247_httpiconirmvideo_ {_httpimg_/irmvideo.gif}
248_widthirmvideo_ {29}
249_heightirmvideo_ {32}
250
251_httpiconless_ {_httpimg_/less.gif}
252_widthless_ {30}
253_heightless_ {16}
254
255_httpiconmore_ {_httpimg_/more.gif}
256_widthmore_ {30}
257_heightmore_ {16}
258
259_httpiconspacer_ {_httpimg_/spacer.gif}
260_widthspacer_ {42}
261_heightspacer_ {4}
262
263_httpicontabspace_ {_httpimg_/tabspace.gif}
264_widthtabspace_ {23}
265_heighttabspace_ {1}
266
267_httpicontspace_ {_httpimg_/bg_green.png}
268_heighttspace_ {17}
269
270_httpiconwarning_ {_httpimg_/warning.gif}
271_widthwarning_ {30}
272_heightwarning_ {29}
273
274_httpiconhhome_ {_httpimg_/h\_home.gif}
275_widthhhome_ {200}
276_heighthhome_ {57}
277
278_httpiconarrrght_ {_httpimg_/arrrght.gif}
279_widtharrrght_ {23}
280_heightarrrght_ {15}
281
282_httpiconopenbook_ {_httpimg_/openbook.gif}
283_widthopenbook_ {28}
284_heightopenbook_ {23}
285
286_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
287_widthaopenbk_ {28}
288_heightaopenbk_ {23}
289
290_httpiconopenfldr_ {_httpimg_/openfldr.gif}
291_widthopenfldr_ {23}
292_heightopenfldr_ {15}
293
294_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
295_widthaopenfdr_ {23}
296_heightaopenfdr_ {15}
297
298_httpiconbook_ {_httpimg_/book.gif}
299_widthbook_ {18}
300_heightbook_ {11}
301
302_httpiconabook_ {_httpimg_/abook.gif}
303_widthabook_ {18}
304_heightabook_ {11}
305
306_httpiconbshelf_ {_httpimg_/bshelf.gif}
307_widthbshelf_ {20}
308_heightbshelf_ {16}
309
310_httpiconabshelf_ {_httpimg_/abshelf.gif}
311_widthabshelf_ {20}
312_heightabshelf_ {16}
313
314_httpiconsmtext_ {_httpimg_/smtext.gif}
315_widthsmtext_ {23}
316_heightsmtext_ {15}
317
318_httpiconasmtext_ {_httpimg_/asmtext.gif}
319_widthasmtext_ {23}
320_heightasmtext_ {15}
321
322_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
323_widthclsdfldr_ {23}
324_heightclsdfldr_ {15}
325
326_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
327_widthaclsdfdr_ {23}
328_heightaclsdfdr_ {15}
329
330_httpiconimidi_ {_httpimg_/imidi.gif}
331_widthimidi_ {16}
332_heightimidi_ {21}
333
334_httpiconimsword_ {_httpimg_/imsword.gif}
335_widthimsword_ {26}
336_heightimsword_ {26}
337
338_httpiconimp3_ {_httpimg_/mp3icon.gif}
339_widthimp3_ {25}
340_heightimp3_ {20}
341
342_httpiconipdf_ {_httpimg_/ipdf.gif}
343_widthipdf_ {26}
344_heightipdf_ {26}
345
346_httpiconips_ {_httpimg_/ips.gif}
347_widthips_ {25}
348_heightips_ {32}
349
350_httpiconippt_ {_httpimg_/ippt.gif}
351_widthippt_ {32}
352_heightippt_ {30}
353
354_httpiconirtf_ {_httpimg_/irtf.gif}
355_widthirtf_ {29}
356_heightirtf_ {32}
357
358_httpiconixls_ {_httpimg_/iexcel.gif}
359_widthixls_ {32}
360_heightixls_ {30}
361
362#######################################################################
363# Icons
364#
365# Must not include links (so they can be used as links). If you want to
366# include links use _image
367#######################################################################
368
369_iconnext_{<img src="_httpiconmore_" align="absbottom"
370width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
371_iconnext_[v=1] {_texticonnext_}
372
373_iconprev_{<img src="_httpiconless_" align="absbottom"
374width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
375_iconprev_[v=1] {_texticonprev_}
376
377_icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
378_icontext_[v=1] {_texticontext_}
379
380_iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
381_iconworld_[v=1] {_texticonworld_}
382
383_iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
384_iconunknown_[v=1] {_texticonunknown_}
385
386_iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
387_iconblanktext_[v=1] {}
388
389_iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
390_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
391_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
392
393_icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
394_icondoc_[v=1] {_texticonmsword_}
395
396_iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
397_iconmp3_[v=1] {_texticonmp3_}
398
399_iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
400_iconmidi_[v=1] {_texticonmidi_}
401
402_iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
403_iconpdf_[v=1] {_texticonpdf_}
404
405_iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
406_iconps_[v=1] {_texticonps_}
407
408_iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
409_iconppt_[v=1] {_texticonppt_}
410
411_iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
412_iconrtf_[v=1] {_texticonrtf_}
413
414_iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
415_iconxls_[v=1] {_texticonxls_}
416
417_iconnosearch_ {<img class="icon" src="_httpimg_/nosearch.gif">}
418
419#######################################################################
420# Image links
421#
422# These might include a link (not like an _icon_
423#######################################################################
424
425
426_imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
427
428_imagegreenstone_[v=1] {_textdescrgreenstone_}
429
Note: See TracBrowser for help on using the repository browser.