Ignore:
Timestamp:
2004-05-26T11:35:09+12:00 (20 years ago)
Author:
mdewsnip
Message:

(Human Info) Replaced all "Global" with displayclass::defaultpackage.

File:
1 edited

Legend:

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

    r7432 r7433  
    325325  ResultDocInfo_tarray::iterator docend = response.docInfo.end();
    326326   
    327   disp.expandstring ("Global", "_pagewidth_", width);
     327  disp.expandstring (displayclass::defaultpackage, "_pagewidth_", width);
    328328  twidth = width.getint();
    329329     
     
    349349    if (numc > 0) swidth = swidth / numc;
    350350  }
    351   disp.setmacro ("widthtspace", "Global", swidth);
     351  disp.setmacro ("widthtspace", displayclass::defaultpackage, swidth);
    352352}
    353353
     
    422422        else {
    423423           navigationbar += "_image" + title + "_";
    424            disp.setmacro ("httpbrowse" + title, "Global", "_httpdocument_&cl=" + (*dochere).OID+date_extra);
     424           disp.setmacro ("httpbrowse" + title, displayclass::defaultpackage, "_httpdocument_&cl=" + (*dochere).OID+date_extra);
    425425        }
    426426     }
     
    474474   }
    475475
    476    disp.setmacro ("navigationbar", "Global", navigationbar);
     476   disp.setmacro ("navigationbar", displayclass::defaultpackage, navigationbar);
    477477}
    478478
     
    546546    if (args["fc"] == "1") {
    547547      text_t httpdocument;
    548       disp.expandstring ("Global", "_httpdocument_", httpdocument);
     548      disp.expandstring (displayclass::defaultpackage, "_httpdocument_", httpdocument);
    549549      httpdocument += "&f=1";
    550       disp.setmacro ("httpdocument", "Global", httpdocument);
    551       disp.setmacro ("gsdltop", "Global", "documenttop");
     550      disp.setmacro ("httpdocument", displayclass::defaultpackage, httpdocument);
     551      disp.setmacro ("gsdltop", displayclass::defaultpackage, "documenttop");
    552552      formatinfo.DocumentText = "[Text]";
    553553    }
     
    556556      text_t httppagehome;
    557557      if (get_link (args, protos, (*it).second, httppagehome, logout))
    558     disp.setmacro ("httppagehome", "Global", httppagehome);
     558    disp.setmacro ("httppagehome", displayclass::defaultpackage, httppagehome);
    559559    }
    560560  }
     
    592592  text_tmap::iterator usability = cinfo.format.find("Usability");
    593593  if(usability!=cinfo.format.end()){
    594     disp.setmacro("usability","Global","_imageusab_");
    595     disp.setmacro("usabinterface","Global",("_usab"+(*usability).second+"_"));
    596     disp.setmacro("usabilityscript", "Global", "_usabshowscript_");
     594    disp.setmacro("usability",displayclass::defaultpackage,"_imageusab_");
     595    disp.setmacro("usabinterface",displayclass::defaultpackage,("_usab"+(*usability).second+"_"));
     596    disp.setmacro("usabilityscript", displayclass::defaultpackage, "_usabshowscript_");
    597597  }
    598598}
     
    836836
    837837      if (is_top (arg_d))
    838     disp.setmacro ("thisOID", "Global", dm_safe(response.docInfo[0].metadata["archivedir"].values[0]));
     838    disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(response.docInfo[0].metadata["archivedir"].values[0]));
    839839      else {
    840840    MetadataInfo_t *parentad = response.docInfo[0].metadata["archivedir"].parent;
     
    844844      parentad = parentad->parent;
    845845    }
    846     disp.setmacro ("thisOID", "Global", dm_safe(thisOID));
     846    disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(thisOID));
    847847      }
    848848    }
Note: See TracChangeset for help on using the changeset viewer.