Ignore:
Timestamp:
2004-05-25T16:31:41+12:00 (20 years ago)
Author:
mdewsnip
Message:

(Human Info) Added language parameter to all calls of get_info, get_children, has_children, and get_contents. Also, removed some of the modifications so it compiles again.

File:
1 edited

Legend:

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

    r7193 r7432  
    126126  parse_formatstring (formatinfo.DocumentHeading, formatlistptr, metadata, getParents);
    127127
    128   if (!get_info (args["d"], args["c"], metadata, getParents, collectproto, response, logout))
     128  if (!get_info (args["d"], args["c"], args["l"], metadata, getParents, collectproto, response, logout))
    129129    return;
    130130
     
    159159  parse_formatstring (formatinfo.RelatedDocuments, formatlistptr, metadata, getParents);
    160160
    161   if (!get_info (args["d"], args["c"], metadata, getParents, collectproto, response, logout))
     161  if (!get_info (args["d"], args["c"], args["l"], metadata, getParents, collectproto, response, logout))
    162162    return;
    163163 
     
    223223
    224224    FilterResponse_t tmp;
    225     get_children (section.OID, args["c"], metadata, getParents, collectproto, tmp, logout);
     225    get_children (section.OID, args["c"], args["l"], metadata, getParents, collectproto, tmp, logout);
    226226    ResultDocInfo_tarray::iterator thisdoc = tmp.docInfo.begin();
    227227    ResultDocInfo_tarray::iterator lastdoc = tmp.docInfo.end();
     
    286286  metadata.insert (classifytype);
    287287
    288   if (!get_info (tOID, args["c"], metadata, getParents, collectproto, response, logout))
     288  if (!get_info (tOID, args["c"], args["l"], metadata, getParents, collectproto, response, logout))
    289289    return;
    290290  classifytype = response.docInfo[0].metadata[classifytype].values[0];
     
    328328
    329329  // protocol call
    330   if (!get_info (OID, args["c"], metadata, getParents, collectproto, response, logout))
     330  if (!get_info (OID, args["c"], args["l"], metadata, getParents, collectproto, response, logout))
    331331    return;
    332332
     
    474474    get_top (args["cl"], classification);   
    475475
    476   bool haschildren = has_children (OID, args["c"], collectproto, logout);
     476  bool haschildren = has_children (OID, args["c"], args["l"], collectproto, logout);
    477477
    478478  if ((!args["d"].empty()) && fulltoc)
     
    486486    metadata.insert ("childtype");
    487487   
    488     if (!get_info (parents, args["c"], metadata, getParents, collectproto, response, logout))
     488    if (!get_info (parents, args["c"], args["l"], metadata, getParents, collectproto, response, logout))
    489489      return;
    490490   
     
    494494            browsermap, formatinfo, formatlistmap);
    495495
    496     if (!get_info (parents, args["c"], metadata, getParents, collectproto, response, logout))
     496    if (!get_info (parents, args["c"], args["l"], metadata, getParents, collectproto, response, logout))
    497497      return;
    498498   
     
    541541
    542542  if (haschildren)
    543     get_children (OID, args["c"], metadata, getParents,
     543    get_children (OID, args["c"], args["l"], metadata, getParents,
    544544          collectproto, response, logout);
    545545  else if (!is_top(OID)) {
    546     get_children (OID + ".pr", args["c"], metadata, getParents,
     546    get_children (OID + ".pr", args["c"], args["l"], metadata, getParents,
    547547          collectproto, response, logout);
    548548    haschildren = true;
     
    576576    if (OID.empty()) OID = args["cl"];
    577577
    578     bool haschildren = has_children (OID, args["c"], collectproto, logout);
     578    bool haschildren = has_children (OID, args["c"], args["l"], collectproto, logout);
    579579
    580580    // get parents list
     
    597597        metadata.insert ("thistype");
    598598
    599         get_info ( topOID, args["c"], metadata, getParents, collectproto, response, logout);
     599        get_info ( topOID, args["c"], args["l"], metadata, getParents, collectproto, response, logout);
    600600        if (!response.docInfo[0].metadata["thistype"].values.empty())
    601601            classifytype = response.docInfo[0].metadata["thistype"].values[0];
     
    617617        metadata.insert ("haschildren");
    618618
    619         get_info (topOID, args["c"], metadata, getParents, collectproto, response, logout);
     619        get_info (topOID, args["c"], args["l"], metadata, getParents, collectproto, response, logout);
    620620
    621621        // ouput top OID section
     
    656656
    657657        OID = parents[tabcount];
    658         get_info (OID, args["c"], metadata, getParents, collectproto, response, logout);
     658        get_info (OID, args["c"], args["l"], metadata, getParents, collectproto, response, logout);
    659659        get_top (OID, classification);
    660660
     
    683683
    684684        if (haschildren)
    685             get_children (OID, args["c"], metadata, getParents,
     685            get_children (OID, args["c"], args["l"], metadata, getParents,
    686686                collectproto, response, logout);
    687687        else if (!is_top(OID)) {
    688             get_children (OID + ".pr", args["c"], metadata, getParents,
     688            get_children (OID + ".pr", args["c"], args["l"], metadata, getParents,
    689689            collectproto, response, logout);
    690690            haschildren = true;
     
    713713        if (tabcount) pOID = parents[tabcount-1];
    714714        else pOID = OID;
    715         get_info (pOID, args["c"], metadata, getParents, collectproto, response, logout);
     715        get_info (pOID, args["c"], args["l"], metadata, getParents, collectproto, response, logout);
    716716
    717717        // get classifytype of this level
     
    738738        use_table = is_table_content (formatlistptr);
    739739
    740         get_children (OID, args["c"], metadata, getParents, collectproto, response, logout);
     740        get_children (OID, args["c"], args["l"], metadata, getParents, collectproto, response, logout);
    741741
    742742        ResultDocInfo_tarray::iterator thissibling = response.docInfo.begin();
Note: See TracChangeset for help on using the changeset viewer.