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

    r7149 r7432  
    220220          text_t collectionname = *collist_here;
    221221         
    222           if (get_info ("collection", *collist_here, metadata, false,
     222          if (get_info ("collection", *collist_here, "", metadata, false,
    223223                (*rprotolist_here).p, response, logout)) {
    224224        if (!lang.empty() && !response.docInfo[0].metadata["collectionname:"+lang].values[0].empty()) {
     
    349349          text_t alt = collectionname;
    350350
    351           if (get_info ("collection", *collist_here, metadata, false,
     351          if (get_info ("collection", *collist_here, "", metadata, false,
    352352                (*rprotolist_here).p, response, logout)) {
    353353        // get the "collectionname"
     
    501501          text_t collectionname = *collist_here;
    502502
    503           if (get_info ("collection", *collist_here, metadata, false,
     503          if (get_info ("collection", *collist_here, "", metadata, false,
    504504                (*rprotolist_here).p, response, logout)) {
    505505        if (!response.docInfo[0].metadata["collectionname"].values[0].empty()) {
     
    760760    cinfo = recpt->get_collectinfo_ptr (collectproto, arg_c, logout);
    761761   
    762     disp.setmacro ("numdocs", "Global", cinfo->numDocs);
     762    disp.setmacro ("numdocs", displayclass::defaultpackage, cinfo->numDocs);
    763763    unsigned long current_time = time(NULL);
    764764    unsigned long builddate = (current_time - cinfo->buildDate) / 86400;
    765     disp.setmacro ("builddate", "Global", builddate);
     765    disp.setmacro ("builddate", displayclass::defaultpackage, builddate);
    766766   
    767767    text_t numbytes;
     
    773773      numbytes = (text_t)cinfo->numBytes + " bytes";
    774774    }
    775     disp.setmacro("numbytes", "Global", numbytes);
     775    disp.setmacro("numbytes", displayclass::defaultpackage, numbytes);
    776776  }
    777777
     
    780780  if (arg_p == "about") {
    781781    if (cinfo == NULL) {
    782       disp.setmacro("cvariable", "Global", arg_c);
     782      disp.setmacro("cvariable", displayclass::defaultpackage, arg_c);
    783783      disp.setmacro("content", arg_p, "<p>_textbadcollection_<p>");
    784784      return;
     
    795795      check = cinfo->format.find("Usability");
    796796      if(check != cinfo->format.end()){
    797     disp.setmacro("usability","Global","_imageusab_");
    798     disp.setmacro("usabinterface","Global",("_usab"+(*check).second+"_"));
    799     disp.setmacro("usabilityscript", "Global", "_usabshowscript_");
     797    disp.setmacro("usability", displayclass::defaultpackage, "_imageusab_");
     798    disp.setmacro("usabinterface", displayclass::defaultpackage, ("_usab"+(*check).second+"_"));
     799    disp.setmacro("usabilityscript", displayclass::defaultpackage, "_usabshowscript_");
    800800      }
    801801    }
     
    821821 
    822822    if (cinfo == NULL) {
    823       disp.setmacro("cvariable", "Global", arg_c);
     823      disp.setmacro("cvariable", displayclass::defaultpackage, arg_c);
    824824      disp.setmacro("content", arg_p, "<p>_textbadcollection_<p>");
    825825      return;
     
    894894    //****************
    895895    bool getParents = false;
    896     get_children ("", args["c"], metadata, getParents, collectproto, response, logout);
     896    get_children ("", args["c"], args["l"], metadata, getParents, collectproto, response, logout);
    897897
    898898    int numbrowseoptions = response.docInfo.size();
Note: See TracChangeset for help on using the changeset viewer.