1 | # this file must be UTF-8 encoded
|
---|
2 | #######################################################################
|
---|
3 | # GLOBAL MACROS
|
---|
4 | #######################################################################
|
---|
5 |
|
---|
6 | package Global
|
---|
7 |
|
---|
8 | ##########
|
---|
9 |
|
---|
10 | _optsite_ {}
|
---|
11 |
|
---|
12 |
|
---|
13 | ##########
|
---|
14 |
|
---|
15 | _htmlextra_ {}
|
---|
16 |
|
---|
17 | # now defined in nav_css/nav_ns4 macro files
|
---|
18 | #_starthighlight_ {<b><u>}
|
---|
19 | #_endhighlight_ {</u></b>}
|
---|
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 |
|
---|
35 | package Global
|
---|
36 |
|
---|
37 |
|
---|
38 | _imagecollection_ {_If_("_iconcollection_" ne "",
|
---|
39 | <a href="_httppageabout_"><img class="icon" src="_iconcollection_" alt="_collectionname_" title="_collectionname_"></a>,
|
---|
40 | _imagecollectionv_)}
|
---|
41 | _imagecollection_ [v=1] {_imagecollectionv_}
|
---|
42 | _imagecollectionv_ {_If_(_collectionname_,<p class="collectiontitle"><a class="collectiontitle" href="_httppageabout_">_collectionname_</a></p>)}
|
---|
43 |
|
---|
44 | #######################################################################
|
---|
45 | # these width macros are read in by the server when calculating
|
---|
46 | # width of navigation bar etc. There should be one for each
|
---|
47 | # classification that this receptionist supports, one for the
|
---|
48 | # search button, and the _pagewidth_ macro which is the total width
|
---|
49 | # of the page
|
---|
50 | #######################################################################
|
---|
51 |
|
---|
52 | # width of tabs when displaying tables of contents
|
---|
53 | _tabwidth_ {25}
|
---|
54 |
|
---|
55 | _pagewidth_ {537}
|
---|
56 | # defaultwidth is the width buttons default to if not included in this list
|
---|
57 | _defaultwidth_ {87}
|
---|
58 | _searchwidth_ {_widthtsrchx_}
|
---|
59 |
|
---|
60 | #######################################################################
|
---|
61 | # Macros whose values are set from within the server at runtime. These
|
---|
62 | # are here only for reference and to set default values if required.
|
---|
63 | #######################################################################
|
---|
64 |
|
---|
65 | # _win32_ will be set to 1 if we're on windows
|
---|
66 | _win32_ {}
|
---|
67 |
|
---|
68 | # all cgi args are set as _cgiargX_ macros - those I've put here
|
---|
69 | # are those that need to default to something
|
---|
70 | _cgiargd_ {}
|
---|
71 | _cgiargcl_ {}
|
---|
72 |
|
---|
73 | # set from within the query action
|
---|
74 | _hselection_ {}
|
---|
75 | _jselection_ {}
|
---|
76 | _nselection_ {}
|
---|
77 | #level (granularity) selection for mgpp
|
---|
78 | _gselection_ {}
|
---|
79 | #level selection for form searching - dont have paragraph
|
---|
80 | _gformselection_ {_gselection_}
|
---|
81 | _fqfselection_ {}
|
---|
82 | # sort field for lucene
|
---|
83 | _sfselection_ {}
|
---|
84 |
|
---|
85 | #######################################################################
|
---|
86 | # navigation bar
|
---|
87 | #
|
---|
88 | #######################################################################
|
---|
89 | # Most of the stuff to do with navigation bars is now defined in nav_css.dm
|
---|
90 | # and nav_ns4.dm
|
---|
91 |
|
---|
92 | _dynamicclassifiernavbarentries_ {}
|
---|
93 | _navigationbar_ {}
|
---|
94 | _widthtspace_ {2}
|
---|
95 |
|
---|
96 | _navlinktitle_ {_If_("_label_1__" eq "\_label_1_\_",_1_,_label_1__)}
|
---|
97 | _navlinkalt_ {_If_("_textdescr_1__" ne "\_textdescr_1_\_", _textdescr_1__, _If_("_text_1__" eq "\_text_1_\_",_textdescrdefault_(_1_),_textdescrdefault_(_text_1__)) }
|
---|
98 |
|
---|
99 | #######################################################################
|
---|
100 | # global navigation links
|
---|
101 | #######################################################################
|
---|
102 |
|
---|
103 | # _globallinks_ is now defined in nav_css and nav_ns4 macro files
|
---|
104 |
|
---|
105 | #######################################################################
|
---|
106 | # general web macros
|
---|
107 | #######################################################################
|
---|
108 |
|
---|
109 | _gsdltop_ {_top}
|
---|
110 |
|
---|
111 | #######################################################################
|
---|
112 | # http macros
|
---|
113 | #
|
---|
114 | # These contain the url without any quotes
|
---|
115 | #######################################################################
|
---|
116 |
|
---|
117 | # _httpprefix_ and _httpweb_ defined by the server
|
---|
118 | _httpimages_ {_httpweb_/images}
|
---|
119 | _httpscript_ {_httpweb_/script}
|
---|
120 | _httpstyle_ {_httpweb_/style}
|
---|
121 | _httpflash_ {_httpweb_/flash}
|
---|
122 | _httpjava_ {_httpweb_/java}
|
---|
123 |
|
---|
124 | # old macros, for backwards compatibility
|
---|
125 | _httpimg_ {_httpimages_}
|
---|
126 |
|
---|
127 | # collection versions of the same directories
|
---|
128 | _httpcimages_ {_httpcollection_/images}
|
---|
129 | _httpcscript_ {_httpcollection_/script}
|
---|
130 | _httpcstyle_ {_httpcollection_/style}
|
---|
131 | _httpcflash_ {_httpcollection_/flash}
|
---|
132 | _httpcjava_ {_httpcollection_/java}
|
---|
133 |
|
---|
134 | _httpassocdir_ {_httpcollection_/index/assoc}
|
---|
135 | _httpdocimg_ {_httpassocdir_/_thisOID_}
|
---|
136 | # old macros, for backwards compatibility
|
---|
137 | _httpcollimg_ {_httpcollection_/index/assoc}
|
---|
138 |
|
---|
139 | _httpcollection_ {_httpprefix_/collect/_cgiargc_}
|
---|
140 |
|
---|
141 | _httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
|
---|
142 | _httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status&p=frameset}
|
---|
143 | _httppagetranslator_ {_gwcgi_?e=_compressedoptions_&a=gti&p=home}
|
---|
144 | _httppagecollector_ {_gwcgi_?e=_compressedoptions_&a=collector&p=intro}
|
---|
145 | _httppagedepositor_ {_gwcgi_?e=_compressedoptions_&a=depositor&p=select}
|
---|
146 | _httppagegli_ {_httppagex_(gli)}
|
---|
147 | _httppageabout_ {_httppagex_(about)}
|
---|
148 | #_httppagehome_ {_httppagex_(home)}
|
---|
149 | ###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&p=home}
|
---|
150 | _httppagehome_ {_gwcgi_?a=p&p=home&l=_cgiargl_&w=_cgiargw_}
|
---|
151 | _httppagehelp_ {_httppagex_(help)}
|
---|
152 | _httppagepref_ {_httppagex_(preferences)}
|
---|
153 | _httppagedocs_ {_httppagex_(docs)}
|
---|
154 | _httpclearhistory_ {_gwcgi_?e=_compressedoptions_&a=dh}
|
---|
155 |
|
---|
156 | _httpgreenstone_ {_httppagex_(gsdl)}
|
---|
157 | _httpdownload_ {http://www.nzdl.org/download}
|
---|
158 | _httppublications_ {_httpdownload_/greenstone/publications}
|
---|
159 |
|
---|
160 | _httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
|
---|
161 | _httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
|
---|
162 | _httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
|
---|
163 |
|
---|
164 | # _httpdoc_ is the same as _httpdocument_ - _httpdocument_
|
---|
165 | # may occasionally be altered by the server however
|
---|
166 | _httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
167 | _httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
168 |
|
---|
169 | _httpdocumenthandle_ {_httpprefix_handle/_1_/_2_}
|
---|
170 |
|
---|
171 | _httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
|
---|
172 | _httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
|
---|
173 |
|
---|
174 | # this is obsolete now (still used by collector). done by stylesheet instead
|
---|
175 | _httpiconchalk_ {_httpimg_/chalk.gif}
|
---|
176 | _widthchalk_ {2000}
|
---|
177 | _heightchalk_ {10}
|
---|
178 |
|
---|
179 | _httpicondivb_ {_httpimg_/divb.gif}
|
---|
180 | # these sizes are obsolete, now done in style sheet
|
---|
181 | _widthdivb_ {_pagewidth_}
|
---|
182 | _heightdivb_ {17}
|
---|
183 |
|
---|
184 | _httpicongsdl_ {_httpimg_/gsdl.gif}
|
---|
185 | _widthgsdl_ {140}
|
---|
186 | _heightgsdl_ {77}
|
---|
187 |
|
---|
188 | _httpiconitext_ {_httpimg_/itext.gif}
|
---|
189 | _widthitext_ {16}
|
---|
190 | _heightitext_ {21}
|
---|
191 |
|
---|
192 | _httpiconiworld_ {_httpimg_/iworld.gif}
|
---|
193 | _widthiworld_ {16}
|
---|
194 | _heightiworld_ {21}
|
---|
195 |
|
---|
196 | _httpiconiunknown_ {_httpimg_/iunknown.gif}
|
---|
197 | _widthiunknown_ {16}
|
---|
198 | _heightiunknown_ {21}
|
---|
199 |
|
---|
200 | _httpiconibtext_ {_httpimg_/ibtext.gif}
|
---|
201 | _widthibtext_ {16}
|
---|
202 | _heightibtext_ {21}
|
---|
203 |
|
---|
204 | _httpiconimpegvideo_ {_httpimg_/impegvid.gif}
|
---|
205 | _widthimpegvideo_ {29}
|
---|
206 | _heightimpegvideo_ {32}
|
---|
207 |
|
---|
208 | _httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
|
---|
209 | _widthiqtvideo_ {29}
|
---|
210 | _heightiqtvideo_ {32}
|
---|
211 |
|
---|
212 | _httpiconirmvideo_ {_httpimg_/irmvideo.gif}
|
---|
213 | _widthirmvideo_ {29}
|
---|
214 | _heightirmvideo_ {32}
|
---|
215 |
|
---|
216 | _httpiconless_ {_httpimg_/less.gif}
|
---|
217 | _widthless_ {30}
|
---|
218 | _heightless_ {16}
|
---|
219 |
|
---|
220 | _httpiconmore_ {_httpimg_/more.gif}
|
---|
221 | _widthmore_ {30}
|
---|
222 | _heightmore_ {16}
|
---|
223 |
|
---|
224 | _httpiconspacer_ {_httpimg_/spacer.gif}
|
---|
225 | _widthspacer_ {42}
|
---|
226 | _heightspacer_ {4}
|
---|
227 |
|
---|
228 | _httpicontabspace_ {_httpimg_/tabspace.gif}
|
---|
229 | _widthtabspace_ {23}
|
---|
230 | _heighttabspace_ {1}
|
---|
231 |
|
---|
232 | _httpicontspace_ {_httpimg_/bg_green.png}
|
---|
233 | _heighttspace_ {17}
|
---|
234 |
|
---|
235 | _httpiconwarning_ {_httpimg_/warning.gif}
|
---|
236 | _widthwarning_ {30}
|
---|
237 | _heightwarning_ {29}
|
---|
238 |
|
---|
239 | _widthhhome_ {200}
|
---|
240 | _heighthhome_ {57}
|
---|
241 |
|
---|
242 | _httpiconarrrght_ {_httpimg_/arrrght.gif}
|
---|
243 | _widtharrrght_ {23}
|
---|
244 | _heightarrrght_ {15}
|
---|
245 |
|
---|
246 | _httpiconopenbook_ {_httpimg_/openbook.gif}
|
---|
247 | _widthopenbook_ {28}
|
---|
248 | _heightopenbook_ {23}
|
---|
249 |
|
---|
250 | _httpiconaopenbk_ {_httpimg_/aopenbk.gif}
|
---|
251 | _widthaopenbk_ {28}
|
---|
252 | _heightaopenbk_ {23}
|
---|
253 |
|
---|
254 | _httpiconopenfldr_ {_httpimg_/openfldr.gif}
|
---|
255 | _widthopenfldr_ {23}
|
---|
256 | _heightopenfldr_ {15}
|
---|
257 |
|
---|
258 | _httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
|
---|
259 | _widthaopenfdr_ {23}
|
---|
260 | _heightaopenfdr_ {15}
|
---|
261 |
|
---|
262 | _httpiconbook_ {_httpimg_/book.gif}
|
---|
263 | _widthbook_ {18}
|
---|
264 | _heightbook_ {11}
|
---|
265 |
|
---|
266 | _httpiconabook_ {_httpimg_/abook.gif}
|
---|
267 | _widthabook_ {18}
|
---|
268 | _heightabook_ {11}
|
---|
269 |
|
---|
270 | _httpiconbshelf_ {_httpimg_/bshelf.gif}
|
---|
271 | _widthbshelf_ {20}
|
---|
272 | _heightbshelf_ {16}
|
---|
273 |
|
---|
274 | _httpiconabshelf_ {_httpimg_/abshelf.gif}
|
---|
275 | _widthabshelf_ {20}
|
---|
276 | _heightabshelf_ {16}
|
---|
277 |
|
---|
278 | _httpiconsmtext_ {_httpimg_/smtext.gif}
|
---|
279 | _widthsmtext_ {23}
|
---|
280 | _heightsmtext_ {15}
|
---|
281 |
|
---|
282 | _httpiconasmtext_ {_httpimg_/asmtext.gif}
|
---|
283 | _widthasmtext_ {23}
|
---|
284 | _heightasmtext_ {15}
|
---|
285 |
|
---|
286 | _httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
|
---|
287 | _widthclsdfldr_ {23}
|
---|
288 | _heightclsdfldr_ {15}
|
---|
289 |
|
---|
290 | _httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
|
---|
291 | _widthaclsdfdr_ {23}
|
---|
292 | _heightaclsdfdr_ {15}
|
---|
293 |
|
---|
294 | _httpiconimidi_ {_httpimg_/imidi.gif}
|
---|
295 | _widthimidi_ {16}
|
---|
296 | _heightimidi_ {21}
|
---|
297 |
|
---|
298 | _httpiconimsword_ {_httpimg_/imsword.gif}
|
---|
299 | _widthimsword_ {26}
|
---|
300 | _heightimsword_ {26}
|
---|
301 |
|
---|
302 | _httpiconimp3_ {_httpimg_/imp3.gif}
|
---|
303 | _widthimp3_ {25}
|
---|
304 | _heightimp3_ {20}
|
---|
305 |
|
---|
306 | _httpiconipdf_ {_httpimg_/ipdf.gif}
|
---|
307 | _widthipdf_ {26}
|
---|
308 | _heightipdf_ {26}
|
---|
309 |
|
---|
310 | _httpiconips_ {_httpimg_/ips.gif}
|
---|
311 | _widthips_ {25}
|
---|
312 | _heightips_ {32}
|
---|
313 |
|
---|
314 | _httpiconippt_ {_httpimg_/ippt.gif}
|
---|
315 | _widthippt_ {32}
|
---|
316 | _heightippt_ {30}
|
---|
317 |
|
---|
318 | _httpiconirtf_ {_httpimg_/irtf.gif}
|
---|
319 | _widthirtf_ {29}
|
---|
320 | _heightirtf_ {32}
|
---|
321 |
|
---|
322 | _httpiconixls_ {_httpimg_/iexcel.gif}
|
---|
323 | _widthixls_ {32}
|
---|
324 | _heightixls_ {30}
|
---|
325 |
|
---|
326 | _httpiconspace_ {_httpimg_/space.gif}
|
---|
327 |
|
---|
328 | #######################################################################
|
---|
329 | # Icons
|
---|
330 | #
|
---|
331 | # Must not include links (so they can be used as links). If you want to
|
---|
332 | # include links use _image
|
---|
333 | #######################################################################
|
---|
334 |
|
---|
335 | _iconnext_{<img src="_httpiconmore_" align="absbottom"
|
---|
336 | width="_widthmore_" height="_heightmore_" border="0" alt="_texticonnext_" title="_texticonnext_">}
|
---|
337 | _iconnext_[v=1] {_texticonnext_}
|
---|
338 |
|
---|
339 | _iconprev_{<img src="_httpiconless_" align="absbottom"
|
---|
340 | width="_widthless_" height="_heightless_" border="0" alt="_texticonprev_" title="_texticonprev_">}
|
---|
341 | _iconprev_[v=1] {_texticonprev_}
|
---|
342 |
|
---|
343 | _icontext_ {<img class="icon" src="_httpiconitext_" width="_widthitext_" height="_heightitext_" alt="_texticontext_" title="_texticontext_">}
|
---|
344 | _icontext_[v=1] {_texticontext_}
|
---|
345 |
|
---|
346 | _iconworld_ {<img class="icon" src="_httpiconiworld_" width="_widthiworld_" height="_heightiworld_" alt="_texticonworld_" title="_texticonworld_">}
|
---|
347 | _iconworld_[v=1] {_texticonworld_}
|
---|
348 |
|
---|
349 | _iconunknown_ {<img class="icon" src="_httpiconiunknown_" width="_widthiunknown_" height="_heightiunknown_" alt="_texticonunknown_" title="_texticonunknown_">}
|
---|
350 | _iconunknown_[v=1] {_texticonunknown_}
|
---|
351 |
|
---|
352 | _iconblanktext_ {<img class="icon" src="_httpiconibtext_" width="_widthibtext_" height="_heightibtext_">}
|
---|
353 | _iconblanktext_[v=1] {}
|
---|
354 |
|
---|
355 | _iconclosedbook_ {<img class="icon" src="_httpiconbook_" width="_widthbook_" height="_heightbook_" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
|
---|
356 | _iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
|
---|
357 | _iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
|
---|
358 |
|
---|
359 | _icondoc_ {<img class="icon" src="_httpiconimsword_" width="_widthimsword_" height="_heightimsword_" alt="_texticonmsword_" title="_texticonmsword_">}
|
---|
360 | _icondoc_[v=1] {_texticonmsword_}
|
---|
361 |
|
---|
362 | _iconmp3_ {<img class="icon" src="_httpiconimp3_" width="_widthimp3_" height="_heightimp3_" alt="_texticonmp3_" title="_texticonmp3_">}
|
---|
363 | _iconmp3_[v=1] {_texticonmp3_}
|
---|
364 |
|
---|
365 | _iconmidi_ {<img class="icon" src="_httpiconimidi_" width="_widthimidi_" height="_heightimidi_" alt="_texticonmidi_" title="_texticonmidi_">}
|
---|
366 | _iconmidi_[v=1] {_texticonmidi_}
|
---|
367 |
|
---|
368 | _iconpdf_ {<img class="icon" src="_httpiconipdf_" width="_widthipdf_" height="_heightipdf_" alt="_texticonpdf_" title="_texticonpdf_">}
|
---|
369 | _iconpdf_[v=1] {_texticonpdf_}
|
---|
370 |
|
---|
371 | _iconps_ {<img class="icon" src="_httpiconips_" width="_widthips_" height="_heightips_" alt="_texticonps_" title="_texticonps_">}
|
---|
372 | _iconps_[v=1] {_texticonps_}
|
---|
373 |
|
---|
374 | _iconppt_ {<img class="icon" src="_httpiconippt_" width="_widthippt_" height="_heightippt_" alt="_texticonppt_" title="_texticonppt_">}
|
---|
375 | _iconppt_[v=1] {_texticonppt_}
|
---|
376 |
|
---|
377 | _iconrtf_ {<img class="icon" src="_httpiconirtf_" width="_widthirtf_" height="_heightirtf_" alt="_texticonrtf_" title="_texticonrtf_">}
|
---|
378 | _iconrtf_[v=1] {_texticonrtf_}
|
---|
379 |
|
---|
380 | _iconxls_ {<img class="icon" src="_httpiconixls_" width="_widthixls_" height="_heightixls_" alt="_texticonxls_" title="_texticonxls_">}
|
---|
381 | _iconxls_[v=1] {_texticonxls_}
|
---|
382 |
|
---|
383 | #######################################################################
|
---|
384 | # Image links
|
---|
385 | #
|
---|
386 | # These might include a link (not like an _icon_
|
---|
387 | #######################################################################
|
---|
388 |
|
---|
389 |
|
---|
390 | _imagegreenstone_ {<img class="icon" src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" alt="_textdescrgreenstone_" title="_textdescrgreenstone_">}
|
---|
391 |
|
---|
392 | _imagegreenstone_[v=1] {_textdescrgreenstone_}
|
---|
393 |
|
---|
394 | ###########################################################################
|
---|
395 | # Metadata formatting stuff
|
---|
396 | #
|
---|
397 | #
|
---|
398 | ###########################################################################
|
---|
399 | package format
|
---|
400 |
|
---|
401 | # _1_ is Year, _2_ is month, _3_ is day
|
---|
402 | _date_ {_If_("_3_" ne "",_3_ )_If_("_2_" ne "",_textmonth_2__ )_If_("_1_" ne "",_1_)}
|
---|
403 |
|
---|