[7343] | 1 | # this file must be UTF-8 encoded
|
---|
| 2 |
|
---|
[258] | 3 | package document
|
---|
| 4 |
|
---|
| 5 | #######################################################################
|
---|
| 6 | # macros set from within the server
|
---|
| 7 | #######################################################################
|
---|
| 8 |
|
---|
| 9 | _imagethispage_ {}
|
---|
| 10 | _httpprevarrow_ {}
|
---|
| 11 | _httpnextarrow_ {}
|
---|
[283] | 12 | _pagetitle_ {}
|
---|
[1804] | 13 | _phindclassifier_ {}
|
---|
[6813] | 14 | _collageclassifier_ {}
|
---|
[13427] | 15 |
|
---|
[12944] | 16 | # custom header for individual document
|
---|
| 17 | _documentheader_ {}
|
---|
[13370] | 18 |
|
---|
[13427] | 19 | #custom css links for individual document
|
---|
| 20 | _csslink_{
|
---|
| 21 | <link rel="stylesheet" href="_cssfilelink_" type="text/css"
|
---|
| 22 | charset="UTF-8" _linktagend_
|
---|
[13450] | 23 | <link rel="alternate stylesheet" href="_httpimg_/preview-document.css"
|
---|
| 24 | type="text/css"
|
---|
[13427] | 25 | title="Preview Document" charset="UTF-8" media="screen" _linktagend_
|
---|
| 26 | <link rel="stylesheet" href="_httpimg_/print-document.css" type="text/css"
|
---|
| 27 | charset="UTF-8" media="print" _linktagend_
|
---|
| 28 | }
|
---|
[13370] | 29 |
|
---|
[258] | 30 | #######################################################################
|
---|
| 31 | # page content
|
---|
| 32 | #######################################################################
|
---|
| 33 |
|
---|
[14181] | 34 | _tocopen_ {<div class="top" _tocopenextra_>}
|
---|
| 35 | _tocclose_ {</div>}
|
---|
| 36 |
|
---|
[13534] | 37 | _nextsearchresult_ {_If_("_cgiargsrn_" ne "0",<li id="nextresult"><a href="_httpquery_&ifl=1&ifln=_cgiargsrn_">_textnextsearchresult_</a></li>)}
|
---|
[12944] | 38 |
|
---|
[13534] | 39 | _prevsearchresult_ {_If_("_cgiargsrp_" ne "0",<li id="prevresult"><a href="_httpquery_&ifl=1&ifln=_cgiargsrp_">_textprevsearchresult_</a></li>)}
|
---|
[13370] | 40 |
|
---|
[258] | 41 | _content_ {
|
---|
[7503] | 42 | _optnavigationbar_
|
---|
[11094] | 43 |
|
---|
[10872] | 44 | _If_(_phindclassifier__collageclassifier_,
|
---|
| 45 | <p style="text-align: center;">
|
---|
[1804] | 46 | _phindclassifier_
|
---|
[6813] | 47 | _collageclassifier_
|
---|
[10872] | 48 | </p>
|
---|
| 49 | )
|
---|
[13370] | 50 |
|
---|
[13528] | 51 | _If_("_cgiargcl_" eq "search",
|
---|
[13534] | 52 | <ul id="searchresults">
|
---|
[13528] | 53 | _prevsearchresult_
|
---|
| 54 | _nextsearchresult_
|
---|
[14776] | 55 | </ul>)
|
---|
[13370] | 56 |
|
---|
[10872] | 57 | <div class="document">
|
---|
[13370] | 58 |
|
---|
| 59 |
|
---|
[258] | 60 | }
|
---|
| 61 |
|
---|
[8106] | 62 | # Dublin Core Metadata Element Set, Version 1.1
|
---|
[2802] | 63 | _textTitlepage_ {_texticonhtitle_}
|
---|
[8106] | 64 | _textCreatorpage_ {_texticonhcreat_}
|
---|
[2802] | 65 | _textSubjectpage_ {_texticonhsubj_}
|
---|
[8106] | 66 | _textDescriptionpage_ {_texticonhdesc_}
|
---|
| 67 | _textPublisherpage_ {_texticonhpubl_}
|
---|
| 68 | _textContributorpage_ {_texticonhcontr_}
|
---|
| 69 | _textDatepage_ {_texticonhdate_}
|
---|
| 70 | _textTypepage_ {_texticonhtype_}
|
---|
| 71 | _textFormatpage_ {_texticonhform_}
|
---|
| 72 | _textIdentifierpage_ {_texticonhident_}
|
---|
| 73 | _textSourcepage_ {_texticonhsrc_}
|
---|
| 74 | _textLanguagepage_ {_texticonhlang_}
|
---|
| 75 | _textRelationpage_ {_texticonhrel_}
|
---|
| 76 | _textCoveragepage_ {_texticonhcover_}
|
---|
| 77 | _textRightspage_ {_texticonhright_}
|
---|
| 78 |
|
---|
[2802] | 79 | _textTopage_ {_texticonhto_}
|
---|
| 80 | _textFrompage_ {_texticonhfrom_}
|
---|
| 81 | _textSeriespage_ {_texticonhser_}
|
---|
| 82 | _textHowtopage_ {_texticonhhow_}
|
---|
| 83 | _textOrganizationpage_ {_texticonhorg_}
|
---|
| 84 | _textBrowsepage_ {_texticonhbrwse_}
|
---|
[6813] | 85 | _textCollagepage_ {_texticonhcoll_}
|
---|
[2802] | 86 | _textPeoplepage_ {_texticonhpeople_}
|
---|
| 87 | _textAcronympage_ {_texticonhacronym_}
|
---|
| 88 | _textPhrasepage_ {_texticonhphrases_}
|
---|
| 89 | _textArtistpage_ {_texticonhartist_}
|
---|
[3105] | 90 | _textKeywordpage_ {_texticonhkw_}
|
---|
[3534] | 91 | _textVolumepage_ {_texticonhvol_}
|
---|
[5622] | 92 | _textCaptionspage_ {_texticonhcapt_}
|
---|
[5517] | 93 | _textCountriespage_ {_texticonhcount_}
|
---|
[2802] | 94 |
|
---|
[258] | 95 | #######################################################################
|
---|
| 96 | # navigation arrows
|
---|
| 97 | #
|
---|
| 98 | #######################################################################
|
---|
| 99 |
|
---|
[4868] | 100 | # these two may be reset to "" by the server
|
---|
| 101 | _navarrowsbottom_ {_navarrows_}
|
---|
| 102 | _navarrowstop_ {_navarrows_}
|
---|
| 103 |
|
---|
[258] | 104 | _navarrows_ {<center>
|
---|
| 105 | <table width=_pagewidth_ cellpadding=0 cellspacing=0 border=0>
|
---|
| 106 | <tr><td align=left valign=top>
|
---|
| 107 | _prevarrow_
|
---|
| 108 | </td><td align=right valign=top>
|
---|
| 109 | _nextarrow_
|
---|
| 110 | </td></tr></table>
|
---|
| 111 | </center>
|
---|
| 112 | }
|
---|
| 113 |
|
---|
| 114 | _prevarrow_ {_If_(_httpprevarrow_,<a href="_httpprevarrow_">_iconprev_</a>)}
|
---|
| 115 | _nextarrow_ {_If_(_httpnextarrow_,<a href="_httpnextarrow_">_iconnext_</a>)}
|
---|
| 116 |
|
---|
[548] | 117 | _navarrows_ [v=1] {<p>
|
---|
[258] | 118 | _prevarrow_<br>
|
---|
| 119 | _nextarrow_
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 | #######################################################################
|
---|
| 123 | # the goto form
|
---|
| 124 | #######################################################################
|
---|
| 125 |
|
---|
| 126 | _gotoform_ {
|
---|
| 127 | <form name="GotoForm" method="get" action="_gwcgi_">
|
---|
[876] | 128 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
[258] | 129 | <input type=hidden name="d" value="_cgiargd_">
|
---|
| 130 | <input type=hidden name="cl" value="_cgiargcl_">
|
---|
[666] | 131 | <input type="text" name="gp" size="3" maxlength="4">
|
---|
[944] | 132 | <input type="submit" value="_textgoto_">
|
---|
[258] | 133 | </form>
|
---|
| 134 | }
|
---|
| 135 |
|
---|
[944] | 136 | _textnumpages_ { <i>(_1_ _pages_)</i>}
|
---|
[666] | 137 | _parentarrow_ {}
|
---|
| 138 |
|
---|
| 139 |
|
---|
[258] | 140 | #######################################################################
|
---|
[1804] | 141 | # the phind applet
|
---|
| 142 | #
|
---|
| 143 | # The phind applet is only required on phind classifier pages.
|
---|
| 144 | # Consequently, the _phindclassifier_ macro is not usually set. On screens
|
---|
| 145 | # where it is required, _phindclassifier_ resolves to _phindapplet_, and
|
---|
| 146 | # the following macro is loaded into the web page.
|
---|
| 147 | #######################################################################
|
---|
| 148 |
|
---|
| 149 | _phindapplet_ {
|
---|
[2507] | 150 | <APPLET CODEBASE="_httpprefix_/bin/java" CODE="org.nzdl.gsdl.Phind.Phind.class" ARCHIVE="Phind.jar" WIDTH=500 HEIGHT=400>
|
---|
[3084] | 151 | <PARAM NAME=library VALUE="_gwcgi_?e=_compressedoptions_">
|
---|
[2487] | 152 | <PARAM NAME=phindcgi VALUE="_gwcgi_?a=phind">
|
---|
[1804] | 153 | <PARAM NAME=collection VALUE="_cgiargc_">
|
---|
[2021] | 154 | <PARAM NAME=classifier VALUE="_phindnumber_">
|
---|
| 155 |
|
---|
[1804] | 156 | <PARAM NAME=orientation VALUE="vertical">
|
---|
| 157 | <PARAM NAME=depth VALUE="2">
|
---|
[2021] | 158 | <PARAM NAME=resultorder VALUE="L,l,E,e,D,d">
|
---|
| 159 |
|
---|
| 160 | <PARAM NAME=backdrop VALUE="_httpimg_/phindbg1.jpg">
|
---|
| 161 | <PARAM NAME=fontsize VALUE="10">
|
---|
[1804] | 162 | <PARAM NAME=blocksize VALUE="10">
|
---|
[2021] | 163 |
|
---|
[1804] | 164 | The Phind java applet.
|
---|
| 165 | </APPLET>
|
---|
| 166 | }
|
---|
| 167 |
|
---|
[6813] | 168 | _collageapplet_ {
|
---|
[7332] | 169 | <applet CODEBASE="_httpprefix_/bin/java"
|
---|
| 170 | code="org.nzdl.gsdl.GsdlCollageApplet.GsdlCollageApplet.class"
|
---|
| 171 | archive="GsdlCollageApplet.jar"
|
---|
| 172 | width="_collagexdim_" height="_collageydim_">
|
---|
[1804] | 173 |
|
---|
[7332] | 174 | <param name="gwcgi" value="_gwcgi_">
|
---|
| 175 | <param name="collection" value="_cgiargc_">
|
---|
| 176 | <param name="classifier" value="_cgiargcl_.1">
|
---|
[6813] | 177 |
|
---|
[7332] | 178 | <param name="hrefMustHave" value="cl=_cgiargcl_.1">
|
---|
| 179 | <param name="imageMustNotHave" value="hl=\%x=\%gt=\%gc=\%.pr">
|
---|
| 180 |
|
---|
| 181 | <param name="imageType" value="_collageimageType_">
|
---|
| 182 | <param name="verbosity" value="_collageverbosity_">
|
---|
| 183 | <param name="maxDepth" value="_collagemaxDepth_">
|
---|
| 184 | <param name="maxDisplay" value="_collagemaxDisplay_">
|
---|
| 185 | <param name="refreshDelay" value="_collagerefreshDelay_">
|
---|
| 186 | <param name="isJava2" value="_collageisJava2_">
|
---|
| 187 | <param name="bgcolor" value="_collagebgcolor_">
|
---|
[11421] | 188 | <param name="documentroot" value="_httpimg_">
|
---|
[6813] | 189 | </applet>
|
---|
[7332] | 190 |
|
---|
| 191 | <center>
|
---|
| 192 | _collagecaption_
|
---|
| 193 | </center>
|
---|
[13971] | 194 | }
|
---|
[7332] | 195 |
|
---|
[13971] | 196 |
|
---|
| 197 | _flashbook_ {
|
---|
| 198 | <div id="bookdiv">
|
---|
| 199 | </div>
|
---|
| 200 |
|
---|
| 201 | <script type="text/javascript">
|
---|
[14082] | 202 | var myWidth = "100%";
|
---|
| 203 | myHeight = 800;
|
---|
| 204 |
|
---|
[13971] | 205 | var img_cover = '_httpcollimg_/_thisOID_/cover.jpg';
|
---|
| 206 | var doc_url = document.URL;
|
---|
| 207 | doc_url = doc_url.replace(/(&|\\?)book=[a-z]+/gi,'');
|
---|
[14082] | 208 | doc_url += '&book=flashxml';
|
---|
[18168] | 209 |
|
---|
| 210 | var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;//get windows or not
|
---|
| 211 | //Only for Windows computers because Greenstone webserver doesn't allow us to pass parameters to Flash.
|
---|
| 212 | //These methods is called by the Flash program to get all the necessary parameters for the book
|
---|
| 213 | //However, it will only work for IE 5.0 and later, Firefox 1.0 and later, Mozilla 1.7.5 and later
|
---|
| 214 | //Netscape 8.0 and later, Safari 1.3 and later
|
---|
| 215 | function getDocURL() \{ return doc_url; \}
|
---|
| 216 | function getImgCover() \{ return img_cover; \}
|
---|
| 217 | function getStageW() \{ return -1; \}
|
---|
| 218 | function getStageH() \{ return -1; \}
|
---|
| 219 |
|
---|
| 220 |
|
---|
[13971] | 221 | var flash_plug_html = "";
|
---|
| 222 | flash_plug_html += '<OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \\n';
|
---|
| 223 | flash_plug_html += ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" \\n';
|
---|
| 224 | flash_plug_html += ' height="';
|
---|
[18168] | 225 | flash_plug_html += myHeight + '" id="Book" swLiveConnect="true" align="middle"\\n';
|
---|
[13971] | 226 | flash_plug_html += ' width="';
|
---|
| 227 | flash_plug_html += myWidth + '">\\n';
|
---|
[18168] | 228 |
|
---|
[13971] | 229 | flash_plug_html += ' <PARAM name="allowScriptAccess" value="always" />\\n';
|
---|
[14082] | 230 | flash_plug_html += ' <PARAM name="movie" value="_httpimg_/Book.swf';
|
---|
[18168] | 231 | if (isWin == false)
|
---|
| 232 | \{
|
---|
| 233 | flash_plug_html += '?src_image=' + escape(img_cover);
|
---|
| 234 | flash_plug_html += '&doc_url=' + escape(doc_url);
|
---|
| 235 | \}
|
---|
[13971] | 236 | flash_plug_html += '" />\\n';
|
---|
| 237 | flash_plug_html += ' <PARAM name="quality" value="high" />\\n';
|
---|
| 238 | flash_plug_html += ' <PARAM name="bgcolor" value="#FFFFFF" />\\n';
|
---|
| 239 | flash_plug_html += ' <EMBED align="middle" \\n';
|
---|
| 240 | flash_plug_html += ' allowScriptAccess="always" swLiveConnect="true" \\n';
|
---|
| 241 | flash_plug_html += ' bgcolor="#FFFFFF" height="';
|
---|
| 242 | flash_plug_html += myHeight + '" name="Book" \\n';
|
---|
| 243 | flash_plug_html += ' pluginspage="http://www.macromedia.com/go/getflashplayer" \\n';
|
---|
| 244 | flash_plug_html += ' quality="high" \\n';
|
---|
[18168] | 245 | flash_plug_html += ' src=\\'_httpimg_/Book.swf';
|
---|
| 246 | if (isWin == false)
|
---|
| 247 | \{
|
---|
| 248 | flash_plug_html += '?src_image=' + escape(img_cover);
|
---|
| 249 | flash_plug_html += '&doc_url=' + escape(doc_url);
|
---|
| 250 | \}
|
---|
| 251 | flash_plug_html += '\\'\\n';
|
---|
[13971] | 252 | flash_plug_html += ' type="application/x-shockwave-flash" width="';
|
---|
| 253 | flash_plug_html += myWidth + '" />\\n';
|
---|
| 254 | flash_plug_html += '</OBJECT>\\n';
|
---|
| 255 |
|
---|
| 256 | var flash_div = document.getElementById("bookdiv");
|
---|
| 257 | flash_div.innerHTML = flash_plug_html;
|
---|
| 258 | </script>
|
---|
[6813] | 259 | }
|
---|
| 260 |
|
---|
[1804] | 261 | #######################################################################
|
---|
[283] | 262 | # icons
|
---|
[258] | 263 | #######################################################################
|
---|
| 264 |
|
---|
[10872] | 265 | _iconsmalltext_ {<img src="_httpiconsmtext_" class="icon" width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
|
---|
[548] | 266 | _iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
|
---|
[283] | 267 |
|
---|
[10872] | 268 | _iconarrowsmalltext_ {<img src="_httpiconasmtext_" class="icon" width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
|
---|
[548] | 269 | _iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
|
---|
[454] | 270 |
|
---|
[10872] | 271 | _iconclosedfolder_ {<img src="_httpiconclsdfldr_" class="icon" width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
|
---|
[548] | 272 | _iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
|
---|
[283] | 273 |
|
---|
[10872] | 274 | _iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" class="icon" width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
|
---|
[548] | 275 | _iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
|
---|
[454] | 276 |
|
---|
[10872] | 277 | _iconopenfolder_ {<img src="_httpiconopenfldr_" class="icon" width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
|
---|
[548] | 278 | _iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
|
---|
[283] | 279 |
|
---|
[10872] | 280 | _iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" class="icon" width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
|
---|
[548] | 281 | _iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
|
---|
[454] | 282 |
|
---|
[10872] | 283 | _iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ class="icon" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
|
---|
[548] | 284 | _iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
|
---|
[454] | 285 |
|
---|
[10872] | 286 | _iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
|
---|
[548] | 287 | _iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
|
---|
[283] | 288 |
|
---|
[10872] | 289 | _iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
|
---|
[548] | 290 | _iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
|
---|
[454] | 291 |
|
---|
[10872] | 292 | _iconopenbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
|
---|
[548] | 293 | _iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
|
---|
[283] | 294 |
|
---|
[10872] | 295 | _iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
|
---|
[548] | 296 | _iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
|
---|
[454] | 297 |
|
---|
[10872] | 298 | _iconclosedbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
|
---|
[548] | 299 | _iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
|
---|
[283] | 300 |
|
---|
[10872] | 301 | _iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
|
---|
[548] | 302 | _iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
|
---|
[454] | 303 |
|
---|
[10872] | 304 | _iconpointer_ {<img src="_httpiconarrrght_" class="icon" width=_widtharrrght_ height=_heightarrrght_>}
|
---|
[548] | 305 | _iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
|
---|
[283] | 306 |
|
---|
[11132] | 307 | _iconwarning_ {<img src="_httpiconwarning_" width="_widthwarning_" height="_heightwarning_" class="icon" align="left">}
|
---|
[548] | 308 | _iconwarning_ [v=1] {_texticonwarning_}
|
---|
[283] | 309 |
|
---|
| 310 |
|
---|
[258] | 311 | #######################################################################
|
---|
[283] | 312 | # images
|
---|
| 313 | #######################################################################
|
---|
| 314 |
|
---|
[14072] | 315 | _coverimage_ {<img alt="Cover Image" onError="src='_httpimg_/blank.gif'" src="_httpcollimg_/_thisOID_/cover.jpg">}
|
---|
| 316 |
|
---|
[11132] | 317 | _docbutton_ {<div class="button"><span class="button" title="_3_"><a href="_1_">_2_</a></span></div>
|
---|
| 318 | }
|
---|
[283] | 319 |
|
---|
[11132] | 320 | # can't use _docbutton_ macro for detach button as we need to include target
|
---|
| 321 | _imagedetach_ {<div class="button"><span class="button"><a href="_httpcurrentdocument_&x=1" target="\_blank" title="_texticondetach_">_textDETACH_</a></span></div>}
|
---|
[283] | 322 |
|
---|
[13427] | 323 | _imageprint_{<div class="button"><span class="button"><a href="javascript:print_preview()">_textPRINT_</a></span></div>}
|
---|
| 324 |
|
---|
| 325 |
|
---|
[11132] | 326 | _imagehighlight_ {_docbutton_(_httpcurrentdocument_&hl=1&gc=_cgiarggc_&gt=_cgiarggt_,_textHIGHLIGHT_,_texticonhighlight_)}
|
---|
[283] | 327 |
|
---|
[11132] | 328 | _imagenohighlight_ {_docbutton_(_httpcurrentdocument_&hl=0&gc=_cgiarggc_&gt=_cgiarggt_,_document:textNOHIGHLIGHT_,_document:texticonnohighlight_)}
|
---|
[283] | 329 |
|
---|
[11132] | 330 | _imagecontracttoc_ {_docbutton_(_httpcurrentdocument_&gc=0,_textCONTRACTCONTENTS_,_texticoncontracttoc_)}
|
---|
[283] | 331 |
|
---|
[11132] | 332 | _imageexpandtoc_ {_docbutton_(_httpcurrentdocument_&gc=1,_textEXPANDCONTENTS_,_texticonexpandtoc_)}
|
---|
[283] | 333 |
|
---|
[11132] | 334 | _imagecontracttext_ {_docbutton_(_httpcurrentdocument_&gt=0,_textCONTRACT_,_texticoncontracttext_)}
|
---|
[283] | 335 |
|
---|
[11132] | 336 | _imageexpandtext_ {_docbutton_(_httpcurrentdocument_&gt=1,_textEXPANDTEXT_,_texticonexpandtext_)}
|
---|
[283] | 337 |
|
---|
[11132] | 338 | _imagecont_ {_docbutton_(_httpcurrentdocument_&gt=2,_textCONTINUE_,_texticoncont_)}
|
---|
[283] | 339 |
|
---|
[11132] | 340 |
|
---|
[13427] | 341 | #######################################################################
|
---|
| 342 | # print preview script
|
---|
| 343 | #######################################################################
|
---|
[11132] | 344 |
|
---|
[13427] | 345 |
|
---|
| 346 | _pagescriptextra_{
|
---|
| 347 |
|
---|
| 348 | var style_display_old;
|
---|
| 349 | var show = true;
|
---|
[13452] | 350 | var toc_top;
|
---|
[13427] | 351 |
|
---|
| 352 | function has_toc(){
|
---|
| 353 | var div_nodes = document.getElementsByTagName("div");
|
---|
| 354 | for (var i=0;i < div_nodes.length ; i++ )\{
|
---|
| 355 | var div_node = div_nodes[i];
|
---|
| 356 | if (div_node.className =="toc" && div_node.childNodes.length > 1)
|
---|
| 357 | \{
|
---|
| 358 | return true;
|
---|
| 359 | \}
|
---|
| 360 | \}
|
---|
| 361 |
|
---|
| 362 | return false;
|
---|
| 363 | \}
|
---|
| 364 |
|
---|
| 365 | function hide_toc()\{
|
---|
| 366 | var div_nodes = document.getElementsByTagName("div");
|
---|
| 367 | for (var i=0;i < div_nodes.length ; i++ )\{
|
---|
| 368 | var div_node = div_nodes[i];
|
---|
| 369 | if (div_node.className =="toc")
|
---|
| 370 | \{
|
---|
| 371 | style_display_old = div_node.style.display;
|
---|
[13452] | 372 | toc_top = document.getElementById("toc_top");
|
---|
| 373 | if (toc_top)
|
---|
| 374 | div_node.parentNode.insertBefore(toc_top,div_node);
|
---|
| 375 | div_node.style.display = "none";
|
---|
[13427] | 376 | \};
|
---|
| 377 | \}
|
---|
| 378 |
|
---|
| 379 | \}
|
---|
| 380 |
|
---|
[13452] | 381 |
|
---|
[13427] | 382 | function show_toc()\{
|
---|
| 383 |
|
---|
| 384 | var div_nodes = document.getElementsByTagName("div");
|
---|
| 385 | for (var i=0;i < div_nodes.length ; i++ )\{
|
---|
| 386 | var div_node = div_nodes[i];
|
---|
| 387 | if (div_node.className =="toc")
|
---|
| 388 | \{
|
---|
| 389 | div_node.style.display = style_display_old;
|
---|
[13452] | 390 | if (toc_top)
|
---|
| 391 | div_node.insertBefore(toc_top,div_node.firstChild);
|
---|
| 392 | \};
|
---|
[13427] | 393 | \}
|
---|
| 394 |
|
---|
| 395 | \}
|
---|
| 396 |
|
---|
| 397 |
|
---|
| 398 | function switch_toc()\{
|
---|
| 399 | var toc_link = document.getElementById("toc_link");
|
---|
| 400 | while (toc_link.hasChildNodes()) \{
|
---|
| 401 | toc_link.removeChild(toc_link.firstChild);
|
---|
| 402 | \}
|
---|
| 403 | if (show)\{
|
---|
[13450] | 404 | toc_link.appendChild(document.createTextNode('_textshowcontents_'));
|
---|
[13427] | 405 | show = false;
|
---|
| 406 | hide_toc();
|
---|
| 407 | \}
|
---|
| 408 | else\{
|
---|
[13450] | 409 | toc_link.appendChild(document.createTextNode('_texthidecontents_'));
|
---|
[13427] | 410 | show = true;
|
---|
| 411 | show_toc();
|
---|
| 412 | \}
|
---|
| 413 |
|
---|
| 414 | \}
|
---|
| 415 |
|
---|
| 416 | function print_preview() \{
|
---|
| 417 | // Switch the stylesheet
|
---|
| 418 | setActiveStyleSheet("Preview Document");
|
---|
| 419 | add_print_message();
|
---|
| 420 | \}
|
---|
| 421 |
|
---|
| 422 | function add_print_message()\{
|
---|
| 423 | if (document.getElementById)\{
|
---|
| 424 | var print_message = document.createElement('ul');
|
---|
| 425 | print_message.id = 'print-message';
|
---|
| 426 | print_message.className = "printmessage";
|
---|
| 427 |
|
---|
| 428 | var cancel_print_link = document.createElement('li');
|
---|
| 429 | cancel_print_link.className = "cancelprint"
|
---|
| 430 | cancel_print_link.onclick = function()\{ cancel_print(); return false;\};
|
---|
[13450] | 431 | cancel_print_link.appendChild(document.createTextNode('_textreturnoriginal_'));
|
---|
[13427] | 432 | print_message.appendChild(cancel_print_link);
|
---|
| 433 |
|
---|
| 434 |
|
---|
| 435 | var print_link = document.createElement('li');
|
---|
| 436 | print_link.onclick = function()\{ window.print(); return false;\};
|
---|
[13450] | 437 | print_link.appendChild(document.createTextNode('_textprintpage_'));
|
---|
[13427] | 438 | print_message.appendChild(print_link);
|
---|
| 439 |
|
---|
| 440 | if (has_toc())\{
|
---|
| 441 | var toc_link = document.createElement('li');
|
---|
| 442 | toc_link.id = "toc_link";
|
---|
| 443 | toc_link.onclick = function()\{ switch_toc(); return false;\};
|
---|
[13450] | 444 | toc_link.appendChild(document.createTextNode('_texthidecontents_'));
|
---|
[13427] | 445 | print_message.appendChild(toc_link);
|
---|
| 446 | \}
|
---|
| 447 |
|
---|
| 448 | //insert the print message node
|
---|
| 449 | var div_nodes = document.getElementsByTagName("div");
|
---|
| 450 | for (var i=0;i < div_nodes.length ; i++ )\{
|
---|
| 451 | var div_node = div_nodes[i];
|
---|
| 452 | if (div_node.className =="document")\{
|
---|
| 453 | var parent = div_node.parentNode;
|
---|
| 454 | parent.insertBefore(print_message,div_node);
|
---|
| 455 | \}
|
---|
| 456 | \}
|
---|
| 457 | \}
|
---|
| 458 |
|
---|
| 459 | \}
|
---|
| 460 |
|
---|
| 461 |
|
---|
| 462 | function cancel_print() \{
|
---|
| 463 | // Destroy the preview message
|
---|
| 464 | var print_message = document.getElementById('print-message');
|
---|
| 465 | var parent = print_message.parentNode;
|
---|
| 466 | parent.removeChild(print_message);
|
---|
| 467 |
|
---|
| 468 | show_toc();
|
---|
| 469 | // Switch back stylesheet
|
---|
| 470 | setActiveStyleSheet("default");
|
---|
| 471 | \}
|
---|
| 472 |
|
---|
| 473 | function setActiveStyleSheet(title) \{
|
---|
| 474 | var i, a, main;
|
---|
| 475 | for(i=0; (a = document.getElementsByTagName("link")[i]); i++) \{
|
---|
| 476 | if(a.getAttribute("rel").indexOf("style") != -1
|
---|
| 477 | && a.getAttribute("title")) \{
|
---|
| 478 | a.disabled = true;
|
---|
| 479 | if(a.getAttribute("title") == title) a.disabled = false;
|
---|
| 480 | \}
|
---|
| 481 | \ }
|
---|
| 482 | \}
|
---|
| 483 |
|
---|
| 484 | }
|
---|
| 485 |
|
---|
| 486 |
|
---|
[283] | 487 | #######################################################################
|
---|
[258] | 488 | # headers/footers
|
---|
| 489 | #######################################################################
|
---|
| 490 |
|
---|
| 491 |
|
---|
| 492 | # header overridden for text pages
|
---|
| 493 | _textheader_ {_cgihead_
|
---|
[454] | 494 | _htmlhead_
|
---|
[10872] | 495 | _startspacer_
|
---|
| 496 |
|
---|
| 497 | <!-- document:textheader -->
|
---|
| 498 | <div id="banner">
|
---|
| 499 | <div class="pageinfo"><p class="bannerlinks">_globallinks_</p></div>
|
---|
| 500 | <div class="collectimage">_imagecollection_</div>
|
---|
| 501 | </div>
|
---|
[11779] | 502 | <div class="bannerextra">_pagebannerextra_</div>
|
---|
[258] | 503 | }
|
---|
[10872] | 504 |
|
---|
[548] | 505 | _textheader_ [v=1] {_cgihead_
|
---|
| 506 | _htmlhead_
|
---|
[10872] | 507 | _globallinks_
|
---|
[548] | 508 | }
|
---|
[258] | 509 |
|
---|
| 510 | _footer_ {
|
---|
[10872] | 511 | </div> <!-- document:footer -->
|
---|
| 512 |
|
---|
[13427] | 513 | <div class="navarrowsbottom">
|
---|
[4868] | 514 | _navarrowsbottom_
|
---|
[13427] | 515 | </div>
|
---|
[258] | 516 | _endspacer__htmlfooter_
|
---|
[18168] | 517 | } |
---|