1 | #######################################################################
|
---|
2 | # GLOBAL MACROS
|
---|
3 | #######################################################################
|
---|
4 |
|
---|
5 | package Global
|
---|
6 |
|
---|
7 | ##########
|
---|
8 |
|
---|
9 | # not sure exactly what this is used for but it seems it needs to default
|
---|
10 | # to something
|
---|
11 | _optsite_ {}
|
---|
12 |
|
---|
13 |
|
---|
14 | ##########
|
---|
15 |
|
---|
16 | _htmlextra_ {}
|
---|
17 |
|
---|
18 | _starthighlight_ {<span style="background: #FFFF77">}
|
---|
19 | _endhighlight_ {</span>}
|
---|
20 |
|
---|
21 | #######################################################################
|
---|
22 | # page content
|
---|
23 | #
|
---|
24 | # these should always be overridden for each page/collection
|
---|
25 | #######################################################################
|
---|
26 |
|
---|
27 | _content_ {<p><h2>oops</h2>
|
---|
28 | _textdefaultcontent_}
|
---|
29 | _pagetitle_ {_textdefaulttitle_}
|
---|
30 | _imagethispage_ {}
|
---|
31 | _iconcollection_ {}
|
---|
32 | _collectionname_ {}
|
---|
33 |
|
---|
34 | _imagecollection_ {_If_("_iconcollection_" ne "",
|
---|
35 | <a href="_httppageabout_"><img src="_iconcollection_" border=0></a>,
|
---|
36 | _imagecollectionv_}
|
---|
37 | _imagecollectionv_ {_If_(_collectionname_,<br><br><h2><a href="_httppageabout_">_collectionname_</a></h2>)}
|
---|
38 |
|
---|
39 | #######################################################################
|
---|
40 | # these width macros are read in by the server when calculating
|
---|
41 | # width of navigation bar etc. There should be one for each
|
---|
42 | # classification that this receptionist supports, one for the
|
---|
43 | # search button, and the _pagewidth_ macro which is the total width
|
---|
44 | # of the page
|
---|
45 | #######################################################################
|
---|
46 |
|
---|
47 | # width of tabs when displaying tables of contents
|
---|
48 | _tabwidth_ {25}
|
---|
49 |
|
---|
50 | _pagewidth_ {537}
|
---|
51 | # defaultwidth is the width buttons default to if not included in this list
|
---|
52 | _defaultwidth_ {87}
|
---|
53 | _searchwidth_ {_widthtsrchx_}
|
---|
54 | _Titlewidth_ {_widthttitlx_}
|
---|
55 |
|
---|
56 | #######################################################################
|
---|
57 | # Macros whose values are set from within the server at runtime. These
|
---|
58 | # are here only for reference and to set default values if required.
|
---|
59 | #######################################################################
|
---|
60 |
|
---|
61 | # _win32_ will be set to 1 if we're on windows
|
---|
62 | _win32_ {}
|
---|
63 |
|
---|
64 | _navigationbar_ {}
|
---|
65 | _widthtspace_ {2}
|
---|
66 |
|
---|
67 | # all cgi args are set as _cgiargX_ macros - those I've put here
|
---|
68 | # are those that need to default to something
|
---|
69 | _cgiargd_ {}
|
---|
70 | _cgiargcl_ {}
|
---|
71 |
|
---|
72 | # set from within the query action
|
---|
73 | _hselection_ {}
|
---|
74 | _jselection_ {}
|
---|
75 | _nselection_ {}
|
---|
76 | #granularity selection for mgpp
|
---|
77 | _gselection_ {}
|
---|
78 |
|
---|
79 | #######################################################################
|
---|
80 | # flashy rollover image macro
|
---|
81 | #
|
---|
82 | #######################################################################
|
---|
83 |
|
---|
84 | # imagescript should always be included in html header if there are
|
---|
85 | # flashy images on the page
|
---|
86 | _imagescript_ {
|
---|
87 | var loaded = new Array();
|
---|
88 | function gbutton (image, onimage) \{
|
---|
89 | if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) \{
|
---|
90 | s = image.src;
|
---|
91 | image.out = new Image();
|
---|
92 | image.out.src = s;
|
---|
93 | image.over = new Image();
|
---|
94 | image.over.src = onimage;
|
---|
95 | loaded[image.name] = image;
|
---|
96 | \}
|
---|
97 | \}
|
---|
98 |
|
---|
99 | function roll (imagename, over) \{
|
---|
100 | if (document.images) \{
|
---|
101 | if (over) i = "over";
|
---|
102 | else i = "out";
|
---|
103 | image = loaded[imagename];
|
---|
104 | if (image) image.src = eval("image."+i+".src");
|
---|
105 | \}
|
---|
106 | \}
|
---|
107 | }
|
---|
108 |
|
---|
109 | # gsimage should be used to define an instance of a flashy image
|
---|
110 | # parameters are:
|
---|
111 | # 1. the url to go to when the button is clicked
|
---|
112 | # 2. the url of the "off" image
|
---|
113 | # 3. the url of the "on" image
|
---|
114 | # 4. the name of the image (must be unique)
|
---|
115 | # 5. image alt text
|
---|
116 | _gsimage_ {<a href="_1_" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);"><img
|
---|
117 | name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>}
|
---|
118 |
|
---|
119 | #######################################################################
|
---|
120 | # navigation bar images
|
---|
121 | #
|
---|
122 | #######################################################################
|
---|
123 |
|
---|
124 | # the spacer image - the width of this is set from server
|
---|
125 | _imagespacer_ {<img
|
---|
126 | src="_httpicontspace_" width="_widthtspace_" height="_heighttspace_">}
|
---|
127 |
|
---|
128 | # image macros for all the classifications currently supported by
|
---|
129 | # this receptionist.
|
---|
130 |
|
---|
131 | _imagesearch_ {_If_("_cgiargu_" ne "1",_imagesearch2_,_iconnosearch_)}
|
---|
132 | _imagesearch2_ {_gsimage_(_httpquery_,_httpicontsrchof_,_httpicontsrchon_,srch,_textimagesearch_)}
|
---|
133 | _imageTitle_ {_gsimage_(_httpbrowseTitle_,_httpiconttitlof_,_httpiconttitlon_,titles,_textimageTitle_)}
|
---|
134 |
|
---|
135 | #######################################################################
|
---|
136 | # java images/scripts
|
---|
137 | #######################################################################
|
---|
138 |
|
---|
139 | # the _javalinks_ macros are the flashy image links at the top right of
|
---|
140 | # the page.
|
---|
141 |
|
---|
142 | _javalinks_ {_imagehome_}
|
---|
143 |
|
---|
144 |
|
---|
145 | #######################################################################
|
---|
146 | # general web macros
|
---|
147 | #######################################################################
|
---|
148 |
|
---|
149 | _mailaddr_ {[email protected]}
|
---|
150 |
|
---|
151 | _gsdltop_ {_top}
|
---|
152 |
|
---|
153 | #######################################################################
|
---|
154 | # http macros
|
---|
155 | #
|
---|
156 | # These contain the url without any quotes
|
---|
157 | #######################################################################
|
---|
158 |
|
---|
159 | _httpcollimg_ {_httpcollection_/index/assoc}
|
---|
160 | _httpdocimg_ {_httpcollimg_/_thisOID_}
|
---|
161 |
|
---|
162 | _httpcollection_ {_httpprefix_/collect/_cgiargc_}
|
---|
163 |
|
---|
164 | _httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
|
---|
165 | _httppageabout_ {_httppagex_(about)}
|
---|
166 | _httppagehome_ {_httppageabout_}
|
---|
167 |
|
---|
168 | _httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
|
---|
169 | _httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
|
---|
170 | _httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
|
---|
171 |
|
---|
172 | # _httpdoc_ is the same as _httpdocument_ - _httpdocument_
|
---|
173 | # may occasionally be altered by the server however
|
---|
174 | _httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
175 | _httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
176 |
|
---|
177 | _httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
|
---|
178 | _httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
|
---|
179 |
|
---|
180 | _httpiconchalk_ {_httpimg_/chalk.gif}
|
---|
181 | _widthchalk_ {2000}
|
---|
182 | _heightchalk_ {10}
|
---|
183 |
|
---|
184 | _httpicondivb_ {_httpimg_/divb.gif}
|
---|
185 | _widthdivb_ {_pagewidth_}
|
---|
186 | _heightdivb_ {17}
|
---|
187 |
|
---|
188 | _httpicongsdl_ {_httpimg_/gsdl.gif}
|
---|
189 | _widthgsdl_ {140}
|
---|
190 | _heightgsdl_ {77}
|
---|
191 |
|
---|
192 | _httpiconitext_ {_httpimg_/itext.gif}
|
---|
193 | _widthitext_ {16}
|
---|
194 | _heightitext_ {21}
|
---|
195 |
|
---|
196 | _httpiconibtext_ {_httpimg_/ibtext.gif}
|
---|
197 | _widthibtext_ {16}
|
---|
198 | _heightibtext_ {21}
|
---|
199 |
|
---|
200 | _httpiconless_ {_httpimg_/less.gif}
|
---|
201 | _widthless_ {30}
|
---|
202 | _heightless_ {16}
|
---|
203 |
|
---|
204 | _httpiconmore_ {_httpimg_/more.gif}
|
---|
205 | _widthmore_ {30}
|
---|
206 | _heightmore_ {16}
|
---|
207 |
|
---|
208 | _httpiconspacer_ {_httpimg_/spacer.gif}
|
---|
209 | _widthspacer_ {42}
|
---|
210 | _heightspacer_ {4}
|
---|
211 |
|
---|
212 | _httpicontabspace_ {_httpimg_/tabspace.gif}
|
---|
213 | _widthtabspace_ {23}
|
---|
214 | _heighttabspace_ {1}
|
---|
215 |
|
---|
216 | _httpicontspace_ {_httpimg_/tspace.gif}
|
---|
217 | _heighttspace_ {17}
|
---|
218 |
|
---|
219 | _httpiconhhome_ {_httpimg_/h\_home.gif}
|
---|
220 | _widthhhome_ {200}
|
---|
221 | _heighthhome_ {57}
|
---|
222 |
|
---|
223 | _httpiconarrrght_ {_httpimg_/arrrght.gif}
|
---|
224 | _widtharrrght_ {23}
|
---|
225 | _heightarrrght_ {15}
|
---|
226 |
|
---|
227 | _httpiconopenbook_ {_httpimg_/openbook.gif}
|
---|
228 | _widthopenbook_ {28}
|
---|
229 | _heightopenbook_ {23}
|
---|
230 |
|
---|
231 | _httpiconaopenbk_ {_httpimg_/aopenbk.gif}
|
---|
232 | _widthaopenbk_ {28}
|
---|
233 | _heightaopenbk_ {23}
|
---|
234 |
|
---|
235 | _httpiconopenfldr_ {_httpimg_/openfldr.gif}
|
---|
236 | _widthopenfldr_ {23}
|
---|
237 | _heightopenfldr_ {15}
|
---|
238 |
|
---|
239 | _httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
|
---|
240 | _widthaopenfdr_ {23}
|
---|
241 | _heightaopenfdr_ {15}
|
---|
242 |
|
---|
243 | _httpiconbook_ {_httpimg_/book.gif}
|
---|
244 | _widthbook_ {18}
|
---|
245 | _heightbook_ {11}
|
---|
246 |
|
---|
247 | _httpiconabook_ {_httpimg_/abook.gif}
|
---|
248 | _widthabook_ {18}
|
---|
249 | _heightabook_ {11}
|
---|
250 |
|
---|
251 | _httpiconbshelf_ {_httpimg_/bshelf.gif}
|
---|
252 | _widthbshelf_ {20}
|
---|
253 | _heightbshelf_ {16}
|
---|
254 |
|
---|
255 | _httpiconabshelf_ {_httpimg_/abshelf.gif}
|
---|
256 | _widthabshelf_ {20}
|
---|
257 | _heightabshelf_ {16}
|
---|
258 |
|
---|
259 | _httpiconsmtext_ {_httpimg_/smtext.gif}
|
---|
260 | _widthsmtext_ {23}
|
---|
261 | _heightsmtext_ {15}
|
---|
262 |
|
---|
263 | _httpiconasmtext_ {_httpimg_/asmtext.gif}
|
---|
264 | _widthasmtext_ {23}
|
---|
265 | _heightasmtext_ {15}
|
---|
266 |
|
---|
267 | _httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
|
---|
268 | _widthclsdfldr_ {23}
|
---|
269 | _heightclsdfldr_ {15}
|
---|
270 |
|
---|
271 | _httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
|
---|
272 | _widthaclsdfdr_ {23}
|
---|
273 | _heightaclsdfdr_ {15}
|
---|
274 |
|
---|
275 | _httpiconipdf_ {_httpimg_/ipdf.gif}
|
---|
276 | _widthipdf_ {26}
|
---|
277 | _heightipdf_ {26}
|
---|
278 |
|
---|
279 | #######################################################################
|
---|
280 | # Icons
|
---|
281 | #
|
---|
282 | # Must not include links (so they can be used as links). If you want to
|
---|
283 | # include links use _image
|
---|
284 | #######################################################################
|
---|
285 |
|
---|
286 | _iconnext_{<img src="_httpiconmore_" align=absbottom
|
---|
287 | width=_widthmore_ height=_heightmore_ border=0 alt="_texticonnext_">}
|
---|
288 |
|
---|
289 | _iconprev_{<img src="_httpiconless_" align=absbottom
|
---|
290 | width=_widthless_ height=_heightless_ border=0 alt="_texticonprev_">}
|
---|
291 |
|
---|
292 | _icontabsearchgreen_ {<img
|
---|
293 | src="_httpicontsrchgr_" width=_widthtsrchx_ border=0>}
|
---|
294 |
|
---|
295 | _icontabTitlegreen_ {<img
|
---|
296 | src="_httpiconttitlgr_" width=_widthttitlx_ border=0>}
|
---|
297 |
|
---|
298 | _iconblankbar_ {<center><img src="_httpicondivb_" width=_widthdivb_ height=_heightdivb_></center>}
|
---|
299 |
|
---|
300 | _icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
|
---|
301 |
|
---|
302 | _iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
|
---|
303 |
|
---|
304 | _iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_">}
|
---|
305 |
|
---|
306 | _icondoc_ {<img border=0 align=absmiddle src="_httpiconimsword_" width=_widthimsword_ height=_heightimsword_ alt="_texticonmsword_">}
|
---|
307 |
|
---|
308 | _iconpdf_ {<img border=0 align=absmiddle src="_httpiconipdf_" width=_widthipdf_ height=_heightipdf_ alt="_texticonpdf_">}
|
---|
309 |
|
---|
310 | #######################################################################
|
---|
311 | # Image links
|
---|
312 | #
|
---|
313 | # These might include a link (not like an _icon_
|
---|
314 | #######################################################################
|
---|
315 |
|
---|
316 | _imagehome_ {_If_("_cgiargu_" ne "1",_imagehome2_)}
|
---|
317 | _imagehome2_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
|
---|