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

Last change on this file since 11156 was 11155, checked in by jrm21, 18 years ago

removed all httpiconh* images for the titles, we now use CSS-formatted
text instead.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 14.5 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_widthhhome_ {200}
275_heighthhome_ {57}
276
277_httpiconarrrght_ {_httpimg_/arrrght.gif}
278_widtharrrght_ {23}
279_heightarrrght_ {15}
280
281_httpiconopenbook_ {_httpimg_/openbook.gif}
282_widthopenbook_ {28}
283_heightopenbook_ {23}
284
285_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
286_widthaopenbk_ {28}
287_heightaopenbk_ {23}
288
289_httpiconopenfldr_ {_httpimg_/openfldr.gif}
290_widthopenfldr_ {23}
291_heightopenfldr_ {15}
292
293_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
294_widthaopenfdr_ {23}
295_heightaopenfdr_ {15}
296
297_httpiconbook_ {_httpimg_/book.gif}
298_widthbook_ {18}
299_heightbook_ {11}
300
301_httpiconabook_ {_httpimg_/abook.gif}
302_widthabook_ {18}
303_heightabook_ {11}
304
305_httpiconbshelf_ {_httpimg_/bshelf.gif}
306_widthbshelf_ {20}
307_heightbshelf_ {16}
308
309_httpiconabshelf_ {_httpimg_/abshelf.gif}
310_widthabshelf_ {20}
311_heightabshelf_ {16}
312
313_httpiconsmtext_ {_httpimg_/smtext.gif}
314_widthsmtext_ {23}
315_heightsmtext_ {15}
316
317_httpiconasmtext_ {_httpimg_/asmtext.gif}
318_widthasmtext_ {23}
319_heightasmtext_ {15}
320
321_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
322_widthclsdfldr_ {23}
323_heightclsdfldr_ {15}
324
325_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
326_widthaclsdfdr_ {23}
327_heightaclsdfdr_ {15}
328
329_httpiconimidi_ {_httpimg_/imidi.gif}
330_widthimidi_ {16}
331_heightimidi_ {21}
332
333_httpiconimsword_ {_httpimg_/imsword.gif}
334_widthimsword_ {26}
335_heightimsword_ {26}
336
337_httpiconimp3_ {_httpimg_/imp3.gif}
338_widthimp3_ {25}
339_heightimp3_ {20}
340
341_httpiconipdf_ {_httpimg_/ipdf.gif}
342_widthipdf_ {26}
343_heightipdf_ {26}
344
345_httpiconips_ {_httpimg_/ips.gif}
346_widthips_ {25}
347_heightips_ {32}
348
349_httpiconippt_ {_httpimg_/ippt.gif}
350_widthippt_ {32}
351_heightippt_ {30}
352
353_httpiconirtf_ {_httpimg_/irtf.gif}
354_widthirtf_ {29}
355_heightirtf_ {32}
356
357_httpiconixls_ {_httpimg_/iexcel.gif}
358_widthixls_ {32}
359_heightixls_ {30}
360
361#######################################################################
362# Icons
363#
364# Must not include links (so they can be used as links). If you want to
365# include links use _image
366#######################################################################
367
368_iconnext_{<img src="_httpiconmore_" align="absbottom"
369width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
370_iconnext_[v=1] {_texticonnext_}
371
372_iconprev_{<img src="_httpiconless_" align="absbottom"
373width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
374_iconprev_[v=1] {_texticonprev_}
375
376_icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
377_icontext_[v=1] {_texticontext_}
378
379_iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
380_iconworld_[v=1] {_texticonworld_}
381
382_iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
383_iconunknown_[v=1] {_texticonunknown_}
384
385_iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
386_iconblanktext_[v=1] {}
387
388_iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
389_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
390_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
391
392_icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
393_icondoc_[v=1] {_texticonmsword_}
394
395_iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
396_iconmp3_[v=1] {_texticonmp3_}
397
398_iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
399_iconmidi_[v=1] {_texticonmidi_}
400
401_iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
402_iconpdf_[v=1] {_texticonpdf_}
403
404_iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
405_iconps_[v=1] {_texticonps_}
406
407_iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
408_iconppt_[v=1] {_texticonppt_}
409
410_iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
411_iconrtf_[v=1] {_texticonrtf_}
412
413_iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
414_iconxls_[v=1] {_texticonxls_}
415
416_iconnosearch_ {<img class="icon" src="_httpimg_/nosearch.gif">}
417
418#######################################################################
419# Image links
420#
421# These might include a link (not like an _icon_
422#######################################################################
423
424
425_imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
426
427_imagegreenstone_[v=1] {_textdescrgreenstone_}
428
Note: See TracBrowser for help on using the repository browser.