Ignore:
Timestamp:
08/17/10 13:52:58 (10 years ago)
Author:
davidb
Message:

Now using gs.allowPrinting rather than internal 'allowPrint' which required a user to manually edit the metadata.xml file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/documentaction.cpp

    r22047 r22647  
    14481448    //metadata elements needed by recurse_contents
    14491449    metadata.insert ("Title");
    1450     metadata.insert ("allowPrint");
     1450    metadata.insert ("gs.allowPrinting");
    14511451    metadata.insert ("haschildren");
    14521452
     
    14971497      text_t t_allowprint = "true";
    14981498
    1499       if (section.metadata["allowPrint"].values.size()>0) {
    1500         text_t opt_allowprint = section.metadata["allowPrint"].values[0];
     1499      if (section.metadata["gs.allowPrinting"].values.size()>0) {
     1500        text_t opt_allowprint = section.metadata["gs.allowPrinting"].values[0];
    15011501        if (!opt_allowprint.empty()) {
    15021502          t_allowprint = opt_allowprint;
Note: See TracChangeset for help on using the changeset viewer.