Ignore:
Timestamp:
2010-05-20T20:59:01+12:00 (14 years ago)
Author:
davidb
Message:

For the CGI 'e' variable to be inter-changable between mod_gsdl and library.cgi then they need to have exactly the same actions. The code has been refactored so they now use a shared function to do this, the ensure this is the case.

Location:
main/trunk/greenstone2/runtime-src/src/protocol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/protocol/recptproto.h

    r16310 r22142  
    5353class recptproto {
    5454public:
     55
     56  recptproto() {};
     57  virtual ~recptproto() {};
    5558
    5659  // add collection server to protocol
  • main/trunk/greenstone2/runtime-src/src/protocol/recptprototools.cpp

    r16180 r22142  
    143143  metadata.insert ("haschildren");
    144144
    145   if (get_info (OID, collection, lang, metadata, false, collectproto,   response, logout))
     145  if (get_info (OID, collection, lang, metadata, true, collectproto,    response, logout))
    146146  {
    147147    if (response.docInfo[0].metadata["haschildren"].values[0] == "1")
     
    216216  {
    217217    FilterResponse_t tmp;
    218     bool getParents = false;
     218    bool getParents = true;
    219219    get_children (section.OID, collection, lang, metadata, getParents, collectproto, tmp, logout);
    220220    ResultDocInfo_tarray::iterator thisdoc = tmp.docInfo.begin();
     
    244244
    245245  // get topOIDs info
    246   if (get_info (topOID, collection, lang, metadata, false, collectproto, response, logout))
     246  if (get_info (topOID, collection, lang, metadata, true, collectproto, response, logout))
    247247  {
    248248    recurse_contents (response.docInfo[0], is_classify, collection, lang, metadata, collectproto, response, logout);
Note: See TracChangeset for help on using the changeset viewer.