Changeset 16128


Ignore:
Timestamp:
2008-06-24T16:59:28+12:00 (16 years ago)
Author:
mdewsnip
Message:

Removed some grouping node code from the main block.

File:
1 edited

Legend:

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

    r16126 r16128  
    200200  // args["dcn"] may have been modified by output_hlist_classifier_nodes() above
    201201  text_t classifier_node_OID = args["dcn"];
    202   logout << "Classifier node OID: " << classifier_node_OID << endl;
     202  text_t classifier_node_metadata_value = classifier_node_OID;
    203203
    204204  // Split the classifier node OID into its components, then remove any we've already dealt with
     
    208208  {
    209209    classifier_node_OID_parts_remaining.pop_front();
     210
     211    // Update classifier_node_metadata_value to remove any grouping node components
     212    joinchar (classifier_node_OID_parts_remaining, '|', classifier_node_metadata_value);
    210213  }
    211214  if (classifier_options["-use_hlist_at_top"] == "1")
     
    223226  else
    224227  {
    225     // This is the classifier node OID without any grouping information
    226     text_t classifier_node_OID_sans_grouping = classifier_node_OID;
    227     if (starts_with (classifier_node_OID, selected_grouping_node_OID + "|"))
    228     {
    229       classifier_node_OID_sans_grouping = substr (classifier_node_OID.begin() + (selected_grouping_node_OID + "|").size(), classifier_node_OID.end());
    230     }
    231 
    232228    // Output the parent classifier nodes and the current classifier node
    233229    output_upper_classifier_nodes (current_classifier_node_OID, classifier_node_OID_parts_remaining, classifier_node_indent, classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout);
    234230
    235231    // Output the child classifier nodes
    236     text_t classifier_node_metadata_value = classifier_node_OID_sans_grouping;
    237232    text_t metadata_value_filter = classifier_node_metadata_value + "|*";
    238233    output_child_classifier_nodes (classifier_node_OID, classifier_node_metadata_value, metadata_value_filter, classifier_node_indent, classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout);
Note: See TracChangeset for help on using the changeset viewer.