Changeset 11984


Ignore:
Timestamp:
2006-06-30T16:00:11+12:00 (18 years ago)
Author:
kjdon
Message:

searchtypes is now a format statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/collectserver.cpp

    r11964 r11984  
    177177    else if (key == "receptionist") collectinfo.receptionist = value;
    178178    else if (key == "buildtype") collectinfo.buildType = value;
     179    // backwards compatibility - searchytpes is now a format statement
    179180    else if (key == "searchtype") { // means buildtype is mgpp
    180181      if (collectinfo.buildType.empty()) {
    181182    collectinfo.buildType = "mgpp";
    182183      }
    183       collectinfo.searchTypes = cfgline;
     184      joinchar(cfgline, ',', collectinfo.format["SearchTypes"]);
     185      //collectinfo.searchTypes = cfgline;
    184186    }
    185187    else if (key == "separate_cjk") {
     
    191193
    192194    // What have we set for our group list
    193     else if (key == "auth_group")
    194        {
    195       // use the joinchar helper function from
    196       // text_t.h, it takes in the whole cfgline
    197       // array and a separator aka a comma in our
    198       // case and returns a sting separated by a
    199       // comma like this:
    200       //
    201       //   Rene,Kolla,Crystal,Stefan,Aly,Ian
    202      
    203       joinchar(cfgline,',',collectinfo.auth_group);
    204      
    205       //outconvertclass t;
    206       //cerr << t << collectinfo.auth_group << "\n";
    207        }
     195    else if (key == "auth_group") joinchar(cfgline,',',collectinfo.auth_group);
    208196
    209197    // store all the mappings for use when collection meta is read later
Note: See TracChangeset for help on using the changeset viewer.