Changeset 16006


Ignore:
Timestamp:
2008-06-13T15:28:41+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Minor improvements.

File:
1 edited

Legend:

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

    r16004 r16006  
    215215                            ostream &textout, ostream &logout)
    216216{
    217   text_t arg_dcn = args["dcn"];
    218   text_t classifier_node_OID = arg_dcn;
    219   text_t classifier_node_metadata_value = arg_dcn;
     217  text_t classifier_node_OID = classifier_options["current_position"];
     218  text_t classifier_node_metadata_value = classifier_options["current_position"];
    220219  int node_indent = 0;
    221220
     
    230229  get_documents_with_metadata_value (metadata_element_name, classifier_node_metadata_value, "dls.Title", args["c"], collectproto, document_OIDs_response, logout);
    231230
    232   // Check there are some classifier nodes or some documents at this level, otherwise the "dcn" argument was invalid
     231  // If there are no classifier nodes or documents at this level then the classifier node value is invalid
    233232  if (metadata_values_response.docInfo.empty() && document_OIDs_response.docInfo.empty())
    234233  {
    235     textout << outconvert << disp << "Error: Invalid dcn value \"" << arg_dcn << "\".\n";
     234    textout << outconvert << disp << "Error: Invalid classifier node \"" << classifier_node_OID << "\".\n";
    236235    return;
    237236  }
Note: See TracChangeset for help on using the changeset viewer.