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