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