Changeset 7433
- Timestamp:
- 2004-05-26T11:35:09+12:00 (20 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/datelistbrowserclass.cpp
r7379 r7433 79 79 // get tab size 80 80 text_t tab; int itab; 81 disp.expandstring ( "Global", "_tabwidth_", tab);81 disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab); 82 82 itab = tab.getint(); 83 83 if (colnumber > 0) -
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 } -
trunk/gsdl/src/recpt/highlighttext.cpp
r5140 r7433 61 61 text_t shl = "<b><u>"; 62 62 text_t ehl = "</u></b>"; 63 if (disp.isdefaultmacro( "Global", "starthighlight")) {64 disp.expandstring( "Global", "_starthighlight_", shl);65 } 66 if (disp.isdefaultmacro( "Global", "endhighlight")) {67 disp.expandstring( "Global", "_endhighlight_", ehl);63 if (disp.isdefaultmacro(displayclass::defaultpackage, "starthighlight")) { 64 disp.expandstring(displayclass::defaultpackage, "_starthighlight_", shl); 65 } 66 if (disp.isdefaultmacro(displayclass::defaultpackage, "endhighlight")) { 67 disp.expandstring(displayclass::defaultpackage, "_endhighlight_", ehl); 68 68 } 69 69 -
trunk/gsdl/src/recpt/hlistbrowserclass.cpp
r7432 r7433 107 107 // get tab size 108 108 text_t tab; int itab; 109 disp.expandstring ( "Global", "_tabwidth_", tab);109 disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab); 110 110 itab = tab.getint(); 111 111 if (colnumber > 0) textout << outconvert << disp -
trunk/gsdl/src/recpt/langaction.cpp
r4233 r7433 218 218 // overwrite the global content (which should be overwritten by package) 219 219 // makes it obvious that package macros aren't defined, compared to "oops..." 220 disp.setmacro("content", "Global", "\\_translang:content\\_");220 disp.setmacro("content", displayclass::defaultpackage, "\\_translang:content\\_"); 221 221 222 222 // Make sure the source and target languages are different! -
trunk/gsdl/src/recpt/queryaction.cpp
r7199 r7433 616 616 if (option.validValues.size() == 1) { 617 617 if (display_single) { 618 disp.setmacro (macroname + "selection", "Global", "_" + option.defaultValue + "_");618 disp.setmacro (macroname + "selection", displayclass::defaultpackage, "_" + option.defaultValue + "_"); 619 619 } 620 620 return; … … 641 641 } 642 642 macrovalue += "</select>\n"; 643 disp.setmacro (macroname + "selection", "Global", macrovalue);643 disp.setmacro (macroname + "selection", displayclass::defaultpackage, macrovalue); 644 644 } 645 645 … … 744 744 opt = 1; 745 745 } 746 disp.setmacro ("gformselection", "Global", "_"+option.validValues[opt]+"_");746 disp.setmacro ("gformselection", displayclass::defaultpackage, "_"+option.validValues[opt]+"_"); 747 747 return; 748 748 } … … 765 765 } 766 766 macrovalue += "</select>\n"; 767 disp.setmacro ("gformselection", "Global", macrovalue);767 disp.setmacro ("gformselection", displayclass::defaultpackage, macrovalue); 768 768 } 769 769 void queryaction::define_form_macros (displayclass &disp, cgiargsclass &args, … … 1254 1254 1255 1255 // Display the "this collection is not installed on this system" page 1256 disp.setmacro("cvariable", "Global", collection);1256 disp.setmacro("cvariable", displayclass::defaultpackage, collection); 1257 1257 disp.setmacro("content", "query", "<p>_textbadcollection_<p>"); 1258 1258 … … 1375 1375 1376 1376 // also reset the _cgiargq_ macro as it has changed now 1377 disp.setmacro("cgiargq", "Global", html_safe(args["q"]));1377 disp.setmacro("cgiargq", displayclass::defaultpackage, html_safe(args["q"])); 1378 1378 1379 1379 // reset the compressed options to include the q arg 1380 1380 text_t compressedoptions = recpt->get_compressed_arg(args, logout); 1381 1381 if (!compressedoptions.empty()) { 1382 disp.setmacro ("compressedoptions", "Global", dm_safe(compressedoptions));1382 disp.setmacro ("compressedoptions", displayclass::defaultpackage, dm_safe(compressedoptions)); 1383 1383 // need a decoded version of compressedoptions for use within forms 1384 1384 // as browsers encode values from forms before sending to server 1385 1385 // (e.g. %25 becomes %2525) 1386 1386 decode_cgi_arg (compressedoptions); 1387 disp.setmacro ("decodedcompressedoptions", "Global", dm_safe(compressedoptions));1387 disp.setmacro ("decodedcompressedoptions", displayclass::defaultpackage, dm_safe(compressedoptions)); 1388 1388 } 1389 1389 } // form search -
trunk/gsdl/src/recpt/vlistbrowserclass.cpp
r7392 r7433 88 88 // get tab size 89 89 text_t tab; int itab; 90 disp.expandstring ( "Global", "_tabwidth_", tab);90 disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab); 91 91 itab = tab.getint(); 92 92 if (colnumber > 0) textout << outconvert << disp … … 130 130 // get tab size 131 131 text_t tab; int itab; 132 disp.expandstring ( "Global", "_tabwidth_", tab);132 disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab); 133 133 itab = tab.getint(); 134 134 if (colnumber > 0) textout << outconvert << disp
Note:
See TracChangeset
for help on using the changeset viewer.