Changeset 10614


Ignore:
Timestamp:
09/21/05 16:43:52 (15 years ago)
Author:
kjdon
Message:

now allow [Text] in an if statement - can do {If}{[Text] ne 'This document has no text. ',[Text]}

File:
1 edited

Legend:

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

    r10415 r10614  
    12841284    text_t meta_text = substr (beginbracket+1, endbracket);
    12851285
    1286     text_tset metadata;
    1287     bool getParents =false;
    1288     metadata_t meta;
    1289 
    1290     parse_meta (meta_text, meta, metadata, getParents);
    1291     outtext
    1292       = get_meta (collection,collectproto,docinfo,disp,meta,options,logout);
     1286    if (meta_text == "Text") {
     1287      outtext = format_text(collection, collectproto, docinfo, disp, options, logout);
     1288    } else {
     1289
     1290      text_tset metadata;
     1291      bool getParents =false;
     1292      metadata_t meta;
     1293     
     1294      parse_meta (meta_text, meta, metadata, getParents);   
     1295      outtext
     1296    = get_meta (collection,collectproto,docinfo,disp,meta,options,logout);
     1297    }
     1298
    12931299  }
    12941300  else {
Note: See TracChangeset for help on using the changeset viewer.