Changeset 16181
- Timestamp:
- 2008-06-25T15:45:41+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/dynamicclassifieraction.cpp
r16179 r16181 231 231 232 232 // Get the document nodes at this level 233 text_t metadata_element _name = classifier_options["metadata_element_name"];233 text_t metadata_elements = classifier_options["metadata_elements"]; 234 234 text_t sort_documents_by = classifier_options["-sort_documents_by"]; 235 235 FilterResponse_t documents_response; 236 get_documents_with_metadata_value (metadata_element _name, classifier_node_metadata_value, sort_documents_by, args["c"], collectproto, documents_response, logout);236 get_documents_with_metadata_value (metadata_elements, classifier_node_metadata_value, sort_documents_by, args["c"], collectproto, documents_response, logout); 237 237 238 238 // Display the document nodes … … 258 258 splitchar (classifier_specification.begin(), classifier_specification.end(), ' ', classifier_specification_parts); 259 259 260 // The metadata element to classify by should be the first value261 classifier_options["metadata_element _name"] = classifier_specification_parts.front();260 // The metadata element(s) to classify by should be the first value 261 classifier_options["metadata_elements"] = classifier_specification_parts.front(); 262 262 classifier_specification_parts.pop_front(); 263 263 … … 293 293 ostream &textout, ostream &logout) 294 294 { 295 // Get all the metadata values for the specified element that match the filter296 text_t metadata_element _name = classifier_options["metadata_element_name"];295 // Get all the metadata values for the specified element(s) that match the filter 296 text_t metadata_elements = classifier_options["metadata_elements"]; 297 297 FilterResponse_t metadata_values_response; 298 bool request_success = get_metadata_values (metadata_element _name, metadata_value_filter, metadata_value_grouping_expression, args["c"], collectproto, metadata_values_response, logout);298 bool request_success = get_metadata_values (metadata_elements, metadata_value_filter, metadata_value_grouping_expression, args["c"], collectproto, metadata_values_response, logout); 299 299 300 300 // If the request failed then it's probably because the collection isn't using an SQL infodbtype … … 429 429 ostream &textout, ostream &logout) 430 430 { 431 // Get all the metadata values for the specified element that match the filter432 text_t metadata_element _name = classifier_options["metadata_element_name"];431 // Get all the metadata values for the specified element(s) that match the filter 432 text_t metadata_elements = classifier_options["metadata_elements"]; 433 433 FilterResponse_t metadata_values_response; 434 bool request_success = get_metadata_values (metadata_element _name, metadata_value_filter, "", args["c"], collectproto, metadata_values_response, logout);434 bool request_success = get_metadata_values (metadata_elements, metadata_value_filter, "", args["c"], collectproto, metadata_values_response, logout); 435 435 436 436 // If the request failed then it's probably because the collection isn't using an SQL infodbtype
Note:
See TracChangeset
for help on using the changeset viewer.