Changeset 11988


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

changed the defaults for ct, qt and qto to be empty, then set_query_type_args is called to set them

File:
1 edited

Legend:

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

    r11751 r11988  
    6969  arg_ainfo.multiplechar = false;
    7070  arg_ainfo.defaultstatus = cgiarginfo::weak;
    71   arg_ainfo.argdefault = "0";
     71  arg_ainfo.argdefault = g_EmptyText;
    7272  arg_ainfo.savedarginfo = cgiarginfo::must;
    7373  argsinfo.addarginfo (NULL, arg_ainfo);
     
    319319  arg_ainfo.multiplechar = false;
    320320  arg_ainfo.defaultstatus = cgiarginfo::weak;
    321   arg_ainfo.argdefault = "0";
     321  arg_ainfo.argdefault = g_EmptyText;
    322322  arg_ainfo.savedarginfo = cgiarginfo::must;
    323323  argsinfo.addarginfo (NULL, arg_ainfo);
     
    328328  arg_ainfo.multiplechar = false;
    329329  arg_ainfo.defaultstatus = cgiarginfo::weak;
    330   arg_ainfo.argdefault = "3";
     330  arg_ainfo.argdefault = g_EmptyText;
    331331  arg_ainfo.savedarginfo = cgiarginfo::must;
    332332  argsinfo.addarginfo (NULL, arg_ainfo);
     
    581581  // _thislast_
    582582
     583 
    583584  define_form_macros(disp, args, protos, logout);
    584585 
    585586  define_query_interface(disp, args, protos, logout);
     587
    586588
    587589}
     
    609611    return;
    610612  }
    611  
    612    
     613   
    613614  text_tmap::iterator check = colinfo->format.find("QueryInterface");
    614615  if(check != colinfo->format.end()){
     
    678679  recptproto *collectproto = protos->getrecptproto (args["c"], logout);
    679680  if (collectproto == NULL) return;
     681
     682  ColInfoResponse_t *colinfo = recpt->get_collectinfo_ptr(collectproto,
     683                              args["c"],
     684                              logout);
     685  set_query_type_args(colinfo, args);
    680686
    681687  comerror_t err;
     
    13451351  get_formatted_query_string(formattedstring, segment, args, disp, logout);
    13461352
    1347   if (!formattedstring.empty()) { // do the query
     1353    if (!formattedstring.empty()) { // do the query
    13481354    // note! formattedstring is in unicode! mg and mgpp must convert!
    13491355    set_queryfilter_options (request, formattedstring, args);
Note: See TracChangeset for help on using the changeset viewer.