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

Last change on this file since 11259 was 11198, checked in by kjdon, 18 years ago

don't use iconnosearch in standard greenstone any more

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 14.5 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_}
42_imagecollectionv_ {_If_(_collectionname_,<br><br><h2><a href="_httppageabout_">_collectionname_</a></h2>)}
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
[218]68_navigationbar_ {}
[258]69_widthtspace_ {2}
[128]70
[7502]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
[11117]76# _optnavigationbar_ is now defined in nav_css/nav_ns4 macro files
77
[283]78# all cgi args are set as _cgiargX_ macros - those I've put here
79# are those that need to default to something
[276]80_cgiargd_ {}
[283]81_cgiargcl_ {}
[276]82
83# set from within the query action
84_hselection_ {}
85_jselection_ {}
86_nselection_ {}
[4781]87#level (granularity) selection for mgpp
[1120]88_gselection_ {}
[4781]89#level selection for form searching - dont have paragraph
90_gformselection_ {_gselection_}
[4758]91_fqfselection_ {}
[1419]92
[11117]93# this is used for the tabs (eg for search/classifiers) on the navigation bar
[1419]94# parameters are:
[10872]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
[11117]100# _navtab_ is defined in the nav_css/nav_ns4 macro files
[10872]101
102
[1419]103#######################################################################
[258]104# navigation bar images
[128]105#
[148]106#######################################################################
[128]107
[10872]108# the spacer image - the width of this is calculated and set from server
[11117]109# _navbarspacer_ set in nav_css/ns4
[10872]110
[218]111# image macros for all the classifications currently supported by
[1263]112# this receptionist.
[218]113
[10872]114## used to make the tabs in the navigation bar
[8106]115
[11117]116# _navtabsearch_ defined in nav_css/ns4 macro files
[10872]117
[8106]118# Dublin Core Metadata Element Set, Version 1.1
119
[10872]120_navtabTitle_ {_navtab_(_httpbrowseTitle_,titles,_textdescrTitle_,_1_)}
121_navtabCreator_ {_navtab_(_httpbrowseCreator_,creators,_textdescrCreator_,_1_)}
[11117]122_navtabSubject_ {_navtab_(_httpbrowseSubject_,_labelSubject_,_textdescrSubject_,_1_)}
[10872]123_navtabDescription_ {_navtab_(_httpbrowseDescription_,,_1_)}
124_navtabPublisher_ {_navtab_(_httpbrowsePublisher_,tabtepublishers,_textdescrPublisher_,_1_)}
[11117]125_navtabContributor_ {_navtab_(_httpbrowseContributor_,_labelContributor_,_textdescrContributor_,_1_)}
126_navtabDate_ {_navtab_(_httpbrowseDate_,_labelDate_,_textdescrDate_,_1_)}
[10872]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_)}
[128]135
[10872]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
[148]153#######################################################################
[10872]154# global navigation links
[148]155#######################################################################
[128]156
[11117]157# _globallinks_ is now defined in nav_css and nav_ns4 macro files
[128]158
[148]159#######################################################################
160# general web macros
161#######################################################################
162
[1275]163_mailaddr_ {[email protected]}
[128]164
[876]165_gsdltop_ {_top}
[128]166
[148]167#######################################################################
168# http macros
169#
[128]170# These contain the url without any quotes
[148]171#######################################################################
[128]172
[8910]173_httpcimages_ {_httpcollection_/images}
[876]174_httpcollimg_ {_httpcollection_/index/assoc}
[1019]175_httpdocimg_ {_httpcollimg_/_thisOID_}
[876]176
[1416]177_httpcollection_ {_httpprefix_/collect/_cgiargc_}
[128]178
[10872]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}
[6723]183_httppagegli_ {_httppagex_(gli)}
[148]184_httppageabout_ {_httppagex_(about)}
[548]185#_httppagehome_ {_httppagex_(home)}
[10872]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_}
[128]188_httppagehelp_ {_httppagex_(help)}
189_httppagepref_ {_httppagex_(preferences)}
[2562]190_httppagedocs_ {_httppagex_(docs)}
[10872]191_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&amp;a=dh}
[148]192
[128]193_httpgreenstone_ {_httppagex_(gsdl)}
[1107]194_httpdownload_ {http://www.nzdl.org/download}
[1111]195_httppublications_ {_httpdownload_/greenstone/publications}
[128]196
[10872]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}
[876]200
201# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
202# may occasionally be altered by the server however
[10872]203_httpdocument_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
204_httpdoc_ {_gwcgi_?e=_compressedoptions_&amp;a=d}
[876]205
[10872]206_httpextlink_ {_gwcgi_?e=_compressedoptions_&amp;a=extlink}
207_httpbuild_ {_gwcgi_?e=_compressedoptions_&amp;a=bc}
[128]208
[10872]209# this is obsolete now (still used by collector). done by stylesheet instead
[129]210_httpiconchalk_ {_httpimg_/chalk.gif}
211_widthchalk_ {2000}
212_heightchalk_ {10}
213
214_httpicondivb_ {_httpimg_/divb.gif}
[10872]215# these sizes are obsolete, now done in style sheet
[218]216_widthdivb_ {_pagewidth_}
[129]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
[9332]227_httpiconiworld_ {_httpimg_/iworld.gif}
228_widthiworld_ {16}
229_heightiworld_ {21}
230
[7502]231_httpiconiunknown_ {_httpimg_/iunknown.gif}
232_widthiunknown_ {16}
233_heightiunknown_ {21}
234
[548]235_httpiconibtext_ {_httpimg_/ibtext.gif}
236_widthibtext_ {16}
237_heightibtext_ {21}
238
[2042]239_httpiconimpegvideo_ {_httpimg_/impegvid.gif}
[964]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
[129]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}
[454]265_heighttabspace_ {1}
[129]266
[10872]267_httpicontspace_ {_httpimg_/bg_green.png}
[148]268_heighttspace_ {17}
269
[129]270_httpiconwarning_ {_httpimg_/warning.gif}
271_widthwarning_ {30}
272_heightwarning_ {29}
273
274_widthhhome_ {200}
275_heighthhome_ {57}
276
[148]277_httpiconarrrght_ {_httpimg_/arrrght.gif}
278_widtharrrght_ {23}
279_heightarrrght_ {15}
[129]280
[454]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
[148]297_httpiconbook_ {_httpimg_/book.gif}
298_widthbook_ {18}
299_heightbook_ {11}
[129]300
[454]301_httpiconabook_ {_httpimg_/abook.gif}
302_widthabook_ {18}
303_heightabook_ {11}
304
[148]305_httpiconbshelf_ {_httpimg_/bshelf.gif}
306_widthbshelf_ {20}
307_heightbshelf_ {16}
[129]308
[454]309_httpiconabshelf_ {_httpimg_/abshelf.gif}
310_widthabshelf_ {20}
311_heightabshelf_ {16}
[129]312
[454]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
[2992]329_httpiconimidi_ {_httpimg_/imidi.gif}
330_widthimidi_ {16}
331_heightimidi_ {21}
332
333_httpiconimsword_ {_httpimg_/imsword.gif}
334_widthimsword_ {26}
335_heightimsword_ {26}
336
[11143]337_httpiconimp3_ {_httpimg_/imp3.gif}
[8917]338_widthimp3_ {25}
339_heightimp3_ {20}
340
[1414]341_httpiconipdf_ {_httpimg_/ipdf.gif}
342_widthipdf_ {26}
343_heightipdf_ {26}
[454]344
[2014]345_httpiconips_ {_httpimg_/ips.gif}
346_widthips_ {25}
347_heightips_ {32}
348
[2982]349_httpiconippt_ {_httpimg_/ippt.gif}
350_widthippt_ {32}
351_heightippt_ {30}
352
[2569]353_httpiconirtf_ {_httpimg_/irtf.gif}
354_widthirtf_ {29}
355_heightirtf_ {32}
356
[2992]357_httpiconixls_ {_httpimg_/iexcel.gif}
358_widthixls_ {32}
359_heightixls_ {30}
[1414]360
[148]361#######################################################################
362# Icons
363#
[128]364# Must not include links (so they can be used as links). If you want to
365# include links use _image
[148]366#######################################################################
[128]367
[10597]368_iconnext_{<img src="_httpiconmore_" align="absbottom"
369width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
[548]370_iconnext_[v=1] {_texticonnext_}
[128]371
[10597]372_iconprev_{<img src="_httpiconless_" align="absbottom"
373width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
[548]374_iconprev_[v=1] {_texticonprev_}
[128]375
[10872]376_icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
[548]377_icontext_[v=1] {_texticontext_}
[128]378
[10872]379_iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
[9332]380_iconworld_[v=1] {_texticonworld_}
381
[10872]382_iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
[7502]383_iconunknown_[v=1] {_texticonunknown_}
384
[10872]385_iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
[548]386_iconblanktext_[v=1] {}
[128]387
[10872]388_iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
[548]389_iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
[876]390_iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
[128]391
[10872]392_icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
[10383]393_icondoc_[v=1] {_texticonmsword_}
[548]394
[10872]395_iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
[8917]396_iconmp3_[v=1] {_texticonmp3_}
397
[10872]398_iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
[2992]399_iconmidi_[v=1] {_texticonmidi_}
400
[10872]401_iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
[1414]402_iconpdf_[v=1] {_texticonpdf_}
403
[10872]404_iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
[2014]405_iconps_[v=1] {_texticonps_}
406
[10872]407_iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
[2982]408_iconppt_[v=1] {_texticonppt_}
409
[10872]410_iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
[2569]411_iconrtf_[v=1] {_texticonrtf_}
412
[10872]413_iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
[2992]414_iconxls_[v=1] {_texticonxls_}
[1444]415
[148]416#######################################################################
417# Image links
418#
[128]419# These might include a link (not like an _icon_
[148]420#######################################################################
[128]421
422
[10872]423_imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
[128]424
[10872]425_imagegreenstone_[v=1] {_textdescrgreenstone_}
[129]426
Note: See TracBrowser for help on using the repository browser.