Changeset 15993


Ignore:
Timestamp:
2008-06-13T14:05:03+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Added support for outputting <ID>Header and <ID>Footer format statements at the top and bottom of dynamic classifiers.

File:
1 edited

Legend:

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

    r15988 r15993  
    149149  }
    150150
    151   // Produce the page
     151  // Output the "<ID>Header" format statement if there is one
     152  text_t classifier_header_format_statement = "";
     153  get_formatstring(arg_dcl + "Header", cinfo->format, classifier_header_format_statement);
     154  textout << outconvert << disp << classifier_header_format_statement << "\n";
     155
     156  // Output the dynamic classifier
    152157  text_t metadata_element_name = cinfo->dynamic_classifiers[arg_dcl];
    153158  if (args["dcn"].empty())
     
    161166    output_internal_page (metadata_element_name, args, collectproto, browsers, disp, outconvert, textout, logout);
    162167  }
     168
     169  // Output the "<ID>Footer" format statement if there is one
     170  text_t classifier_footer_format_statement = "";
     171  get_formatstring(arg_dcl + "Footer", cinfo->format, classifier_footer_format_statement);
     172  textout << outconvert << disp << classifier_footer_format_statement << "\n";
    163173
    164174  textout << outconvert << disp << "_dynamicclassifier:footer_\n";
Note: See TracChangeset for help on using the changeset viewer.