Changeset 7433 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 2004-05-26T11:35:09+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r7432 r7433 325 325 ResultDocInfo_tarray::iterator docend = response.docInfo.end(); 326 326 327 disp.expandstring ( "Global", "_pagewidth_", width);327 disp.expandstring (displayclass::defaultpackage, "_pagewidth_", width); 328 328 twidth = width.getint(); 329 329 … … 349 349 if (numc > 0) swidth = swidth / numc; 350 350 } 351 disp.setmacro ("widthtspace", "Global", swidth);351 disp.setmacro ("widthtspace", displayclass::defaultpackage, swidth); 352 352 } 353 353 … … 422 422 else { 423 423 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); 425 425 } 426 426 } … … 474 474 } 475 475 476 disp.setmacro ("navigationbar", "Global", navigationbar);476 disp.setmacro ("navigationbar", displayclass::defaultpackage, navigationbar); 477 477 } 478 478 … … 546 546 if (args["fc"] == "1") { 547 547 text_t httpdocument; 548 disp.expandstring ( "Global", "_httpdocument_", httpdocument);548 disp.expandstring (displayclass::defaultpackage, "_httpdocument_", httpdocument); 549 549 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"); 552 552 formatinfo.DocumentText = "[Text]"; 553 553 } … … 556 556 text_t httppagehome; 557 557 if (get_link (args, protos, (*it).second, httppagehome, logout)) 558 disp.setmacro ("httppagehome", "Global", httppagehome);558 disp.setmacro ("httppagehome", displayclass::defaultpackage, httppagehome); 559 559 } 560 560 } … … 592 592 text_tmap::iterator usability = cinfo.format.find("Usability"); 593 593 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_"); 597 597 } 598 598 } … … 836 836 837 837 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])); 839 839 else { 840 840 MetadataInfo_t *parentad = response.docInfo[0].metadata["archivedir"].parent; … … 844 844 parentad = parentad->parent; 845 845 } 846 disp.setmacro ("thisOID", "Global", dm_safe(thisOID));846 disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(thisOID)); 847 847 } 848 848 }
Note:
See TracChangeset
for help on using the changeset viewer.