Changeset 16054


Ignore:
Timestamp:
2008-06-18T15:47:16+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) More work in preparation for merging output_top_level_node() and output_internal_node().

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

Legend:

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

    r16053 r16054  
    168168  if (args["dcn"] == selected_grouping_node_OID)
    169169  {
    170     text_t classifier_node_OID = selected_grouping_node_OID;
    171     text_t metadata_value_filter = selected_grouping_node_OID + "*";
    172     output_top_level_nodes (classifier_node_OID, metadata_value_filter, classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout);
     170    text_t classifier_node_OID = args["dcn"];
     171    text_t classifier_node_metadata_value = args["dcn"];
     172    output_top_level_node (classifier_node_OID, classifier_node_metadata_value, classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout);
    173173  }
    174174  else
     
    296296
    297297
    298 void dynamicclassifieraction::output_top_level_nodes (text_t classifier_node_OID, text_t metadata_value_filter,
    299                               text_tmap classifier_options, cgiargsclass &args,
    300                               recptproto *collectproto, browsermapclass *browsers,
    301                               displayclass &disp, outconvertclass &outconvert,
    302                               ostream &textout, ostream &logout)
    303 {
    304   // Get all the metadata values for the specified element (these become the classifier nodes at the top level)
     298void dynamicclassifieraction::output_top_level_node (text_t classifier_node_OID,
     299                             text_t classifier_node_metadata_value,
     300                             text_tmap classifier_options, cgiargsclass &args,
     301                             recptproto *collectproto, browsermapclass *browsers,
     302                             displayclass &disp, outconvertclass &outconvert,
     303                             ostream &textout, ostream &logout)
     304{
     305  // Get all the metadata values for the specified element that match the filter
    305306  text_t metadata_element_name = classifier_options["metadata_element_name"];
     307  text_t metadata_value_filter = classifier_node_metadata_value + "*";
    306308  FilterResponse_t metadata_values_response;
    307309  bool request_success = get_metadata_values (metadata_element_name, metadata_value_filter, "", args["c"], collectproto, metadata_values_response, logout);
  • gsdl/trunk/src/recpt/dynamicclassifieraction.h

    r16048 r16054  
    7070                ostream &textout, ostream &logout);
    7171
    72   void output_top_level_nodes (text_t classifier_node_OID, text_t metadata_value_filter,
    73                    text_tmap classifier_options, cgiargsclass &args,
    74                    recptproto *collectproto, browsermapclass *browsers,
    75                    displayclass &disp, outconvertclass &outconvert,
    76                    ostream &textout, ostream &logout);
     72  void output_top_level_node (text_t classifier_node_OID,
     73                  text_t classifier_node_metadata_value,
     74                  text_tmap classifier_options, cgiargsclass &args,
     75                  recptproto *collectproto, browsermapclass *browsers,
     76                  displayclass &disp, outconvertclass &outconvert,
     77                  ostream &textout, ostream &logout);
    7778
    78   void output_internal_page (text_tmap classifier_options, cgiargsclass &args,
     79  void output_internal_node (text_t classifier_node_OID,
     80                 text_t classifier_node_metadata_value,
     81                 text_tmap classifier_options, cgiargsclass &args,
    7982                 recptproto *collectproto, browsermapclass *browsers,
    8083                 displayclass &disp, outconvertclass &outconvert,
Note: See TracChangeset for help on using the changeset viewer.