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/documentaction.cpp

    r7333 r7432  
    297297      // get metadata for parent document
    298298      get_top (args["d"], top);
    299       if (get_info (top, args["c"], metadata, false, collectproto, filt_response, logout)) {
     299      if (get_info (top, args["c"], args["l"], metadata, false, collectproto, filt_response, logout)) {
    300300    text_t url = filt_response.docInfo[0].metadata["URL"].values[0];
    301301   
     
    571571    metadata.insert ("mdtype"); // in case there is a datelist
    572572    bool getParents = false;
    573     get_children ("", collection, metadata, getParents, collectproto, response, logout);
     573    get_children ("", collection, args["l"], metadata, getParents, collectproto, response, logout);
    574574   
    575575    bool has_search_button = true;
     
    608608  recptproto *collectproto = protos->getrecptproto (args["c"], logout);
    609609
    610   if (get_info (inlink, args["c"], metadata, false, collectproto, response, logout)) {
     610  if (get_info (inlink, args["c"], args["l"], metadata, false, collectproto, response, logout)) {
    611611    if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    612612      outlink = "_httpdocument_&d=" + response.docInfo[0].metadata["section"].values[0];
     
    631631      collectproto = protos->getrecptproto (*col_here, logout);
    632632     
    633       if (get_info (inlink, *col_here, metadata, false, collectproto, response, logout)) {
     633      if (get_info (inlink, *col_here, args["l"], metadata, false, collectproto, response, logout)) {
    634634    if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    635635      outlink = "_httpdocument_&c=" + *col_here + "&d=" +
     
    786786       //related documents in a vertical list. This is the default format.
    787787
    788        if (get_info (arg_d, collection, metadata, options, false, collectproto, response, logout))
     788       if (get_info (arg_d, collection, args["l"], metadata, options, false, collectproto, response, logout))
    789789     relation += get_related_docs(collection, collectproto, response.docInfo[0], logout);
    790790       
     
    796796 
    797797    // get metadata for this document and it's parents
    798     if (get_info (arg_d, collection, metadata, options,
     798    if (get_info (arg_d, collection, args["l"], metadata, options,
    799799          true, collectproto, response, logout)) {
    800800
     
    856856      metadata.insert ("parameters");
    857857
    858       if (get_info (classtop, collection, metadata, false, collectproto, response, logout)) {
     858      if (get_info (classtop, collection, args["l"], metadata, false, collectproto, response, logout)) {
    859859     
    860860    text_t &title = response.docInfo[0].metadata["Title"].values[0];
     
    11271127  }
    11281128   
    1129   if (get_info (OID, collection, metadata, getParents, collectproto, inforesponse, logout)) {
     1129  if (get_info (OID, collection, args["l"], metadata, getParents, collectproto, inforesponse, logout)) {
    11301130    int hastxt = inforesponse.docInfo[0].metadata["hastxt"].values[0].getint();
    11311131    int haschildren = inforesponse.docInfo[0].metadata["haschildren"].values[0].getint();
     
    11521152      if (args["d"].empty()) is_classify = true;
    11531153
    1154       get_contents (exOID, is_classify, metadata, collection,
     1154      get_contents (exOID, is_classify, metadata, collection, args["l"],
    11551155            collectproto, inforesponse, logout);
    11561156   
     
    12181218  // get info on current section
    12191219  metadata.insert("haschildren");
    1220   if (!get_info(arg_d, args["c"], metadata, false, collectproto, response, logout)) {
     1220  if (!get_info(arg_d, args["c"], args["l"], metadata, false, collectproto, response, logout)) {
    12211221    logout << "error 1 in documentaction::set_arrow_macros\n";
    12221222    return;
     
    12291229  text_t thisoid = arg_d;
    12301230  while (parentcount > 0) {
    1231     get_children (get_parent(thisoid), args["c"], metadata, false,
     1231    get_children (get_parent(thisoid), args["c"], args["l"], metadata, false,
    12321232          collectproto, response, logout);
    12331233    ResultDocInfo_tarray::iterator this_sibling = response.docInfo.begin();
     
    12421242      // down to the last descendant
    12431243      while (section_has_children) {
    1244         get_children (previous_sibling, args["c"], metadata, false,
     1244        get_children (previous_sibling, args["c"], args["l"], metadata, false,
    12451245              collectproto, presponse, logout);
    12461246        if (!presponse.docInfo.empty()) {
Note: See TracChangeset for help on using the changeset viewer.