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 |
|
---|
10 | package 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_))}
|
---|
105 | _navtabsearchlink_ {_navtab_(_httpquery_,_labelSearch_,_textdescrsearch_,_1_)}
|
---|
106 |
|
---|
107 |
|
---|
108 | package about
|
---|
109 | _imagethispage_ {_titleabout_}
|
---|
110 |
|
---|
111 | package query
|
---|
112 | _imagethispage_ {_labelSearch_}
|
---|
113 |
|
---|
114 |
|
---|
115 | package Style
|
---|
116 |
|
---|
117 | _imagescript_ {}
|
---|
118 |
|
---|
119 | _bannertitle_ {_If_(_imagethispage_,<p class="bannertitle">_imagethispage_</p>)}
|
---|
120 |
|
---|
121 | package home
|
---|
122 |
|
---|
123 | _helplink_ {_navtab_(_home:httppagehomehelp_,_linktextHELP_,_textdescrhelp_)}
|
---|
124 | _preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
|
---|
125 |
|
---|