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

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

homehelp is no longer - just uses the standard help pages (without the 'how to find info in this collection' bit)

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