Changeset 22647

Show
Ignore:
Timestamp:
17.08.2010 13:52:58 (9 years ago)
Author:
davidb
Message:

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

Files:
1 modified

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;