Changeset 7433


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

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

Location:
trunk/gsdl/src/recpt
Files:
7 edited

Legend:

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

    r7379 r7433  
    7979    // get tab size
    8080    text_t tab; int itab;
    81     disp.expandstring ("Global", "_tabwidth_", tab);
     81    disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab);
    8282    itab = tab.getint();
    8383    if (colnumber > 0)
  • 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    }
  • trunk/gsdl/src/recpt/highlighttext.cpp

    r5140 r7433  
    6161  text_t shl = "<b><u>";
    6262  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);
    6868  }
    6969
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r7432 r7433  
    107107    // get tab size
    108108    text_t tab; int itab;
    109     disp.expandstring ("Global", "_tabwidth_", tab);
     109    disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab);
    110110    itab = tab.getint();
    111111    if (colnumber > 0) textout << outconvert << disp
  • trunk/gsdl/src/recpt/langaction.cpp

    r4233 r7433  
    218218  // overwrite the global content (which should be overwritten by package)
    219219  // 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\\_");
    221221
    222222  // Make sure the source and target languages are different!
  • trunk/gsdl/src/recpt/queryaction.cpp

    r7199 r7433  
    616616  if (option.validValues.size() == 1) {
    617617    if (display_single) {
    618       disp.setmacro (macroname + "selection", "Global", "_" + option.defaultValue + "_");
     618      disp.setmacro (macroname + "selection", displayclass::defaultpackage, "_" + option.defaultValue + "_");
    619619    }
    620620    return;   
     
    641641  }
    642642  macrovalue += "</select>\n";
    643   disp.setmacro (macroname + "selection", "Global", macrovalue);
     643  disp.setmacro (macroname + "selection", displayclass::defaultpackage, macrovalue);
    644644}
    645645
     
    744744      opt = 1;
    745745    }
    746     disp.setmacro ("gformselection", "Global", "_"+option.validValues[opt]+"_");
     746    disp.setmacro ("gformselection", displayclass::defaultpackage, "_"+option.validValues[opt]+"_");
    747747    return;
    748748  }
     
    765765  }
    766766  macrovalue += "</select>\n";
    767   disp.setmacro ("gformselection", "Global", macrovalue);
     767  disp.setmacro ("gformselection", displayclass::defaultpackage, macrovalue);
    768768}
    769769void queryaction::define_form_macros (displayclass &disp, cgiargsclass &args,
     
    12541254
    12551255    // Display the "this collection is not installed on this system" page
    1256     disp.setmacro("cvariable", "Global", collection);
     1256    disp.setmacro("cvariable", displayclass::defaultpackage, collection);
    12571257    disp.setmacro("content", "query", "<p>_textbadcollection_<p>");
    12581258
     
    13751375
    13761376      // 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"]));
    13781378     
    13791379      // reset the compressed options to include the q arg
    13801380      text_t compressedoptions = recpt->get_compressed_arg(args, logout);
    13811381      if (!compressedoptions.empty()) {
    1382     disp.setmacro ("compressedoptions", "Global", dm_safe(compressedoptions));
     1382    disp.setmacro ("compressedoptions", displayclass::defaultpackage, dm_safe(compressedoptions));
    13831383    // need a decoded version of compressedoptions for use within forms
    13841384    // as browsers encode values from forms before sending to server
    13851385    // (e.g. %25 becomes %2525)
    13861386    decode_cgi_arg (compressedoptions);
    1387     disp.setmacro ("decodedcompressedoptions", "Global", dm_safe(compressedoptions));
     1387    disp.setmacro ("decodedcompressedoptions", displayclass::defaultpackage, dm_safe(compressedoptions));
    13881388      }
    13891389    } // form search
  • trunk/gsdl/src/recpt/vlistbrowserclass.cpp

    r7392 r7433  
    8888    // get tab size
    8989    text_t tab; int itab;
    90     disp.expandstring ("Global", "_tabwidth_", tab);
     90    disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab);
    9191    itab = tab.getint();
    9292    if (colnumber > 0) textout << outconvert << disp
     
    130130    // get tab size
    131131    text_t tab; int itab;
    132     disp.expandstring ("Global", "_tabwidth_", tab);
     132    disp.expandstring (displayclass::defaultpackage, "_tabwidth_", tab);
    133133    itab = tab.getint();
    134134    if (colnumber > 0) textout << outconvert << disp
Note: See TracChangeset for help on using the changeset viewer.