source: trunk/gsdl/macros/nav_css.dm@ 11159

Last change on this file since 11159 was 11159, checked in by kjdon, 15 years ago

added a missing _ line 112

  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 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# gsimage is still needed for now, for the about/gli/docs buttons on
37# the home page. These should eventually be replaced
38_gsimage_ {<a href="_1_"><img name="_4_" class="link" src="_2_" alt="_5_" title="_5_"></a>}
39
40
41# parameters are:
42# 1. the url to go to when clicked
43# 2. the name of the tab
44# 3. alt/title explanatory text
45# 4. optional "selected" or not if it is the current tab
46_navtab_ {<span _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink"><a href="_1_" title="_3_">_2_</a>)</span>}
47
48# this is done like this because the receptionist checks if a macro called
49# _tabtext$FIELD_ is defined. This way we can make sure things are
50# undefined for nav_ns4.dm and it can fall back to using the roll-over images
51_tabtextSearch_ {_labelSearch_}
52_tabtextTitle_ {_labelTitle_}
53_tabtextCreator_ {_labelCreator_}
54_tabtextSubject_ {_labelSubject_}
55_tabtextDescription_ {_labelDescription_}
56_tabtextPublisher_ {_labelPublisher_}
57_tabtextContributor_ {_labelContributor_}
58_tabtextDate_ {_labelDate_}
59_tabtextTypes_ {_labelTypes_}
60_tabtextFormat_ {_labelFormat_}
61_tabtextIdentifier_ {_labelIdentifier_}
62_tabtextSource_ {_labelSource_}
63_tabtextLanguage_ {_labelLanguage_}
64_tabtextRelation_ {_labelRelation_}
65_tabtextCoverage_ {_labelCoverage_}
66_tabtextRights_ {_labelRights_}
67_tabtextOrg_ {_labelOrg_}
68_tabtextKeyword_ {_labelKeyword_}
69_tabtextHow_ {_labelHow_}
70_tabtextSeries_ {_labelSeries_}
71_tabtextList_ {_labelList_}
72_tabtextTo_ {_labelTo_}
73_tabtextFrom_ {_labelFrom_}
74_tabtextTopic_ {_labelTopic_}
75_tabtextBrwse_ {_labelBrwse_}
76_tabtextCollage_ {_labelCollage_}
77_tabtextbrows_ {_labelbrows_}
78_tabtextPeople_ {_labelPeople_}
79_tabtextAcronym_ {_labelAcronym_}
80_tabtextPhrase_ {_labelPhrase_}
81_tabtextArtist_ {_labelArtist_}
82_tabtextVolume_ {_labelVolume_}
83_tabtextCaptions_ {_labelCaptions_}
84_tabtextCountries_ {_labelCountries_}
85
86
87#######################################################################
88# navigation bar images
89#
90#######################################################################
91
92# the spacer image - the width of this is calculated and set from server
93_navbarspacer_ {<span style="margin-left: _widthtspace_px;"></span>}
94
95_navbarspacer_[v=1] {<br>
96}
97
98# image macros for all the classifications currently supported by
99# this receptionist.
100
101## used to make the tabs in the navigation bar
102
103# cgiargu means "static page", so no search link should be shown
104_navtabsearch_ {_If_("_cgiargu_" ne "1",_navtabsearchlink_(_1_),_iconnosearch_)}
105_navtabsearchlink_ {_navtab_(_httpquery_,_labelSearch_,_textdescrsearch_,_1_)}
106
107
108package about
109_imagethispage_ {_titleabout_}
110
111package query
112_imagethispage_ {_labelSearch_}
113
114
115package Style
116
117_imagescript_ {}
118
119_bannertitle_ {_If_(_imagethispage_,<p class="bannertitle">_imagethispage_</p>)}
120
121package home
122
123_helplink_ {_navtab_(_home:httppagehomehelp_,_linktextHELP_,_textdescrhelp_)}
124_preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
125
Note: See TracBrowser for help on using the repository browser.