Ignore:
Timestamp:
2004-07-19T16:31:09+12:00 (20 years ago)
Author:
davidb
Message:

'gliapplet' flag added -- in comparable style of 'collector' flag --
to control whether applet version of GLI is enabled/disabled in
greenstone installation.

CVS: ----------------------------------------------------------------------

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r7706 r7762  
    4545  collector_disabled = true;
    4646  translator_disabled = true;
     47  gliapplet_disabled = true;
    4748  recpt = NULL;
    4849
     
    730731  // _textgoadmin_         set to "" if status is disabled in main.cfg
    731732  // _textgotranslator_    set to "" if translator is disabled in main.cfg
     733  // _textgogliapplet_     set to "" if gliapplet is disabled in main.cfg
    732734
    733735
     
    812814      set_collectionlist_macro (disp, protos, logout);
    813815    }
     816
     817  } else if (arg_p == "gli") {
     818    if (gliapplet_disabled) disp.setmacro ("gliapplet", "gli", "");
    814819
    815820  } else if (arg_p == "homepref") {
     
    10291034         (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) {
    10301035    translator_disabled = false;
    1031   } else {
     1036  } else if ((key == "gliapplet") && (cfgline.size() == 1) &&
     1037         (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) {
     1038    gliapplet_disabled = false;
     1039  }
     1040  else {
    10321041    // call the parent class to deal with the things which
    10331042    // are not dealt with here
Note: See TracChangeset for help on using the changeset viewer.