Changeset 12875


Ignore:
Timestamp:
2006-09-27T17:24:59+12:00 (18 years ago)
Author:
kjdon
Message:

added in accentfolding preferences. Also, made stem, case, accent prefs under the control of ss, ks, afs args so they can be turned off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/pref.dm

    r12779 r12875  
    8484_getargsfunction_ {
    8585function getargs () \{
    86   return argk + args + argm + argo + argrd + arghd + argb + argqb + argfqn + argqt_If_(_collectionoption_,_ccsargs_)_If_(_htmloptions_,_htmlargs_);
     86  return argk + args + argaf + argm + argo + argrd + arghd + argb + argqb + argfqn + argqt_If_(_collectionoption_,_ccsargs_)_If_(_htmloptions_,_htmlargs_);
    8787\}
    8888}
     
    138138argfqn = "";
    139139argqt= "";
     140argaf = "";
    140141
    141142_If_(_collectionoption_,_ccsfunctions_,_standardfunctions_)
     
    156157  if (value != _cgiargs_) args = "&s=" + value;
    157158  else args = "";
     159  updatehrefs();
     160\}
     161
     162function updateaf (value) \{
     163  if (value != _cgiargaf_) argaf = "&af=" + value;
     164  else argaf = "";
    158165  updatehrefs();
    159166\}
     
    371378_stemoption_ [l=zh] {}
    372379
     380_accentoption_ {
     381<td valign=baseline>_textaccentdiffs_</td>
     382<td><input type=radio name=af value=1 onClick="updateaf(1);"
     383  _If_(_cgiargaf_, checked)>_textignoreaccents_<br>
     384<input type=radio name=af value=0 onClick="updateaf(0);"
     385  _If_(_cgiargaf_,, checked)>_textmatchaccents_</td>
     386}
    373387
    374388_searchhistoryop_ {
     
    443457_content_ {
    444458_optnavigationbar_
    445 
    446459_If_(_prefschanged_,<p>_prefschanged_<br><div class="divbar">&nbsp;</div>)
    447460
     
    465478
    466479<table>
     480<tr>_modeoption_</tr>
     481
    467482<tr>_querytypedependantoptions_</tr>
    468483
    469 <tr>_modeoption_</tr>
    470 _If_("_cgiargct_" eq "2",,
     484_If_("_cgiargks_" eq "1",
    471485<tr>_caseoption_</tr>
    472 
     486)
     487_If_("_cgiargss_" eq "1",
    473488<tr>_stemoption_</tr>
     489)
     490_If_("_cgiargafs_" eq "1",
     491<tr>_accentoption_</tr>
    474492)
    475493<tr>_searchhistoryop_</tr>
Note: See TracChangeset for help on using the changeset viewer.