1 | #######################################################################
|
---|
2 | # GLOBAL MACROS
|
---|
3 | #######################################################################
|
---|
4 |
|
---|
5 | package Global
|
---|
6 |
|
---|
7 | ##########
|
---|
8 |
|
---|
9 | _optsite_ {}
|
---|
10 |
|
---|
11 |
|
---|
12 | ##########
|
---|
13 |
|
---|
14 | _htmlextra_ {}
|
---|
15 |
|
---|
16 | #_starthighlight_ {<b><u>}
|
---|
17 | #_endhighlight_ {</u></b>}
|
---|
18 |
|
---|
19 | _starthighlight_ {<span style="background: #FFFF77">}
|
---|
20 | _endhighlight_ {</span>}
|
---|
21 |
|
---|
22 | #######################################################################
|
---|
23 | # page content
|
---|
24 | #
|
---|
25 | # these should always be overridden for each page/collection
|
---|
26 | #######################################################################
|
---|
27 |
|
---|
28 | _content_ {<p><h2>oops</h2>
|
---|
29 | _textdefaultcontent_}
|
---|
30 | _pagetitle_ {_textdefaulttitle_}
|
---|
31 | _imagethispage_ {}
|
---|
32 | _iconcollection_ {}
|
---|
33 | _collectionname_ {}
|
---|
34 |
|
---|
35 | package Usability
|
---|
36 |
|
---|
37 | _content_ {
|
---|
38 | <h2>_textaboutusabilitytitle_</h2>
|
---|
39 | <p>_textaboutusability_
|
---|
40 | }
|
---|
41 | _pagetitle_{_textaboutusabilitypagetitle_}
|
---|
42 |
|
---|
43 | package Privacy
|
---|
44 | _content_ {
|
---|
45 | <h2>_textaboutprivacytitle_</h2>
|
---|
46 | <p>_textaboutprivacy_
|
---|
47 | }
|
---|
48 | _pagetitle_{_textaboutprivacypagetitle_}
|
---|
49 |
|
---|
50 | package Global
|
---|
51 |
|
---|
52 |
|
---|
53 | _imagecollection_ {_If_("_iconcollection_" ne "",
|
---|
54 | <a href="_httppageabout_"><img src="_iconcollection_" border=0></a>,
|
---|
55 | _imagecollectionv_}
|
---|
56 | _imagecollection_ [v=1] {_imagecollectionv_}
|
---|
57 | _imagecollectionv_ {_If_(_collectionname_,<br><br><h2><a href="_httppageabout_">_collectionname_</a></h2>)}
|
---|
58 |
|
---|
59 | #######################################################################
|
---|
60 | # these width macros are read in by the server when calculating
|
---|
61 | # width of navigation bar etc. There should be one for each
|
---|
62 | # classification that this receptionist supports, one for the
|
---|
63 | # search button, and the _pagewidth_ macro which is the total width
|
---|
64 | # of the page
|
---|
65 | #######################################################################
|
---|
66 |
|
---|
67 | # width of tabs when displaying tables of contents
|
---|
68 | _tabwidth_ {25}
|
---|
69 |
|
---|
70 | _pagewidth_ {537}
|
---|
71 | # defaultwidth is the width buttons default to if not included in this list
|
---|
72 | # but you need to define a _METAwidth_ tag as the server tests that it exists!
|
---|
73 | _defaultwidth_ {87}
|
---|
74 | _searchwidth_ {_widthtsrchx_}
|
---|
75 | _Titlewidth_ {_widthttitlx_}
|
---|
76 | _Descriptionwidth_ {_widthtdescx_}
|
---|
77 | _Listwidth_ {_widthtlistx_}
|
---|
78 | _Creatorwidth_ {_widthtauthx_}
|
---|
79 | _Serieswidth_ {_widthtserx_}
|
---|
80 | _Datewidth_ {_widthtdatex_}
|
---|
81 | _Subjectwidth_ {_widthtsubjx_}
|
---|
82 | _Towidth_ {_widthttox_}
|
---|
83 | _Fromwidth_ {_widthtfromx_}
|
---|
84 | _Organizationwidth_ {_widthtorgx_}
|
---|
85 | _Howtowidth_ {_widththowx_}
|
---|
86 | _Topicwidth_ {_widthttopicx_}
|
---|
87 | _Browsewidth_ {_widthtbrwsex_}
|
---|
88 | _Peoplewidth_ {_widthtpeopx_}
|
---|
89 | _Languagewidth_ {_widthtlangx_}
|
---|
90 | _Acronymwidth_ {_widthtacrox_}
|
---|
91 | _Phrasewidth_ {_widthtphrsex_}
|
---|
92 | _Artistwidth_ {_widthtartstx_}
|
---|
93 | _Sourcewidth_ {_widthtsrcx_}
|
---|
94 | _Keywordwidth_ {_widthtkwx_}
|
---|
95 | _Volumewidth_ {_widthtvolx_}
|
---|
96 | _Captionswidth_ {_widthtcaptx_}
|
---|
97 | _Countrieswidth_ {_widthcountx_}
|
---|
98 |
|
---|
99 | #######################################################################
|
---|
100 | # Macros whose values are set from within the server at runtime. These
|
---|
101 | # are here only for reference and to set default values if required.
|
---|
102 | #######################################################################
|
---|
103 |
|
---|
104 | # _win32_ will be set to 1 if we're on windows
|
---|
105 | _win32_ {}
|
---|
106 |
|
---|
107 | _navigationbar_ {}
|
---|
108 | _widthtspace_ {2}
|
---|
109 |
|
---|
110 | _usability_ {}
|
---|
111 |
|
---|
112 | # all cgi args are set as _cgiargX_ macros - those I've put here
|
---|
113 | # are those that need to default to something
|
---|
114 | _cgiargd_ {}
|
---|
115 | _cgiargcl_ {}
|
---|
116 |
|
---|
117 | # set from within the query action
|
---|
118 | _hselection_ {}
|
---|
119 | _jselection_ {}
|
---|
120 | _nselection_ {}
|
---|
121 | #level (granularity) selection for mgpp
|
---|
122 | _gselection_ {}
|
---|
123 | #level selection for form searching - dont have paragraph
|
---|
124 | _gformselection_ {_gselection_}
|
---|
125 | _fqfselection_ {}
|
---|
126 |
|
---|
127 | #######################################################################
|
---|
128 | # flashy rollover image macro
|
---|
129 | #
|
---|
130 | #######################################################################
|
---|
131 |
|
---|
132 | # imagescript should always be included in html header if there are
|
---|
133 | # flashy images on the page
|
---|
134 | _imagescript_ {
|
---|
135 | var loaded = new Array();
|
---|
136 | function gbutton (image, onimage) \{
|
---|
137 | if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) \{
|
---|
138 | s = image.src;
|
---|
139 | image.out = new Image();
|
---|
140 | image.out.src = s;
|
---|
141 | image.over = new Image();
|
---|
142 | image.over.src = onimage;
|
---|
143 | loaded[image.name] = image;
|
---|
144 | \}
|
---|
145 | \}
|
---|
146 |
|
---|
147 | function roll (imagename, over) \{
|
---|
148 | if (document.images) \{
|
---|
149 | if (over) i = "over";
|
---|
150 | else i = "out";
|
---|
151 | image = loaded[imagename];
|
---|
152 | if (image) image.src = eval("image."+i+".src");
|
---|
153 | \}
|
---|
154 | \}
|
---|
155 | }
|
---|
156 |
|
---|
157 | # gsimage should be used to define an instance of a flashy image
|
---|
158 | # parameters are:
|
---|
159 | # 1. the url to go to when the button is clicked
|
---|
160 | # 2. the url of the "off" image
|
---|
161 | # 3. the url of the "on" image
|
---|
162 | # 4. the name of the image (must be unique)
|
---|
163 | # 5. image alt text
|
---|
164 | _gsimage_ {<a href="_1_" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);"><img
|
---|
165 | name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_" title="_5_"></a>}
|
---|
166 |
|
---|
167 | _gsimage_ [v=1] {<a href="_1_">_5_</a><br>}
|
---|
168 |
|
---|
169 | _usabilityscript_ {}
|
---|
170 |
|
---|
171 | _usabshowscript_ {
|
---|
172 |
|
---|
173 | //this is for where something goes wrong and an error message has to be shown.
|
---|
174 | function failnicely(message,usabwindow)\{
|
---|
175 | var errhtml='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
|
---|
176 | errhtml+='<head><title>_greenstoneusabilitytext__texterror_</title><meta http-equiv="Content-Type" content="text/html; charset=_cgiargw_"></head><body bgcolor="#FFFFFF">';
|
---|
177 | errhtml+='_usabbanner_';
|
---|
178 | errhtml+=message;
|
---|
179 | errhtml+='<p><form action=""><input type="button" value="_textclosewindow_" onClick="window.close();"></form>';
|
---|
180 | errhtml+='</body></html>';
|
---|
181 | usabwindow.document.write(errhtml);
|
---|
182 | usabwindow.document.close();
|
---|
183 | \}
|
---|
184 |
|
---|
185 | function usabilityfunction()\{
|
---|
186 |
|
---|
187 | checkusab=window.open("","checkusab","scrollbars=1,toolbars=0,height=600,width=420");
|
---|
188 |
|
---|
189 | //set up the window
|
---|
190 | var winhtml='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
|
---|
191 | winhtml += '<html><head><title>_greenstoneusabilitytext_</title>';
|
---|
192 | winhtml += '<script type="text/javascript">\\n';
|
---|
193 |
|
---|
194 | //this function is for getting the time when the complaint data is sent
|
---|
195 | winhtml += 'function gettime()\\{\\n';
|
---|
196 | winhtml += 'document.usabform.sendtime.value = (new Date()).toString();\\n'
|
---|
197 | winhtml+='\\}\\n';
|
---|
198 |
|
---|
199 | //this function is to allow the user to track the usability report
|
---|
200 | winhtml+='function viewdetails()\\{\\n';
|
---|
201 | winhtml+='\\t alert(\\'_textunderdev_\\');\\}';
|
---|
202 |
|
---|
203 | //this function is to show the privacy/about data in a new window
|
---|
204 | winhtml+='function infowindow(url)\\{ \\
|
---|
205 | infowin = window.open(url,\\'infowin\\',\\'toolbars=0, height=600, width=600\\'); \\
|
---|
206 | \\}';
|
---|
207 |
|
---|
208 | winhtml += '</script>';
|
---|
209 | if(navigator.appName!="Netscape" || parseInt(navigator.appVersion)>=5)\{
|
---|
210 | winhtml += '_usabstyle_';
|
---|
211 | \}
|
---|
212 |
|
---|
213 | //need a character type for valid html
|
---|
214 | winhtml+='<meta http-equiv="Content-Type" content="text/html; charset=_cgiargw_"></head><body bgcolor=\"#FFFFFF\">';
|
---|
215 |
|
---|
216 | //get the location of the cgi program
|
---|
217 | cgiloc='_gwcgi_';
|
---|
218 | if(cgiloc.lastIndexOf("/")<0)\{
|
---|
219 | failnicely('_cannotfindcgierror_', checkusab);
|
---|
220 | return;
|
---|
221 | \}
|
---|
222 | cgiloc=cgiloc.substring(0,(cgiloc.lastIndexOf("/")+1));
|
---|
223 | cgiloc+='perl.cgi';
|
---|
224 |
|
---|
225 | //adds the banner with the koru-thing and the links to about and privacy
|
---|
226 | //information
|
---|
227 | winhtml+='_usabbanner_';
|
---|
228 | winhtml+='_aboutprivacylinks_';
|
---|
229 |
|
---|
230 |
|
---|
231 | // set up the form
|
---|
232 | winhtml += '<form name="usabform" method="post" action="'+cgiloc+'" onSubmit="gettime();">';
|
---|
233 | winhtml += '_usabinterface_';
|
---|
234 |
|
---|
235 |
|
---|
236 | //get javascript environment variables
|
---|
237 |
|
---|
238 | // to replace &s in the URL with &s
|
---|
239 | urlgs=new String(window.location);
|
---|
240 | a=urlgs.split("&");
|
---|
241 | urlgs=a.join("&");
|
---|
242 | winhtml+=('<input type="hidden" name="URL" value="'+urlgs+'">');
|
---|
243 |
|
---|
244 | winhtml+=('<input type="hidden" name="resolution" value="'+window.screen.width+'x'+window.screen.height+'">');
|
---|
245 | winhtml+=('<input type="hidden" name="screencolour" value="'+window.screen.color+'">');
|
---|
246 |
|
---|
247 | //colordepth and pixeldepth are NS and IE versions of the same thing.
|
---|
248 | if(screen.colorDepth)\{
|
---|
249 | winhtml+=('<input type="hidden" name="pixeldepth" value="'+window.screen.colorDepth+'">');
|
---|
250 | \}
|
---|
251 | else\{
|
---|
252 | winhtml+=('<input type="hidden" name="pixeldepth" value="'+window.screen.pixelDepth+'">');
|
---|
253 | \}
|
---|
254 |
|
---|
255 | winhtml+=('<input type="hidden" name="browser" value="'+navigator.platform+' ,'+navigator.appName+', '+navigator.appVersion+', '+navigator.appCodeName+', '+navigator.appUserAgent+'">');
|
---|
256 | winhtml+=('<input type="hidden" name="language" value="'+navigator.language+'">');
|
---|
257 | winhtml+=('<input type="hidden" name="opentime" value="'+(new Date()).toString()+'">');
|
---|
258 | winhtml+=('<input type="hidden" name="sendtime" value="None">');
|
---|
259 | winhtml+=('<input type="hidden" name="collection" value="_cgiargc_">');
|
---|
260 | if(document.getElementsByTagName)\{
|
---|
261 | //get interface variables
|
---|
262 | if(document.getElementsByTagName("form"))\{
|
---|
263 | docarray=document.getElementsByTagName("input");
|
---|
264 | if(docarray.length>0)\{
|
---|
265 | for(i=0; i<docarray.length; i++)\{
|
---|
266 | //this leaves out uninteresting inputs, such as buttons
|
---|
267 | //and unchecked checkboxes
|
---|
268 | if(docarray[i].type!='reset' && docarray[i].type!='button' &&
|
---|
269 | docarray[i].type!='image' && docarray[i].type!='submit'
|
---|
270 | && !((docarray[i].type=='radio'|| docarray[i].type=='checkbox') &&
|
---|
271 | !docarray[i].checked))\{
|
---|
272 | winhtml+=('<input type="hidden" name="'+docarray[i].type+'-'+docarray[i].name+'" value="'+docarray[i].value+'">');
|
---|
273 | \}
|
---|
274 | \}
|
---|
275 | \}
|
---|
276 | docarray=document.getElementsByTagName("select")
|
---|
277 | if(docarray.length>0)\{
|
---|
278 | for(i=0; i<docarray.length; i++)\{
|
---|
279 | winhtml+=('<input type="hidden" name="'+docarray[i].type+'-'+docarray[i].name+'" value="'+docarray[i].value+'">');
|
---|
280 | \}
|
---|
281 | \}
|
---|
282 | docarray=document.getElementsByTagName("textarea")
|
---|
283 | if(docarray.length>0)\{
|
---|
284 | for(i=0; i<docarray.length; i++)\{
|
---|
285 | winhtml+=('<input type="hidden" name="'+docarray[i].type+'-'+docarray[i].name+'" value="'+docarray[i].value+'">');
|
---|
286 | \}
|
---|
287 | \}
|
---|
288 | \}
|
---|
289 | \}
|
---|
290 | //finish the form
|
---|
291 | winhtml += '</form>';
|
---|
292 |
|
---|
293 | winhtml +='</body></html>'
|
---|
294 |
|
---|
295 |
|
---|
296 | //write to the window
|
---|
297 | checkusab.document.write(winhtml);
|
---|
298 | checkusab.document.close();
|
---|
299 | return;
|
---|
300 |
|
---|
301 | \}
|
---|
302 | }
|
---|
303 |
|
---|
304 | #####################################################################
|
---|
305 | #
|
---|
306 | # These macros are for use by the usability logging (I'd like to
|
---|
307 | # complain) functionality - they are to be included in a JavaScript
|
---|
308 | # string, hence the \s
|
---|
309 | #
|
---|
310 | #####################################################################
|
---|
311 |
|
---|
312 | _usabinterface_{}
|
---|
313 |
|
---|
314 | #the banner to "brand" any boxes as part of the usability interface
|
---|
315 | _usabbanner_{<table width=\"100%\"><tr><td><h1>_greenstoneusabilitytext_</h1></td><td align="right" width="135"><img src=\"_httpusabbanner_\" title=\"_textusabbanner_\" alt=\"_textusabbanner_\"></td></tr></table>}
|
---|
316 |
|
---|
317 | #the about and privacy lins separated by a mid dot.
|
---|
318 | _aboutprivacylinks_ {<p class="label"><a href="javascript:infowindow(\\'http://nzdl2.cs.waikato.ac.nz/dana/gsdl/about.html\\')">_textabout_</a> • <a href="javascript:infowindow(\\'http://nzdl2.cs.waikato.ac.nz/dana/gsdl/privacy.html\\')">_textprivacy_</a>}
|
---|
319 |
|
---|
320 | #gives a text only interface with some guff about privacy
|
---|
321 | _usabtextonly_{ \\
|
---|
322 | _textwhy_\\
|
---|
323 | _textprivacybasic_\\
|
---|
324 | _textstillsend_\\
|
---|
325 | _usabyesnosubmit_}
|
---|
326 |
|
---|
327 | _usabyesnosubmit_{<p><input type="submit" value="_textyes_"><input type="button" value="_textno_" onClick="window.close();">}
|
---|
328 |
|
---|
329 | #gives an interface with the privacy guff at the bottom, and
|
---|
330 | #steps to describe the problem
|
---|
331 | _usabstepwise_{\\
|
---|
332 | <p>_textwhatdoing_<br> \\
|
---|
333 | <textarea name="doingwhat" rows="3" cols="40"></textarea> \\
|
---|
334 | <p>_textwhatexpected_<br> \\
|
---|
335 | <textarea name="whatexpected" rows="6" cols="40"></textarea> \\
|
---|
336 | <p>_textwhathappened_<br> \\
|
---|
337 | <textarea name="whathappened" rows="6" cols="40"></textarea> \\
|
---|
338 | _usabtextonly_}
|
---|
339 |
|
---|
340 | #gives a multipart interface allowing the user to fill out less or more.
|
---|
341 | _usabmulti_{\\
|
---|
342 | _textwhy__textextraforform_\\
|
---|
343 | <h2>_textoptionally_:</h2>\\
|
---|
344 | <p class="label">_textmoredetails_:<br>\\
|
---|
345 | <textarea name="moredetails" rows="6" cols="45"></textarea>\\
|
---|
346 | <table><tr><td>\\
|
---|
347 | <p class="label">_textcharacterise_? </td>\\
|
---|
348 | <td><select name="probtype">\\
|
---|
349 | <option>\\
|
---|
350 | <option>_textbadrender_\\
|
---|
351 | <option>_textcontenterror_\\
|
---|
352 | <option>_textstrangebehaviour_\\
|
---|
353 | <option>_textunexpected_\\
|
---|
354 | <option>_textfunctionality_\\
|
---|
355 | <option>_textother_\\
|
---|
356 | </select></td></tr>\\
|
---|
357 | <tr><td><p class="label">_textseverity_? </td>\\
|
---|
358 | <td><select name="severity">\\
|
---|
359 | <option>\\
|
---|
360 | <option>_textcritical_\\
|
---|
361 | <option>_textmajor_\\
|
---|
362 | <option>_textmedium_\\
|
---|
363 | <option>_textminor_\\
|
---|
364 | <option>_texttrivial_\\
|
---|
365 | </select>\\
|
---|
366 | </td></tr></table>\\
|
---|
367 | _textprivacybasic__textstillsend_\\
|
---|
368 | <table width="100%"><tr><td><a href="javascript:viewdetails()"><p class="label">_textviewdetails_</a></td><td align="right"><button type="button" onClick="window.close()"><b>_textdontsend_</b></button></td><td align="right"><button type="submit"><b>_textsend_</b></button></td></tr></table>\\
|
---|
369 | }
|
---|
370 |
|
---|
371 | #style definitions to please NS 4.7
|
---|
372 | _usabstyle_{\\
|
---|
373 | <style type="text/css">\\
|
---|
374 | \\
|
---|
375 | table \{ width: 100% \} \\
|
---|
376 | td.right \{ align:right \} \\
|
---|
377 | \\
|
---|
378 | h1 \{font-size:20px; font-family: sans-serif; vertical-align:middle\\} \\
|
---|
379 | h2 \{font-size:14px; color: #009966; font-family: sans-serif; font-weight:bold \}\\
|
---|
380 | p.label \{ font-family:sans-serif; \}\\
|
---|
381 | </style>\\
|
---|
382 | }
|
---|
383 |
|
---|
384 |
|
---|
385 |
|
---|
386 | #######################################################################
|
---|
387 | # navigation bar images
|
---|
388 | #
|
---|
389 | #######################################################################
|
---|
390 |
|
---|
391 | # the spacer image - the width of this is set from server
|
---|
392 | _imagespacer_ {<img
|
---|
393 | src="_httpicontspace_" width="_widthtspace_" height="_heighttspace_">}
|
---|
394 | _imagespacer_[v=1] {<br>
|
---|
395 | }
|
---|
396 |
|
---|
397 | # image macros for all the classifications currently supported by
|
---|
398 | # this receptionist.
|
---|
399 |
|
---|
400 | _imagesearch_ {_If_("_cgiargu_" ne "1",_imagesearch2_,_iconnosearch_)}
|
---|
401 | _imagesearch2_ {_gsimage_(_httpquery_,_httpicontsrchof_,_httpicontsrchon_,srch,_textimagesearch_)}
|
---|
402 | _imageTitle_ {_gsimage_(_httpbrowseTitle_,_httpiconttitlof_,_httpiconttitlon_,titles,_textimageTitle_)}
|
---|
403 | _imageDescription_ {_gsimage_(_httpbrowseDescription_,_httpicontdescof_,_httpicontdescon_,descriptions,_textimageDescription_)}
|
---|
404 | _imageCreator_ {_gsimage_(_httpbrowseCreator_,_httpicontauthof_,_httpicontauthon_,authors,_textimageCreator_)}
|
---|
405 | _imageSeries_ {_gsimage_(_httpbrowseSeries_,_httpicontserof_,_httpicontseron_,series,_textimageSeries_)}
|
---|
406 | _imageDate_ {_gsimage_(_httpbrowseDate_,_httpicontdateof_,_httpicontdateon_,dates,_textimageDate_)}
|
---|
407 | _imageSubject_ {_gsimage_(_httpbrowseSubject_,_httpicontsubjof_,_httpicontsubjon_,subjects,_textimageSubject_)}
|
---|
408 | _imageTo_ {_gsimage_(_httpbrowseTo_,_httpiconttoof_,_httpiconttoon_,to,_textimageTo_)}
|
---|
409 | _imageFrom_ {_gsimage_(_httpbrowseFrom_,_httpicontfromof_,_httpicontfromon_,from,_textimageFrom_)}
|
---|
410 | _imageOrganization_ {_gsimage_(_httpbrowseOrganization_,_httpicontorgof_,_httpicontorgon_,org,_textimageOrganization_)}
|
---|
411 | _imageHowto_ {_gsimage_(_httpbrowseHowto_,_httpiconthowof_,_httpiconthowon_,how,_textimageHowto_)}
|
---|
412 | _imageTopic_ {_gsimage_(_httpbrowseTopic_,_httpiconttopicof_,_httpiconttopicon_,topic,_textimageTopic_)}
|
---|
413 | _imageBrowse_ {_gsimage_(_httpbrowseBrowse_,_httpicontbrwseof_,_httpicontbrwseon_,browse,_textimageBrowse_}
|
---|
414 | _imagePeople_ {_gsimage_(_httpbrowsePeople_,_httpicontpeopof_,_httpicontpeopon_,people,_textimagePeople_)}
|
---|
415 | _imageLanguage_ {_gsimage_(_httpbrowseLanguage_,_httpicontlangof_,_httpicontlangon_,language,_textimageLanguage_)}
|
---|
416 | _imageAcronym_ {_gsimage_(_httpbrowseAcronym_,_httpicontacroof_,_httpicontacroon_,acronym,_textimageAcronym_)}
|
---|
417 | _imagePhrase_ {_gsimage_(_httpbrowsePhrase_,_httpicontphrseof_,_httpicontphrseon_,phrase,_textimagePhrase_)}
|
---|
418 | _imageArtist_ {_gsimage_(_httpbrowseArtist_,_httpicontartstof_,_httpicontartston_,artist,_textimageArtist_)}
|
---|
419 | _imageSource_ {_gsimage_(_httpbrowseSource_,_httpicontsrcof_,_httpicontsrcon_,source,_textimageSource_)}
|
---|
420 | _imageKeyword_ {_gsimage_(_httpbrowseKeyword_,_httpicontkwof_,_httpicontkwon_,kw,_textimageKeyword_)}
|
---|
421 | _imageVolume_ {_gsimage_(_httpbrowseVolume_,_httpicontvolof_,_httpicontvolon_,volume,_textimageVolume_)}
|
---|
422 | _imageCaptions_ {_gsimage_(_httpbrowseCaptions_,_httpicontcaptof_,_httpicontcapton_,captions,_textimageCaptions_)}
|
---|
423 | _imageCountries_ {_gsimage_(_httpbrowseCountries_,_httpicontcountof_,_httpicontcounton_,countries,_textimageCountries_)}
|
---|
424 |
|
---|
425 | #######################################################################
|
---|
426 | # java images/scripts
|
---|
427 | #######################################################################
|
---|
428 |
|
---|
429 | # the _javalinks_ macros are the flashy image links at the top right of
|
---|
430 | # the page.
|
---|
431 |
|
---|
432 | _javalinks_ {_imagehome__imagehelp__imagepref__usability_}
|
---|
433 | _javalinks_ [v=1] {
|
---|
434 | _imagehome_<br>
|
---|
435 | _imagehelp_<br>
|
---|
436 | _imagepref_<br>
|
---|
437 | }
|
---|
438 |
|
---|
439 |
|
---|
440 | #######################################################################
|
---|
441 | # general web macros
|
---|
442 | #######################################################################
|
---|
443 |
|
---|
444 | _mailaddr_ {[email protected]}
|
---|
445 |
|
---|
446 | _gsdltop_ {_top}
|
---|
447 |
|
---|
448 | #######################################################################
|
---|
449 | # http macros
|
---|
450 | #
|
---|
451 | # These contain the url without any quotes
|
---|
452 | #######################################################################
|
---|
453 |
|
---|
454 | _httpcollimg_ {_httpcollection_/index/assoc}
|
---|
455 | _httpdocimg_ {_httpcollimg_/_thisOID_}
|
---|
456 |
|
---|
457 | _httpcollection_ {_httpprefix_/collect/_cgiargc_}
|
---|
458 |
|
---|
459 | _httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
|
---|
460 | _httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status&p=frameset}
|
---|
461 | _httppagetranslator_ {_gwcgi_?e=_compressedoptions_&a=lang&p=translang}
|
---|
462 | _httppagecollector_ {_gwcgi_?e=_compressedoptions_&a=collector&p=intro}
|
---|
463 | _httppageabout_ {_httppagex_(about)}
|
---|
464 | #_httppagehome_ {_httppagex_(home)}
|
---|
465 | ###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&p=home}
|
---|
466 | _httppagehome_ {_gwcgi_?a=p&p=home&l=_cgiargl_&w=_cgiargw_}
|
---|
467 | _httppagehelp_ {_httppagex_(help)}
|
---|
468 | _httppagepref_ {_httppagex_(preferences)}
|
---|
469 | _httppagedocs_ {_httppagex_(docs)}
|
---|
470 | _httpclearhistory_ {_gwcgi_?e=_compressedoptions_&a=dh}
|
---|
471 |
|
---|
472 | _httppageusab_ {javascript:usabilityfunction()}
|
---|
473 | _httpgreenstone_ {_httppagex_(gsdl)}
|
---|
474 | _httpdownload_ {http://www.nzdl.org/download}
|
---|
475 | _httppublications_ {_httpdownload_/greenstone/publications}
|
---|
476 |
|
---|
477 | _httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
|
---|
478 | _httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
|
---|
479 | _httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
|
---|
480 |
|
---|
481 | # _httpdoc_ is the same as _httpdocument_ - _httpdocument_
|
---|
482 | # may occasionally be altered by the server however
|
---|
483 | _httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
484 | _httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
485 |
|
---|
486 | _httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
|
---|
487 | _httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
|
---|
488 |
|
---|
489 | _httpiconchalk_ {_httpimg_/chalk.gif}
|
---|
490 | _widthchalk_ {2000}
|
---|
491 | _heightchalk_ {10}
|
---|
492 |
|
---|
493 | _httpicondivb_ {_httpimg_/divb.gif}
|
---|
494 | _widthdivb_ {_pagewidth_}
|
---|
495 | _heightdivb_ {17}
|
---|
496 |
|
---|
497 | _httpicongsdl_ {_httpimg_/gsdl.gif}
|
---|
498 | _widthgsdl_ {140}
|
---|
499 | _heightgsdl_ {77}
|
---|
500 |
|
---|
501 | _httpusabbanner_ {_httpimg_/usabbnr.gif}
|
---|
502 |
|
---|
503 | _httpiconitext_ {_httpimg_/itext.gif}
|
---|
504 | _widthitext_ {16}
|
---|
505 | _heightitext_ {21}
|
---|
506 |
|
---|
507 | _httpiconibtext_ {_httpimg_/ibtext.gif}
|
---|
508 | _widthibtext_ {16}
|
---|
509 | _heightibtext_ {21}
|
---|
510 |
|
---|
511 | _httpiconimpegvideo_ {_httpimg_/impegvid.gif}
|
---|
512 | _widthimpegvideo_ {29}
|
---|
513 | _heightimpegvideo_ {32}
|
---|
514 |
|
---|
515 | _httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
|
---|
516 | _widthiqtvideo_ {29}
|
---|
517 | _heightiqtvideo_ {32}
|
---|
518 |
|
---|
519 | _httpiconirmvideo_ {_httpimg_/irmvideo.gif}
|
---|
520 | _widthirmvideo_ {29}
|
---|
521 | _heightirmvideo_ {32}
|
---|
522 |
|
---|
523 | _httpiconless_ {_httpimg_/less.gif}
|
---|
524 | _widthless_ {30}
|
---|
525 | _heightless_ {16}
|
---|
526 |
|
---|
527 | _httpiconmore_ {_httpimg_/more.gif}
|
---|
528 | _widthmore_ {30}
|
---|
529 | _heightmore_ {16}
|
---|
530 |
|
---|
531 | _httpiconspacer_ {_httpimg_/spacer.gif}
|
---|
532 | _widthspacer_ {42}
|
---|
533 | _heightspacer_ {4}
|
---|
534 |
|
---|
535 | _httpicontabspace_ {_httpimg_/tabspace.gif}
|
---|
536 | _widthtabspace_ {23}
|
---|
537 | _heighttabspace_ {1}
|
---|
538 |
|
---|
539 | _httpicontspace_ {_httpimg_/tspace.gif}
|
---|
540 | _heighttspace_ {17}
|
---|
541 |
|
---|
542 | _httpiconwarning_ {_httpimg_/warning.gif}
|
---|
543 | _widthwarning_ {30}
|
---|
544 | _heightwarning_ {29}
|
---|
545 |
|
---|
546 | _httpiconhhome_ {_httpimg_/h\_home.gif}
|
---|
547 | _widthhhome_ {200}
|
---|
548 | _heighthhome_ {57}
|
---|
549 |
|
---|
550 | _httpiconarrrght_ {_httpimg_/arrrght.gif}
|
---|
551 | _widtharrrght_ {23}
|
---|
552 | _heightarrrght_ {15}
|
---|
553 |
|
---|
554 | _httpiconopenbook_ {_httpimg_/openbook.gif}
|
---|
555 | _widthopenbook_ {28}
|
---|
556 | _heightopenbook_ {23}
|
---|
557 |
|
---|
558 | _httpiconaopenbk_ {_httpimg_/aopenbk.gif}
|
---|
559 | _widthaopenbk_ {28}
|
---|
560 | _heightaopenbk_ {23}
|
---|
561 |
|
---|
562 | _httpiconopenfldr_ {_httpimg_/openfldr.gif}
|
---|
563 | _widthopenfldr_ {23}
|
---|
564 | _heightopenfldr_ {15}
|
---|
565 |
|
---|
566 | _httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
|
---|
567 | _widthaopenfdr_ {23}
|
---|
568 | _heightaopenfdr_ {15}
|
---|
569 |
|
---|
570 | _httpiconbook_ {_httpimg_/book.gif}
|
---|
571 | _widthbook_ {18}
|
---|
572 | _heightbook_ {11}
|
---|
573 |
|
---|
574 | _httpiconabook_ {_httpimg_/abook.gif}
|
---|
575 | _widthabook_ {18}
|
---|
576 | _heightabook_ {11}
|
---|
577 |
|
---|
578 | _httpiconbshelf_ {_httpimg_/bshelf.gif}
|
---|
579 | _widthbshelf_ {20}
|
---|
580 | _heightbshelf_ {16}
|
---|
581 |
|
---|
582 | _httpiconabshelf_ {_httpimg_/abshelf.gif}
|
---|
583 | _widthabshelf_ {20}
|
---|
584 | _heightabshelf_ {16}
|
---|
585 |
|
---|
586 | _httpiconsmtext_ {_httpimg_/smtext.gif}
|
---|
587 | _widthsmtext_ {23}
|
---|
588 | _heightsmtext_ {15}
|
---|
589 |
|
---|
590 | _httpiconasmtext_ {_httpimg_/asmtext.gif}
|
---|
591 | _widthasmtext_ {23}
|
---|
592 | _heightasmtext_ {15}
|
---|
593 |
|
---|
594 | _httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
|
---|
595 | _widthclsdfldr_ {23}
|
---|
596 | _heightclsdfldr_ {15}
|
---|
597 |
|
---|
598 | _httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
|
---|
599 | _widthaclsdfdr_ {23}
|
---|
600 | _heightaclsdfdr_ {15}
|
---|
601 |
|
---|
602 | _httpiconimidi_ {_httpimg_/imidi.gif}
|
---|
603 | _widthimidi_ {16}
|
---|
604 | _heightimidi_ {21}
|
---|
605 |
|
---|
606 | _httpiconimsword_ {_httpimg_/imsword.gif}
|
---|
607 | _widthimsword_ {26}
|
---|
608 | _heightimsword_ {26}
|
---|
609 |
|
---|
610 | _httpiconipdf_ {_httpimg_/ipdf.gif}
|
---|
611 | _widthipdf_ {26}
|
---|
612 | _heightipdf_ {26}
|
---|
613 |
|
---|
614 | _httpiconips_ {_httpimg_/ips.gif}
|
---|
615 | _widthips_ {25}
|
---|
616 | _heightips_ {32}
|
---|
617 |
|
---|
618 | _httpiconippt_ {_httpimg_/ippt.gif}
|
---|
619 | _widthippt_ {32}
|
---|
620 | _heightippt_ {30}
|
---|
621 |
|
---|
622 | _httpiconirtf_ {_httpimg_/irtf.gif}
|
---|
623 | _widthirtf_ {29}
|
---|
624 | _heightirtf_ {32}
|
---|
625 |
|
---|
626 | _httpiconixls_ {_httpimg_/iexcel.gif}
|
---|
627 | _widthixls_ {32}
|
---|
628 | _heightixls_ {30}
|
---|
629 |
|
---|
630 | #######################################################################
|
---|
631 | # Icons
|
---|
632 | #
|
---|
633 | # Must not include links (so they can be used as links). If you want to
|
---|
634 | # include links use _image
|
---|
635 | #######################################################################
|
---|
636 |
|
---|
637 | _iconnext_{<img src="_httpiconmore_" align=absbottom
|
---|
638 | width=_widthmore_ height=_heightmore_ border=0 alt="_texticonnext_" title="_texticonnext_">}
|
---|
639 | _iconnext_[v=1] {_texticonnext_}
|
---|
640 |
|
---|
641 | _iconprev_{<img src="_httpiconless_" align=absbottom
|
---|
642 | width=_widthless_ height=_heightless_ border=0 alt="_texticonprev_" title="_texticonprev_">}
|
---|
643 | _iconprev_[v=1] {_texticonprev_}
|
---|
644 |
|
---|
645 | _icontabsearchgreen_ {<img
|
---|
646 | src="_httpicontsrchgr_" width=_widthtsrchx_ border=0>}
|
---|
647 | _icontabsearchgreen_[v=1] {_texticontabsearchgreen_}
|
---|
648 |
|
---|
649 | _icontabListgreen_ {<img
|
---|
650 | src="_httpicontlistgr_" width=_widthtlistx_ border=0>}
|
---|
651 | _icontablistgreen_ [v=1] {_texticontablistgreen_}
|
---|
652 |
|
---|
653 | _icontabTitlegreen_ {<img
|
---|
654 | src="_httpiconttitlgr_" width=_widthttitlx_ border=0>}
|
---|
655 | _icontabTitlegreen_[v=1] {_texticontabtitlegreen_}
|
---|
656 |
|
---|
657 | _icontabDescriptiongreen_ {<img
|
---|
658 | src="_httpicontdescgr_" width=_widthtdescx_ border=0>}
|
---|
659 | _icontabDescriptiongreen_[v=1] {_texticontabdescriptiongreen_}
|
---|
660 |
|
---|
661 | _icontabCreatorgreen_ {<img
|
---|
662 | src="_httpicontauthgr_" width=_widthtauthx_ border=0>}
|
---|
663 | _icontabCreatorgreen_[v=1] {_texticontabauthorgreen_}
|
---|
664 |
|
---|
665 | _icontabSeriesgreen_ {<img
|
---|
666 | src="_httpicontsergr_" width=_widthtserx_ border=0>}
|
---|
667 | _icontabSeriesgreen_[v=1] {_texticontabseriesgreen_}
|
---|
668 |
|
---|
669 | _icontabDategreen_ {<img
|
---|
670 | src="_httpicontdategr_" width=_widthtdatex_ border=0>}
|
---|
671 | _icontabDategreen_[v=1] {_texticontabdategreen_}
|
---|
672 |
|
---|
673 | _icontabSubjectgreen_ {<img
|
---|
674 | src="_httpicontsubjgr_" width=_widthtsubjx_ border=0>}
|
---|
675 | _icontabSubjectgreen_[v=1] {_texticontabsubjectgreen_}
|
---|
676 |
|
---|
677 | _icontabTogreen_ {<img
|
---|
678 | src="_httpiconttogr_" width=_widthttox_ border=0>}
|
---|
679 | _icontabTogreen_[v=1] {_texticontabtogreen_}
|
---|
680 |
|
---|
681 | _icontabFromgreen_ {<img
|
---|
682 | src="_httpicontfromgr_" width=_widthtfromx_ border=0>}
|
---|
683 | _icontabFromgreen_[v=1] {_texticontabfromgreen_}
|
---|
684 |
|
---|
685 | _icontabHowtogreen_ {<img
|
---|
686 | src="_httpiconthowgr_" width=_widththowx_ border=0>}
|
---|
687 | _icontabHowtogreen_[v=1] {_texticontabhowgreen_}
|
---|
688 |
|
---|
689 | _icontabTopicgreen_ {<img
|
---|
690 | src="_httpiconttopicgr_" width=_widthttopicx_ border=0>}
|
---|
691 | _icontabTopicgreen_[v=1] {_texticontabtopicgreen_}
|
---|
692 |
|
---|
693 | _icontabBrowsegreen_ {<img
|
---|
694 | src="_httpicontbrwsegr_" width=_widthtbrwsex_ border=0>}
|
---|
695 | _icontabBrowsegreen_[v=1] {_texticontabbrwsegreen_}
|
---|
696 |
|
---|
697 | _icontabOrganizationgreen_ {<img
|
---|
698 | src="_httpicontorggr_" width=_widthtorgx_ border=0>}
|
---|
699 | _icontabOrganizationgreen_[v=1] {_texticontaborggreen_}
|
---|
700 |
|
---|
701 | _icontabPeoplegreen_ {<img
|
---|
702 | src="_httpicontpeopgr_" width=_widthtpeopx_ border=0>}
|
---|
703 | _icontabPeoplegreen_[v=1] {_texticontabPeoplegreen_}
|
---|
704 |
|
---|
705 | _icontabLanguagegreen_ {<img
|
---|
706 | src="_httpicontlanggr_" width=_widthtlangx_ border=0>}
|
---|
707 | _icontabLanguagegreen_[v=1] {_texticontabLanguagegreen_}
|
---|
708 |
|
---|
709 | _icontabAcronymgreen_ {<img
|
---|
710 | src="_httpicontacrogr_" width=_widthtacrox_ border=0>}
|
---|
711 | _icontabAcronymgreen_[v=1] {_texticontabAcronymgreen_}
|
---|
712 |
|
---|
713 | _icontabPhrasegreen_ {<img
|
---|
714 | src="_httpicontphrsegr_" width=_widthtphrsex_ border=0>}
|
---|
715 | _icontabPhrasegreen_[v=1] {_texticontabPhrasegreen_}
|
---|
716 |
|
---|
717 | _icontabArtistgreen_ {<img
|
---|
718 | src="_httpicontartstgr_" width=_widthtartstx_ border=0>}
|
---|
719 | _icontabArtistgreen_[v=1] {_texticontabArtistgreen_}
|
---|
720 |
|
---|
721 | _icontabSourcegreen_ {<img
|
---|
722 | src="_httpicontsrcgr_" width=_widthtsrcx_ border=0>}
|
---|
723 | _icontabSourcegreen_[v=1] {_texticontabSourcegreen_}
|
---|
724 |
|
---|
725 | _icontabKeywordgreen_ {<img
|
---|
726 | src="_httpicontkwgr_" width=_widthtkwx_ border=0>}
|
---|
727 | _icontabKeywordgreen_[v=1] {_texticontabKeywordgreen_}
|
---|
728 |
|
---|
729 | _icontabVolumegreen_ {<img
|
---|
730 | src="_httpicontvolgr_" width=_widthtvolx_ border=0>}
|
---|
731 | _icontabVolumegreen_[v=1] {_texticontabVolumegreen_}
|
---|
732 |
|
---|
733 | _icontabCaptionsgreen_ {<img
|
---|
734 | src="_httpicontcaptgr_" width=_widthtcaptx_ border=0>}
|
---|
735 | _icontabCaptionsgreen_[v=1] {_texticontabCaptionsgreen_}
|
---|
736 |
|
---|
737 | _icontabCountriesgreen_ {<img
|
---|
738 | src="_httpicontcountgr_" width=_widthtcountx_ border=0>}
|
---|
739 | _icontabCountriesgreen_[v=1] {_texticontabCountriesgreen_}
|
---|
740 |
|
---|
741 |
|
---|
742 | _iconblankbar_ {<center><img src="_httpicondivb_" width=_widthdivb_ height=_heightdivb_></center>}
|
---|
743 | _iconblankbar_[v=1] {<br><hr><br>}
|
---|
744 |
|
---|
745 | _icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_" title="_texticontext_">}
|
---|
746 | _icontext_[v=1] {_texticontext_}
|
---|
747 |
|
---|
748 | _iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
|
---|
749 | _iconblanktext_[v=1] {}
|
---|
750 |
|
---|
751 | _iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_" title="_texticonclosedbook_">}
|
---|
752 | _iconclosedbook_ [v=1] {<small><b>_texticonclosedbook_: </b></small>}
|
---|
753 | _iconclosedbook_ [v=1,l=zh]{<small><_font_><b>_texticonclosedbook_: </b></font></small>}
|
---|
754 |
|
---|
755 | _icondoc_ {<img border=0 align=absmiddle src="_httpiconimsword_" width=_widthimsword_ height=_heightimsword_ alt="_texticonmsword_" title="_texticonmsword_">}
|
---|
756 | _iconmsword_[v=1] {_texticonmsword_}
|
---|
757 |
|
---|
758 | _iconmidi_ {<img border=0 align=absmiddle src="_httpiconimidi_" width=_widthimidi_ height=_heightimidi_ alt="_texticonmidi_" title="_texticonmidi_">}
|
---|
759 | _iconmidi_[v=1] {_texticonmidi_}
|
---|
760 |
|
---|
761 | _iconpdf_ {<img border=0 align=absmiddle src="_httpiconipdf_" width=_widthipdf_ height=_heightipdf_ alt="_texticonpdf_" title="_texticonpdf_">}
|
---|
762 | _iconpdf_[v=1] {_texticonpdf_}
|
---|
763 |
|
---|
764 | _iconps_ {<img border=0 align=absmiddle src="_httpiconips_" width=_widthips_ height=_heightips_ alt="_texticonps_" title="_texticonps_">}
|
---|
765 | _iconps_[v=1] {_texticonps_}
|
---|
766 |
|
---|
767 | _iconppt_ {<img border=0 align=absmiddle src="_httpiconippt_" width=_widthippt_ height=_heightippt_ alt="_texticonppt_" title="_texticonppt_">}
|
---|
768 | _iconppt_[v=1] {_texticonppt_}
|
---|
769 |
|
---|
770 | _iconrtf_ {<img border=0 align=absmiddle src="_httpiconirtf_" width=_widthirtf_ height=_heightirtf_ alt="_texticonrtf_" title="_texticonrtf_">}
|
---|
771 | _iconrtf_[v=1] {_texticonrtf_}
|
---|
772 |
|
---|
773 | _iconxls_ {<img border=0 align=absmiddle src="_httpiconixls_" width=_widthixls_ height=_heightixls_ alt="_texticonxls_" title="_texticonxls_">}
|
---|
774 | _iconxls_[v=1] {_texticonxls_}
|
---|
775 |
|
---|
776 | _iconnosearch_ {<img src="_httpimg_/nosearch.gif">}
|
---|
777 |
|
---|
778 | #######################################################################
|
---|
779 | # Image links
|
---|
780 | #
|
---|
781 | # These might include a link (not like an _icon_
|
---|
782 | #######################################################################
|
---|
783 |
|
---|
784 | _imagehome_ {_If_("_cgiargu_" ne "1",_imagehome2_)}
|
---|
785 | _imagehome2_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
|
---|
786 |
|
---|
787 | _imagehelp_ {_gsimage_(_httppagehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
|
---|
788 |
|
---|
789 | _imagepref_ {_If_("_cgiargu_" ne "1",_imagepref2_)}
|
---|
790 | _imagepref2_ {_gsimage_(_httppagepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
|
---|
791 |
|
---|
792 | _imageusab_ {_gsimage_(_httppageusab_,_httpiconcusabof_,_httpiconcusabon_,usab,_textimageusab_)}
|
---|
793 |
|
---|
794 | _imagegreenstone_ {<img src="_httpicongsdl_" width="_widthgsdl_" height="_heightgsdl_" border="0" alt="_textimagegreenstone_" title="_textimagegreenstone_" hspace=0>}
|
---|
795 |
|
---|
796 | _imagegreenstone_[v=1] {_textimagegreenstone_}
|
---|
797 |
|
---|