source: tags/gsdl-2_70u-distribution/gsdl/macros/nav_css.dm@ 11745

Last change on this file since 11745 was 11745, checked in by (none), 18 years ago

This commit was manufactured by cvs2svn to create tag
'gsdl-2_70u-distribution'.

  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1# this file must be UTF-8 encoded
2
3# This macro file contains the definitions required for making the
4# navigation bar presentation controlled by the CSS file.
5
6#######################################################################
7# GLOBAL MACROS
8#######################################################################
9
10package Global
11
12#######################################################################
13# global navigation links
14#######################################################################
15
16_globallinks_ {_If_("_cgiargu_" ne "1",_homelink_) _helplink_ _preflink_}
17_homelink_ {_navtab_(_httppagehome_,_linktextHOME_,_textdescrhome_)}
18_helplink_ {_navtab_(_httppagehelp_,_linktextHELP_,_textdescrhelp_)}
19_preflink_ {_navtab_(_httppagepref_,_linktextPREFERENCES_,_textdescrpref_)}
20
21# The following is useful if collection specific macro. Override
22# _optnavigationbar_ to be empty if you don't want the navigation bar to
23# appear in the standard place, and then specify _navigationbar_ elsewhere
24# in a collection specific macro file(s) to be where you do want it.
25_optnavigationbar_{
26<div class="navbar">
27<p class="navbar">
28_navigationbar_
29</p>
30</div>
31}
32
33_starthighlight_ {<span class="highlight">}
34_endhighlight_ {</span>}
35
36# parameters are:
37# 1. the url to go to when clicked
38# 2. the name of the tab
39# 3. alt/title explanatory text
40# 4. optional "selected" or not if it is the current tab
41_navtab_ {<span _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink"><a href="_1_" title="_3_">_2_</a>)</span>}
42
43
44# this is done like this because the receptionist checks if a macro called
45# _tabtext$FIELD_ is defined. This way we can make sure things are
46# undefined for nav_ns4.dm and it can fall back to using the roll-over images
47_tabtextSearch_ {_labelSearch_}
48_tabtextTitle_ {_labelTitle_}
49_tabtextCreator_ {_labelCreator_}
50_tabtextSubject_ {_labelSubject_}
51_tabtextDescription_ {_labelDescription_}
52_tabtextPublisher_ {_labelPublisher_}
53_tabtextContributor_ {_labelContributor_}
54_tabtextDate_ {_labelDate_}
55_tabtextTypes_ {_labelTypes_}
56_tabtextFormat_ {_labelFormat_}
57_tabtextIdentifier_ {_labelIdentifier_}
58_tabtextSource_ {_labelSource_}
59_tabtextLanguage_ {_labelLanguage_}
60_tabtextRelation_ {_labelRelation_}
61_tabtextCoverage_ {_labelCoverage_}
62_tabtextRights_ {_labelRights_}
63_tabtextOrg_ {_labelOrg_}
64_tabtextKeyword_ {_labelKeyword_}
65_tabtextHow_ {_labelHow_}
66_tabtextSeries_ {_labelSeries_}
67_tabtextList_ {_labelList_}
68_tabtextTo_ {_labelTo_}
69_tabtextFrom_ {_labelFrom_}
70_tabtextTopic_ {_labelTopic_}
71_tabtextBrwse_ {_labelBrwse_}
72_tabtextCollage_ {_labelCollage_}
73_tabtextbrows_ {_labelbrows_}
74_tabtextPeople_ {_labelPeople_}
75_tabtextAcronym_ {_labelAcronym_}
76_tabtextPhrase_ {_labelPhrase_}
77_tabtextArtist_ {_labelArtist_}
78_tabtextVolume_ {_labelVolume_}
79_tabtextCaptions_ {_labelCaptions_}
80_tabtextCountries_ {_labelCountries_}
81
82
83#######################################################################
84# navigation bar images
85#
86#######################################################################
87
88# the spacer image - the width of this is calculated and set from server
89_navbarspacer_ {<span style="margin-left: _widthtspace_px;"></span>}
90
91_navbarspacer_[v=1] {<br>
92}
93
94# image macros for all the classifications currently supported by
95# this receptionist.
96
97## used to make the tabs in the navigation bar
98
99# cgiargu means "static page", so no search link should be shown
100_navtabsearch_ {_If_("_cgiargu_" ne "1",_navtabsearchlink_(_1_))}
101_navtabsearchlink_ {_navtab_(_httpquery_,_labelSearch_,_textdescrsearch_,_1_)}
102
103
104package about
105_imagethispage_ {_titleabout_}
106
107package query
108_imagethispage_ {_labelSearch_}
109
110
111package Style
112
113_imagescript_ {}
114
115_bannertitle_ {_If_(_imagethispage_,<p class="bannertitle"><span class="bannertitle">_imagethispage_</span></p>)}
116
117package home
118
119_preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
120
Note: See TracBrowser for help on using the repository browser.