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