Changeset 16112


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

Removed some duplicate code by calling display_classifier_nodes() from output_grouping_nodes().

File:
1 edited

Legend:

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

    r16108 r16112  
    296296  }
    297297
     298  // Add the necessary metadata to the grouping nodes
    298299  text_t selected_grouping_node_OID = "";
    299300  ResultDocInfo_tarray::iterator grouping_node_iterator = grouping_nodes_response.docInfo.begin();
     
    314315  }
    315316
    316   // Get the format statement for this classifier if there is one, or use the browser's default otherwise
    317   text_t formatstring;
    318   text_t classifier_type = "HList";
    319   browserclass *bptr = browsers->getbrowser (classifier_type);
    320   ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, args["c"], logout);
    321   if (!get_formatstring (args["dcl"], classifier_type, cinfo->format, formatstring))
    322   {
    323     formatstring = bptr->get_default_formatstring();
    324   }
    325   format_t *formatlistptr = new format_t();
    326   text_tset metadata;
    327   bool getParents = false;
    328   parse_formatstring (formatstring, formatlistptr, metadata, getParents);
    329   bool use_table = is_table_content (formatlistptr);
    330 
    331317  // Display the grouping nodes
    332   bptr->output_section_group (grouping_nodes_response, args, args["c"], 0, formatlistptr, use_table, metadata, getParents, collectproto, disp, outconvert, textout, logout);
     318  display_classifier_nodes (grouping_nodes_response, "HList", 0, args, collectproto, browsers, disp, outconvert, textout, logout);
    333319
    334320  return selected_grouping_node_OID;
     
    423409  }
    424410
    425   // Display the child classifier nodes
     411  // Add the necessary metadata to the child classifier nodes
    426412  FilterResponse_t child_classifier_nodes_response;
    427413  map<text_t, int, lttext_t>::iterator child_classifier_nodes_iterator = child_classifier_nodes.begin();
     
    445431  }
    446432
     433  // Display the child classifier nodes
    447434  display_classifier_nodes (child_classifier_nodes_response, "VList", classifier_node_indent, args, collectproto, browsers, disp, outconvert, textout, logout);
    448435}
Note: See TracChangeset for help on using the changeset viewer.