[7343] | 1 | # this file must be UTF-8 encoded
|
---|
| 2 |
|
---|
[128] | 3 | package preferences
|
---|
| 4 |
|
---|
[876] | 5 | # set within server
|
---|
[128] | 6 |
|
---|
[876] | 7 | # collectionoption is only set when cross-collection searching is turned on
|
---|
| 8 | _collectionoption_ {}
|
---|
| 9 |
|
---|
| 10 | # this macro will be set to "1" when the "source docs retrived from dl/web
|
---|
| 11 | # button is required - i.e. whenever PreferenceDocsFromWeb isn't set to false
|
---|
| 12 | # in collect.cfg
|
---|
| 13 | _PreferenceDocsFromWeb_ {}
|
---|
| 14 |
|
---|
[2415] | 15 | # this macro will be set to _textprefschanged_ when the "set preferences"
|
---|
| 16 | # button has been pressed
|
---|
| 17 | _prefschanged_ {}
|
---|
[876] | 18 |
|
---|
[148] | 19 | #######################################################################
|
---|
[10872] | 20 | # global navigation links
|
---|
[283] | 21 | #######################################################################
|
---|
| 22 |
|
---|
[10872] | 23 | # this is overridden here as we don't want a 'preferences' link on this page
|
---|
[283] | 24 |
|
---|
[10872] | 25 | _globallinks_ {_homelink_ _helplink_}
|
---|
[283] | 26 |
|
---|
| 27 | #######################################################################
|
---|
[276] | 28 | # scripts
|
---|
| 29 | # note that changing either the "m" or the "o" argument
|
---|
| 30 | # from the preferences page necessitates reseting the "r"
|
---|
| 31 | # argument to 1
|
---|
| 32 | #######################################################################
|
---|
| 33 |
|
---|
[876] | 34 | _ccsfunctions_ {argcc = "";
|
---|
| 35 | savedccs = new Object();
|
---|
[276] | 36 |
|
---|
[876] | 37 | function initialize () \{
|
---|
| 38 | for (i = 0; i < document.links.length; i++)
|
---|
| 39 | savedhrefs[i] = document.links[i].href;
|
---|
[276] | 40 |
|
---|
[876] | 41 | s = "_cgiargcc_";
|
---|
| 42 | a = s.split (",");
|
---|
[1950] | 43 | for (i = 0; i < a.length ;i++) \{
|
---|
[876] | 44 | for (j = 0; j < document.PrefForm.cc.length; j++) \{
|
---|
| 45 | if (a[i] == document.PrefForm.elements["cc"][j].value) \{
|
---|
| 46 | document.PrefForm.elements["cc"][j].checked = true;
|
---|
| 47 | savedccs[a[i]] = 1;
|
---|
| 48 | argcc = argcc + "&cc=" + a[i];
|
---|
| 49 | break;
|
---|
| 50 | \} else \{
|
---|
| 51 | savedccs[a[i]] = 0;
|
---|
| 52 | \}
|
---|
| 53 | \}
|
---|
| 54 | \}
|
---|
| 55 | updatehrefs();
|
---|
| 56 | \}
|
---|
[276] | 57 |
|
---|
[876] | 58 | function updatecc (collection) \{
|
---|
| 59 | if (savedccs[collection] == 1) savedccs[collection] = 0;
|
---|
| 60 | else savedccs[collection] = 1;
|
---|
[1950] | 61 |
|
---|
[876] | 62 | var i;
|
---|
| 63 | argcc = "";
|
---|
[1717] | 64 | var changed = 0;
|
---|
[876] | 65 | for (i in savedccs)
|
---|
[1950] | 66 | if (savedccs[i] == 1) \{
|
---|
| 67 | argcc += "&cc=" + i;
|
---|
| 68 | changed = 1;
|
---|
| 69 | \}
|
---|
[1717] | 70 | if (changed == 1) argcc += "&r=1";
|
---|
[876] | 71 | updatehrefs();
|
---|
| 72 | \}
|
---|
| 73 | }
|
---|
[276] | 74 |
|
---|
[876] | 75 | _standardfunctions_ {
|
---|
| 76 | function initialize () \{
|
---|
| 77 | for (i = 0; i < document.links.length; i++)
|
---|
| 78 | savedhrefs[i] = document.links[i].href;
|
---|
[4763] | 79 |
|
---|
[876] | 80 | \}
|
---|
[4763] | 81 |
|
---|
[876] | 82 | }
|
---|
[276] | 83 |
|
---|
[876] | 84 | _getargsfunction_ {
|
---|
| 85 | function getargs () \{
|
---|
[4763] | 86 | return argk + args + argm + argo + argrd + arghd + argb + argqf + argqb + argfqn_If_(_collectionoption_,_ccsargs_)_If_(_htmloptions_,_htmlargs_);
|
---|
[876] | 87 | \}
|
---|
| 88 | }
|
---|
[276] | 89 |
|
---|
[876] | 90 | _ccsargs_ {+ argcc}
|
---|
| 91 | _htmlargs_ {+ argel + argil + argfc + arghl}
|
---|
[276] | 92 |
|
---|
[876] | 93 | _htmlfunctions_ {argel = "";
|
---|
| 94 | argil = "";
|
---|
| 95 | argfc = "";
|
---|
| 96 | arghl = "";
|
---|
[276] | 97 |
|
---|
[876] | 98 | function updateel () \{
|
---|
| 99 | value = document.PrefForm.el.options[document.PrefForm.el.selectedIndex].value;
|
---|
| 100 | if (value != "_cgiargel_") argel = "&el=" + value;
|
---|
| 101 | else argel = "";
|
---|
| 102 | updatehrefs();
|
---|
| 103 | \}
|
---|
[276] | 104 |
|
---|
[876] | 105 | function updateil () \{
|
---|
| 106 | value = document.PrefForm.il.options[document.PrefForm.il.selectedIndex].value;
|
---|
| 107 | if (value != "_cgiargil_") argil = "&il=" + value;
|
---|
| 108 | else argil = "";
|
---|
| 109 | updatehrefs();
|
---|
| 110 | \}
|
---|
[548] | 111 |
|
---|
[2496] | 112 | function updatefc(value) \{
|
---|
| 113 | if (value != _cgiargfc_) argfc = "&fc=" + value + "&f=" + value;
|
---|
| 114 | else argfc = "";
|
---|
[876] | 115 | updatehrefs();
|
---|
| 116 | \}
|
---|
[725] | 117 |
|
---|
[2496] | 118 | function updatehl(value) \{
|
---|
| 119 | if (value != _cgiarghl_) arghl = "&hl=" + value;
|
---|
| 120 | else arghl = "";
|
---|
[876] | 121 | updatehrefs();
|
---|
| 122 | \}
|
---|
| 123 | }
|
---|
[725] | 124 |
|
---|
[876] | 125 | _pagescriptextra_ {
|
---|
| 126 | // preferences scripts generated from \_preferences:pagescriptextra\_
|
---|
[591] | 127 |
|
---|
[876] | 128 | savedhrefs = new Object();
|
---|
| 129 |
|
---|
| 130 | argk = "";
|
---|
| 131 | args = "";
|
---|
| 132 | argm = "";
|
---|
[1950] | 133 | argrd = "";
|
---|
[876] | 134 | argo = "";
|
---|
| 135 | argb = "";
|
---|
[4763] | 136 | argqf = "";
|
---|
[942] | 137 | arghd = "";
|
---|
[1922] | 138 | argqb = "";
|
---|
| 139 | argfqn = "";
|
---|
| 140 |
|
---|
[901] | 141 | _If_(_collectionoption_,_ccsfunctions_,_standardfunctions_)
|
---|
[876] | 142 | _If_(_htmloptions_,_htmlfunctions_)
|
---|
| 143 | _getargsfunction_
|
---|
| 144 | function updatehrefs () \{
|
---|
| 145 | for (i = 0; i < document.links.length; i++)
|
---|
| 146 | document.links[i].href = savedhrefs[i] + getargs();
|
---|
| 147 | \}
|
---|
| 148 |
|
---|
| 149 | function updatek (value) \{
|
---|
| 150 | if (value != _cgiargk_) argk = "&k=" + value;
|
---|
| 151 | else argk = "";
|
---|
| 152 | updatehrefs();
|
---|
| 153 | \}
|
---|
| 154 |
|
---|
| 155 | function updates (value) \{
|
---|
| 156 | if (value != _cgiargs_) args = "&s=" + value;
|
---|
| 157 | else args = "";
|
---|
| 158 | updatehrefs();
|
---|
| 159 | \}
|
---|
| 160 |
|
---|
| 161 | function updatem () \{
|
---|
| 162 | value = document.PrefForm.m.options[document.PrefForm.m.selectedIndex].value;
|
---|
| 163 | if (value != _cgiargm_) argm = "&r=1&m=" + value;
|
---|
| 164 | else argm = "";
|
---|
| 165 | updatehrefs();
|
---|
| 166 | \}
|
---|
| 167 |
|
---|
[1950] | 168 | function updaterd () \{
|
---|
| 169 | if (document.PrefForm.rd.checked)
|
---|
| 170 | _If_("_cgiargrd_" eq "1",argrd="";,argrd="&rd=1";)
|
---|
| 171 | else
|
---|
| 172 | _If_("_cgiargrd_" ne "1",argrd="";,argrd="&rd=0";)
|
---|
| 173 | updatehrefs();
|
---|
| 174 | \}
|
---|
| 175 |
|
---|
[876] | 176 | function updateo () \{
|
---|
| 177 | value = document.PrefForm.o.options[document.PrefForm.o.selectedIndex].value;
|
---|
| 178 | if (value != _cgiargo_) argo = "&r=1&o=" + value;
|
---|
| 179 | else argo = "";
|
---|
| 180 | updatehrefs();
|
---|
| 181 | \}
|
---|
| 182 |
|
---|
[1950] | 183 | function updatefqn () \{
|
---|
| 184 | value = document.PrefForm.fqn.options[document.PrefForm.fqn.selectedIndex].value;
|
---|
| 185 | if (value != _cgiargfqn_) argfqn = "&fqn=" + value;
|
---|
| 186 | else argfqn = "";
|
---|
| 187 | updatehrefs();
|
---|
| 188 | \}
|
---|
| 189 |
|
---|
[876] | 190 | function updateb (value) \{
|
---|
| 191 | if (value != _cgiargb_) argb = "&b=" + value;
|
---|
| 192 | else argb = "";
|
---|
| 193 | updatehrefs();
|
---|
| 194 | \}
|
---|
[4763] | 195 | function updateqf (value) \{
|
---|
| 196 | if (value != _cgiargqf_) argqf = "&qf=" + value;
|
---|
| 197 | else argqf = "";
|
---|
| 198 | updatehrefs();
|
---|
| 199 | \}
|
---|
[876] | 200 |
|
---|
[1922] | 201 | function updatehd() \{
|
---|
[1950] | 202 | arghd="";
|
---|
| 203 | if (document.PrefForm.hd[0].checked) \{
|
---|
| 204 | if ("_cgiarghd_" != "0") arghd = "&hd=0";
|
---|
| 205 | \}
|
---|
| 206 | else \{
|
---|
| 207 | value = document.PrefForm.hdn[document.PrefForm.hdn.selectedIndex].value;
|
---|
| 208 | if (_cgiarghd_ != value) arghd = "&hd="+value;
|
---|
| 209 | \}
|
---|
| 210 | updatehrefs();
|
---|
| 211 | \}
|
---|
[1946] | 212 |
|
---|
| 213 | function updateqb(value) \{
|
---|
[1950] | 214 | if (value != _cgiargqb_) argqb = "&qb=" + value;
|
---|
| 215 | else argqb = "";
|
---|
[1922] | 216 | updatehrefs();
|
---|
| 217 | \}
|
---|
| 218 |
|
---|
[876] | 219 | function updatel () \{
|
---|
| 220 | value = document.PrefForm.l.options[document.PrefForm.l.selectedIndex].value;
|
---|
[2265] | 221 | href = location.href;
|
---|
[5482] | 222 | if (href.match(/&l=[\\w\\-]+/)) href = href.replace(/&l=[\\w\\-]+/, "&l=" + value);
|
---|
[2265] | 223 | else href += "&l=" + value;
|
---|
| 224 | if (!location.href.match(/&nl=1$/)) href += "&nl=1";
|
---|
[7651] | 225 | while (href.match(/&cc=[\\w]+/)) href = href.replace(/&cc=[\\w]+/, "");
|
---|
[2265] | 226 | location.href = href + getargs();
|
---|
[876] | 227 | \}
|
---|
| 228 |
|
---|
| 229 | function updatev () \{
|
---|
| 230 | value = document.PrefForm.v.options[document.PrefForm.v.selectedIndex].value;
|
---|
[2265] | 231 | href = location.href;
|
---|
| 232 | if (href.match(/&v=\\d/)) href = href.replace(/&v=\\d/, "&v=" + value);
|
---|
| 233 | else href += "&v=" + value;
|
---|
[7651] | 234 | while (href.match(/&cc=[\\w]+/)) href = href.replace(/&cc=[\\w]+/, "");
|
---|
[2265] | 235 | location.href = href + getargs();
|
---|
[876] | 236 | \}
|
---|
| 237 |
|
---|
| 238 | function updatew () \{
|
---|
| 239 | value = document.PrefForm.w.options[document.PrefForm.w.selectedIndex].value;
|
---|
[2265] | 240 | href = location.href;
|
---|
| 241 | if (href.match(/&nw=[^&]+/)) href = href.replace(/&nw=[^&]+/, "&nw=" + value);
|
---|
| 242 | else href += "&nw=" + value;
|
---|
| 243 | if (!location.href.match(/&nl=0$/)) href += "&nl=0";
|
---|
[7651] | 244 | while (href.match(/&cc=[\\w]+/)) href = href.replace(/&cc=[\\w]+/, "");
|
---|
[2265] | 245 | location.href = href + getargs();
|
---|
[876] | 246 | \}
|
---|
[1922] | 247 |
|
---|
[4763] | 248 | function updateqt (value) \{
|
---|
[7651] | 249 | if (value != _cgiargqt_) \{
|
---|
[10660] | 250 | href = location.href;
|
---|
[7651] | 251 | while (href.match(/&cc=[\\w]+/)) href = href.replace(/&cc=[\\w]+/, "");
|
---|
[10660] | 252 | location.href = href + "&qt=" + value + getargs();
|
---|
[7651] | 253 | \}
|
---|
[1950] | 254 | \}
|
---|
[276] | 255 | }
|
---|
| 256 |
|
---|
[1950] | 257 |
|
---|
[276] | 258 | #######################################################################
|
---|
| 259 | # headers
|
---|
| 260 | # these are overridden so we can put an onLoad event handler
|
---|
| 261 | # in the <body> tag of this page
|
---|
| 262 | #######################################################################
|
---|
| 263 |
|
---|
| 264 |
|
---|
| 265 | _header_ {_cgihead_
|
---|
[10872] | 266 | _htmlhead_(class="bgimage" onLoad="initialize();")_startspacer__pagebanner_
|
---|
[276] | 267 | }
|
---|
| 268 |
|
---|
| 269 | # this declaration ends up being the same as style=restrict, never mind
|
---|
[548] | 270 | _header_[v=1] {_cgihead_
|
---|
[276] | 271 | _htmlhead_(onLoad="initialize();")_pagebanner_
|
---|
| 272 | }
|
---|
| 273 |
|
---|
| 274 |
|
---|
| 275 | #######################################################################
|
---|
[148] | 276 | # page content
|
---|
| 277 | #######################################################################
|
---|
[128] | 278 |
|
---|
[148] | 279 | _pagetitle_ {_collectionname_: _textpreferences_}
|
---|
| 280 | _imagethispage_ {_iconthispage_}
|
---|
| 281 |
|
---|
[876] | 282 | _htmloptions_ {}
|
---|
| 283 |
|
---|
| 284 | _htmloptionson_ {
|
---|
| 285 | <p>
|
---|
[2496] | 286 | <tr>_fcoption_</tr>
|
---|
[876] | 287 | <p>
|
---|
[2496] | 288 | <tr>_hloption_</tr>
|
---|
[876] | 289 | <p>
|
---|
[1922] | 290 | <tr>_extlinkoption_</tr>
|
---|
[876] | 291 | _If_(_PreferenceDocsFromWeb_,<p>
|
---|
[1922] | 292 | <tr>_intlinkoption_</tr>)
|
---|
[876] | 293 | }
|
---|
| 294 |
|
---|
| 295 | _fcoption_ {
|
---|
[2496] | 296 | <td valign=baseline>Document page layout</td>
|
---|
| 297 | <td><input type=radio name=fc value=1 onClick="updatefc(1);"
|
---|
| 298 | _If_(_cgiargfc_, checked)>navigation bar at top<br>
|
---|
| 299 | <input type=radio name=fc value=0 onClick="updatefc(0);"
|
---|
| 300 | _If_(_cgiargfc_,, checked)>no navigation bar</td>
|
---|
[876] | 301 | }
|
---|
| 302 |
|
---|
| 303 | _hloption_ {
|
---|
[2496] | 304 | <td valign=baseline>Search term highlighting</td>
|
---|
| 305 | <td><input type=radio name=hl value=1 onClick="updatehl(1);"
|
---|
| 306 | _If_(_cgiarghl_, checked)>highlight search terms<br>
|
---|
| 307 | <input type=radio name=hl value=0 onClick="updatehl(0);"
|
---|
| 308 | _If_(_cgiarghl_,, checked)>don't highlight search terms</td>
|
---|
[876] | 309 | }
|
---|
| 310 |
|
---|
[1950] | 311 | #search pref options
|
---|
| 312 | _boxsizeoption_{
|
---|
| 313 | <td valign=baseline>_textqueryboxsize_</td>
|
---|
| 314 | <td><input type=radio name=qb value=0 onClick="updateqb(0);"
|
---|
| 315 | _If_(_cgiargqb_,, checked)>_textregbox_<br>
|
---|
| 316 | <input type=radio name=qb value=1 onClick="updateqb(1);"
|
---|
| 317 | _If_(_cgiargqb_, checked)>_textbigbox_</td>
|
---|
| 318 | }
|
---|
| 319 |
|
---|
| 320 | _caseoption_ {
|
---|
| 321 | <td valign=baseline>_textcasediffs_</td>
|
---|
| 322 | <td><input type=radio name=k value=1 onClick="updatek(1);"
|
---|
| 323 | _If_(_cgiargk_, checked)>_textignorecase_<br>
|
---|
| 324 | <input type=radio name=k value=0 onClick="updatek(0);"
|
---|
| 325 | _If_(_cgiargk_,, checked)>_textmatchcase_</td>
|
---|
| 326 | }
|
---|
| 327 |
|
---|
| 328 | _caseoption_ [l=ar] {}
|
---|
[666] | 329 | _caseoption_ [l=zh] {}
|
---|
| 330 |
|
---|
[128] | 331 | _stemoption_ {
|
---|
[1950] | 332 | <td valign=baseline>_textwordends_</td>
|
---|
| 333 | <td><input type=radio name=s value=1 onClick="updates(1);"
|
---|
[876] | 334 | _If_(_cgiargs_, checked)>_textstem_<br>
|
---|
[591] | 335 | <input type=radio name=s value=0 onClick="updates(0);"
|
---|
[1922] | 336 | _If_(_cgiargs_,, checked)>_textnostem_</td>
|
---|
[128] | 337 | }
|
---|
| 338 |
|
---|
[666] | 339 | _stemoption_ [l=zh] {}
|
---|
| 340 |
|
---|
[1950] | 341 |
|
---|
| 342 | _modeoption_ {
|
---|
| 343 | <td valign=baseline>_textquerymode_</td>
|
---|
| 344 | <td><input type=radio name=b value=0 onClick="updateb(0);"
|
---|
| 345 | _If_(_cgiargb_,, checked)>_textsimplemode_<br>
|
---|
| 346 | <input type=radio name=b value=1 onClick="updateb(1);"
|
---|
| 347 | _If_(_cgiargb_, checked)>_textadvancedmode_</td>
|
---|
| 348 | }
|
---|
| 349 |
|
---|
[4763] | 350 | _formmodeoption_{
|
---|
| 351 | <td valign=baseline>_textformtype_</td>
|
---|
| 352 | <td><input type=radio name=qf value=0 onClick="updateqf(0);"
|
---|
| 353 | _If_(_cgiargf_,, checked)>_textsimple_<br>
|
---|
| 354 | <input type=radio name=qf value=1 onClick="updateqf(1);"
|
---|
| 355 | _If_(_cgiargqf_, checked)>_textadvanced_</td>
|
---|
| 356 | }
|
---|
[1950] | 357 |
|
---|
[4763] | 358 | _formnumfieldoption_ {<td></td><td>_textwith_
|
---|
| 359 | <select name="fqn" onChange="updatefqn();">
|
---|
| 360 | <option value="2"_If_("_cgiargfqn_" eq "2", selected)>2
|
---|
| 361 | <option value="4"_If_("_cgiargfqn_" eq "4", selected)>4
|
---|
| 362 | <option value="6"_If_("_cgiargfqn_" eq "6", selected)>6
|
---|
| 363 | <option value="8"_If_("_cgiargfqn_" eq "8", selected)>8
|
---|
| 364 | </select>_textfields_</td>
|
---|
| 365 | }
|
---|
| 366 |
|
---|
[1950] | 367 | _searchhistoryop_ {
|
---|
| 368 | <td valign=baseline>_textsearchhistory_</td>
|
---|
| 369 | <td><input type=radio name="hd" value=0 onClick="updatehd();"
|
---|
| 370 | _If_("_cgiarghd_" eq "0", checked)>_textnohistorydisplay_<br>
|
---|
| 371 | <input type=radio name="hd" value=1 onClick="updatehd();"
|
---|
| 372 | _If_("_cgiarghd_" eq "0",, checked)>_texthistorydisplay_</td>
|
---|
| 373 | }
|
---|
| 374 |
|
---|
| 375 | _relateddocop_ {
|
---|
[2106] | 376 | <td colspan=2><nobr><input type=checkbox name="rd" value=1 onClick="updaterd();" _If_("_cgiargrd_" eq "1", checked)>
|
---|
[1950] | 377 | Display related documents</nobr></td>
|
---|
| 378 | }
|
---|
| 379 |
|
---|
| 380 | _historynumrecords_{<select name="hdn" onChange="updatehd();">
|
---|
| 381 | <option value="5"_If_("_cgiarghd_" eq "5", selected)>5
|
---|
| 382 | <option value="10"_If_("_cgiarghd_" eq "10", selected)>10
|
---|
| 383 | <option value="15"_If_("_cgiarghd_" eq "15", selected)>15
|
---|
| 384 | <option value="20"_If_("_cgiarghd_" eq "20", selected)>20
|
---|
| 385 | </select>}
|
---|
| 386 |
|
---|
[128] | 387 | _maxdocoption_ {
|
---|
[591] | 388 | <select name="m" onChange="updatem();">
|
---|
[180] | 389 | <option value="50"_If_("_cgiargm_" eq "50", selected)>50
|
---|
| 390 | <option value="100"_If_("_cgiargm_" eq "100", selected)>100
|
---|
| 391 | <option value="200"_If_("_cgiargm_" eq "200", selected)>200
|
---|
[128] | 392 | </select>
|
---|
| 393 | }
|
---|
| 394 |
|
---|
| 395 | _hitsperpageoption_ {
|
---|
[591] | 396 | <select name="o" onChange="updateo();">
|
---|
[180] | 397 | <option value="10"_If_("_cgiargo_" eq "10", selected)>10
|
---|
| 398 | <option value="20"_If_("_cgiargo_" eq "20", selected)>20
|
---|
| 399 | <option value="50"_If_("_cgiargo_" eq "50", selected)>50
|
---|
[876] | 400 | <option value="100")_If_("_cgiargo_" eq "100", selected)>_textall_
|
---|
[128] | 401 | </select>
|
---|
| 402 | }
|
---|
| 403 |
|
---|
[725] | 404 | _extlinkoption_ {
|
---|
[1922] | 405 | <td>_textextlink_</td>
|
---|
[1950] | 406 | <td><select name="el" onChange="updateel();">
|
---|
[725] | 407 | <option value="prompt"_If_("_cgiargel_" eq "prompt", selected)>
|
---|
[876] | 408 | _textlinkinterm_
|
---|
[725] | 409 | <option value="direct"_If_("_cgiargel_" eq "direct", selected)>
|
---|
[876] | 410 | _textlinkdirect_
|
---|
[1922] | 411 | </select></td>
|
---|
[725] | 412 | }
|
---|
| 413 |
|
---|
| 414 | _intlinkoption_ {
|
---|
[1922] | 415 | <td>_textintlink_</td>
|
---|
[1950] | 416 | <td><select name="il" onChange="updateil();">
|
---|
[725] | 417 | <option value="l"_If_("_cgiargil_" eq "l", selected)>
|
---|
[876] | 418 | _textdigitlib_
|
---|
[725] | 419 | <option value="w"_If_("_cgiargil_" eq "w", selected)>
|
---|
[876] | 420 | _textweb_
|
---|
[1922] | 421 | </select></td>
|
---|
[725] | 422 | }
|
---|
| 423 |
|
---|
[1950] | 424 | # set from within pageaction
|
---|
[876] | 425 | _languageoption_ {}
|
---|
[1856] | 426 | _encodingoption_ {}
|
---|
[725] | 427 |
|
---|
[276] | 428 | _formatoption_ {
|
---|
[1922] | 429 | <td>_textformat_</td>
|
---|
[1950] | 430 | <td><select name="v" onChange="updatev();">
|
---|
[644] | 431 | <option value="0"_If_("_cgiargv_" eq "0", selected)>_textgraphical_
|
---|
| 432 | <option value="1"_If_("_cgiargv_" eq "1", selected)>_texttextual_
|
---|
[1922] | 433 | </select></td>
|
---|
[276] | 434 | }
|
---|
| 435 |
|
---|
[128] | 436 | _content_ {
|
---|
[10872] | 437 | <div class="navbar">
|
---|
| 438 | <p class="navbar">
|
---|
[7503] | 439 | _optnavigationbar_
|
---|
[10872] | 440 | </p>
|
---|
| 441 | </div>
|
---|
[1950] | 442 |
|
---|
[10872] | 443 | _If_(_prefschanged_,<p>_prefschanged_<br><div class="divbar"> </div>)
|
---|
| 444 |
|
---|
[128] | 445 | <blockquote>
|
---|
| 446 |
|
---|
| 447 | <form name=PrefForm method=get action="_gwcgi_">
|
---|
[10989] | 448 | <!--<input type="hidden" name="eold" value="_decodedcompressedoptions_">-->
|
---|
| 449 | <input type="hidden" name="e" value="_compressedoptions_">
|
---|
[876] | 450 | _If_(_collectionoption_,_collectionprefs_)
|
---|
| 451 | _presentationprefs_
|
---|
[4763] | 452 | _searchprefs_
|
---|
[876] | 453 | </blockquote>
|
---|
| 454 | </form>
|
---|
| 455 | }
|
---|
| 456 |
|
---|
[4763] | 457 | #search prefs
|
---|
| 458 | _searchprefs_ {
|
---|
[2424] | 459 | <center><table border=0 cellpadding=0 cellspacing=0 width=_pagewidth_><tr>
|
---|
| 460 | <td><h3>_textsearchprefs_</h3></td>
|
---|
| 461 | <td align=right><input type=submit name="bp" value="_textsetprefs_"></td>
|
---|
| 462 | </tr></table></center>
|
---|
| 463 |
|
---|
[1950] | 464 | <table>
|
---|
[4763] | 465 | _querytypedependantoptions_
|
---|
[128] | 466 |
|
---|
[1950] | 467 | <tr>_caseoption_</tr>
|
---|
[128] | 468 |
|
---|
[1950] | 469 | <tr>_stemoption_</tr>
|
---|
[548] | 470 |
|
---|
[1950] | 471 | <tr>_searchhistoryop_</tr>
|
---|
[1922] | 472 |
|
---|
[2299] | 473 | <!--
|
---|
| 474 | Don't include this for now
|
---|
[1950] | 475 | <tr>_relateddocop_</tr>
|
---|
[2299] | 476 | -->
|
---|
[1950] | 477 |
|
---|
| 478 | <tr><td colspan=2>_textprefop_</td></tr>
|
---|
| 479 | </table>
|
---|
| 480 | </blockquote>
|
---|
[10872] | 481 | <div class="divbar"> </div>
|
---|
[1950] | 482 | <blockquote>
|
---|
[876] | 483 | }
|
---|
[725] | 484 |
|
---|
[4763] | 485 | _querytypedependantoptions_ {
|
---|
| 486 | _If_("_cgiargct_" eq "0", _plainqueryoptions_,_mgppqueryoptions_)
|
---|
| 487 | }
|
---|
| 488 |
|
---|
| 489 | _mgppqueryoptions_{
|
---|
| 490 | _If_("_cgiargqto_" eq "1", _plainqueryoptions_)
|
---|
| 491 | _If_("_cgiargqto_" eq "2", _formqueryoptions_)
|
---|
| 492 | _If_("_cgiargqto_" eq "3", _dualqueryoptions_)
|
---|
| 493 | }
|
---|
| 494 |
|
---|
| 495 | #query options for mg colls and mgpp colls with only plain searching
|
---|
| 496 | _plainqueryoptions_ {
|
---|
| 497 | <tr>_modeoption_</tr>
|
---|
| 498 |
|
---|
| 499 | <tr>_boxsizeoption_</tr>
|
---|
| 500 | }
|
---|
| 501 |
|
---|
| 502 | #query options for mgpp colls with only form searching
|
---|
| 503 | _formqueryoptions_ {
|
---|
[4782] | 504 | <noscript><tr><td colspan=2><b>_query:textnojsformwarning_</b></td></tr></noscript>
|
---|
[4763] | 505 | <tr>_formmodeoption_</tr>
|
---|
| 506 | <tr>_formnumfieldoption_</tr>
|
---|
| 507 | }
|
---|
| 508 |
|
---|
| 509 | #query options for mgpp colls with both types of search available
|
---|
| 510 | _dualqueryoptions_ {
|
---|
[4782] | 511 | <tr><td colspan=2><input type=radio name=qt value=0 onClick="updateqt(0);" _If_(_cgiargqt_,, checked)>_textplainsearch_</td></tr>
|
---|
[4763] | 512 | <tr><td></td><td><table>_plainqueryoptions_</table></td></tr>
|
---|
[4782] | 513 | <tr><td colspan=2><input type=radio name=qt value=1 onClick="updateqt(1);" _If_(_cgiargqt_,checked)>_textformsearch_</td></tr>
|
---|
[4763] | 514 | <tr><td></td><td><table>_formqueryoptions_</table></td></tr>
|
---|
| 515 | }
|
---|
| 516 |
|
---|
[876] | 517 | _collectionprefs_ {
|
---|
| 518 | <h3>_textcollectionprefs_</h3>
|
---|
| 519 | _collectionoption_
|
---|
[1950] | 520 | </blockquote>
|
---|
[10872] | 521 | <div class="divbar"> </div>
|
---|
[1950] | 522 | <blockquote>
|
---|
[876] | 523 | }
|
---|
[725] | 524 |
|
---|
[876] | 525 | _presentationprefs_ {
|
---|
| 526 | <h3>_textpresentationprefs_</h3>
|
---|
[1950] | 527 | <table>_htmloptions_
|
---|
[876] | 528 |
|
---|
[1950] | 529 | _If_(_languageoption_,<tr><td>_textlanguage_</td><td>_languageoption_</td></tr>)
|
---|
[276] | 530 |
|
---|
[1950] | 531 | _If_(_encodingoption_,<tr><td>_textencoding_</td><td>_encodingoption_</td></tr>)
|
---|
[591] | 532 |
|
---|
[1950] | 533 | <tr>_formatoption_</tr></table>
|
---|
| 534 | </blockquote>
|
---|
[10872] | 535 | <div class="divbar"> </div>
|
---|
[1950] | 536 | <blockquote>
|
---|
[128] | 537 | }
|
---|
[148] | 538 |
|
---|
[1922] | 539 |
|
---|
[1950] | 540 | #######################################################################
|
---|
| 541 | # icons
|
---|
| 542 | #######################################################################
|
---|
| 543 |
|
---|
[3775] | 544 | _iconthispage_ {<img src="_httpiconhpref_" alt="_textpreferences_" title="_textpreferences_" width="_widthhpref_" height="_heighthpref_">}
|
---|