Changeset 2415


Ignore:
Timestamp:
2001-05-15T11:08:08+12:00 (23 years ago)
Author:
sjboddie
Message:

re-added the "set preferences" button to the preferences page

Location:
trunk/gsdl
Files:
9 edited

Legend:

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

    r2301 r2415  
    582582_textfcoption_ [l=nl] {Plaats navigatie lijst bovenaan de documenten pagina}
    583583_texthloption_ [l=nl] {Accentueer zoektermen in document tekst}
    584 _texthistorydisplay_ [l=nl] {Weergave vroegere zoekresultaten}
    585584
    586585
  • trunk/gsdl/macros/english.dm

    r2395 r2415  
    612612#------------------------------------------------------------
    613613
     614_textprefschanged_ {
     615Preferences have been set as follows. Do not use your browsers' 'back' button -
     616it will unset them!
     617}
     618_textsetprefs_ {set preferences}
    614619_textsearchprefs_ {Search preferences}
    615620_textcollectionprefs_ {Collection preferences}
  • trunk/gsdl/macros/french.dm

    r2301 r2415  
    460460_textfcoption_ [l=fr] {Inclure la barre de naviguation en haut des pages de document}
    461461_texthloption_ [l=fr] {Mettre en evidence les termes de recherche au sein du document}
    462 _texthistorydisplay_ [l=fr] {afficher l'historique des recherches}
    463462
    464463
  • trunk/gsdl/macros/german.dm

    r2301 r2415  
    507507_textfcoption_ [l=de] {Produziere Navigationsleiste am Kopfende des Dokuments}
    508508_texthloption_ [l=de] {Hervorhebung von Suchbegriffen im Text des Dokuments}
    509 _texthistorydisplay_ [l=de] {Anzeige der alten Resultate}
    510509
    511510
  • trunk/gsdl/macros/port.dm

    r2361 r2415  
    488488_textfcoption_ [l=pt] {Inclui barra de navegação no topo da página do documento}
    489489_texthloption_ [l=pt] {Destacar termos buscados com o texto do documento}
    490 _texthistorydisplay_ [l=pt] {exibir histórico de busca}
    491490
    492491
  • trunk/gsdl/macros/pref.dm

    r2299 r2415  
    1111_PreferenceDocsFromWeb_ {}
    1212
     13# this macro will be set to _textprefschanged_ when the "set preferences"
     14# button has been pressed
     15_prefschanged_ {}
    1316
    1417#######################################################################
     
    418421_navigationbar_
    419422</center>
     423_If_(_prefschanged_,<p>_prefschanged_<br><center>_iconblankbar_</center>)
    420424
    421425<blockquote>
     
    454458<tr><td colspan=2>_textprefop_</td></tr>
    455459</table>
     460<br><input type=submit name="bp" value="_textsetprefs_">
    456461</blockquote>
    457462_iconblankbar_
  • trunk/gsdl/macros/spanish.dm

    r2301 r2415  
    501501_textfcoption_ [l=es] {Incluir la barra de navegaci&oacute;n en la parte superior de las p&aacute;ginas del documento}
    502502_texthloption_ [l=es] {Resaltar los t&eacute;rminos de la b&uacute;squeda dentro del documento}
    503 _texthistorydisplay_ [l=es] {mostrar la historia de la b&uacute;squeda}
    504503
    505504
  • trunk/gsdl/src/recpt/pageaction.cpp

    r2370 r2415  
    6060  arg_ainfo.savedarginfo = cgiarginfo::mustnot;
    6161  argsinfo.addarginfo (NULL, arg_ainfo);
     62
     63  arg_ainfo.shortname = "bp";
     64  arg_ainfo.longname = "set preferences button";
     65  arg_ainfo.multiplechar = true;
     66  arg_ainfo.defaultstatus = cgiarginfo::weak;
     67  arg_ainfo.argdefault = "";
     68  arg_ainfo.savedarginfo = cgiarginfo::mustnot;
     69  argsinfo.addarginfo (NULL, arg_ainfo);
    6270}
    6371
     
    6573}
    6674
    67 bool pageaction::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &/*args*/,
     75bool pageaction::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &args,
    6876                ostream &/*logout*/) {
    69   // don't want to check anything yet.
     77
     78  if (args["p"] == "preferences" && !args["bp"].empty()) {
     79    if (args["hd"] != "0") args["hd"] = args["hdn"];
     80  }
     81
    7082  return true;
    7183}
     
    306318  // _numbrowseoptions_    the number of browsing options
    307319
     320  // _prefschanged_        will be set to _textprefschanged_ if the "set preferences" button
     321  //                       was pressed
     322
    308323
    309324  // if page is "help"
     
    472487      encodingoption += "</select>\n";
    473488      disp.setmacro ("encodingoption", "preferences", encodingoption);
     489    }
     490
     491    // _prefschanged_
     492    if (!args["bp"].empty()) {
     493      disp.setmacro ("prefschanged", "preferences", "_textprefschanged_");
    474494    }
    475495   
Note: See TracChangeset for help on using the changeset viewer.