Changeset 7408


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

(Human Info) Added language argument to get_info calls.

File:
1 edited

Legend:

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

    r7371 r7408  
    5757  arg_ainfo.multiplechar = true;
    5858  arg_ainfo.defaultstatus = cgiarginfo::none;
    59   arg_ainfo.argdefault = "";
     59  arg_ainfo.argdefault = g_EmptyText;
    6060  arg_ainfo.savedarginfo = cgiarginfo::can;
    6161  argsinfo.addarginfo (NULL, arg_ainfo);
     
    6565  arg_ainfo.multiplechar = true;
    6666  arg_ainfo.defaultstatus = cgiarginfo::none;
    67   arg_ainfo.argdefault = "";
     67  arg_ainfo.argdefault = g_EmptyText;
    6868  arg_ainfo.savedarginfo = cgiarginfo::can;
    6969  argsinfo.addarginfo (NULL, arg_ainfo);
     
    140140      recptproto *collectproto = protos->getrecptproto (thiscollection, logout);
    141141
    142       if (get_info (arg_href, thiscollection, metadata, false, collectproto, response, logout)) {
     142      if (get_info (arg_href, thiscollection, args["l"], metadata, false, collectproto, response, logout)) {
    143143    if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    144144      link = "_httpdoc_&d=" + response.docInfo[0].metadata["section"].values[0];
     
    164164      if (collectproto == NULL) {col_here ++; continue;}
    165165
    166       if (get_info (arg_href, *col_here, metadata, false, collectproto, response, logout)) {
     166      if (get_info (arg_href, *col_here, args["l"], metadata, false, collectproto, response, logout)) {
    167167        if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    168168          link = "_httpdoc_&c=" + *col_here + "&d=" +
     
    218218    recptproto *collectproto = protos->getrecptproto (*col_here, logout);
    219219   
    220     if (get_info (args["href"], *col_here, metadata, false, collectproto, response, logout)) {
     220    if (get_info (args["href"], *col_here, args["l"], metadata, false, collectproto, response, logout)) {
    221221      if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    222222        text_t collectionname = *col_here;
     
    224224        metadata.insert ("collectionname");
    225225        FilterResponse_t nresponse;
    226         if (get_info ("collection", *col_here, metadata, false, collectproto, nresponse, logout)) {
     226        if (get_info ("collection", *col_here, args["l"], metadata, false, collectproto, nresponse, logout)) {
    227227          if (!nresponse.docInfo[0].metadata["collectionname"].values[0].empty())
    228228        collectionname = nresponse.docInfo[0].metadata["collectionname"].values[0];
Note: See TracChangeset for help on using the changeset viewer.