Changeset 15999
- Timestamp:
- 2008-06-13T14:49:07+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/dynamicclassifieraction.cpp
r15993 r15999 149 149 } 150 150 151 // Parse the classifier options from the specification 152 text_t classifier_specification = cinfo->dynamic_classifiers[arg_dcl]; 153 text_tmap classifier_options; 154 155 // The metadata element to classify by should be left after all the options have been parsed off 156 classifier_options["metadata_element_name"] = classifier_specification; 157 151 158 // Output the "<ID>Header" format statement if there is one 152 159 text_t classifier_header_format_statement = ""; 153 get_formatstring (arg_dcl + "Header", cinfo->format, classifier_header_format_statement);160 get_formatstring (arg_dcl + "Header", cinfo->format, classifier_header_format_statement); 154 161 textout << outconvert << disp << classifier_header_format_statement << "\n"; 155 162 156 163 // Output the dynamic classifier 157 text_t metadata_element_name = cinfo->dynamic_classifiers[arg_dcl];158 164 if (args["dcn"].empty()) 159 165 { 160 166 // Simple case for the top-level page 161 output_top_level_page ( metadata_element_name, args, collectproto, browsers, disp, outconvert, textout, logout);167 output_top_level_page (classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout); 162 168 } 163 169 else 164 170 { 165 171 // More complex case for an internal page 166 output_internal_page ( metadata_element_name, args, collectproto, browsers, disp, outconvert, textout, logout);172 output_internal_page (classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout); 167 173 } 168 174 169 175 // Output the "<ID>Footer" format statement if there is one 170 176 text_t classifier_footer_format_statement = ""; 171 get_formatstring (arg_dcl + "Footer", cinfo->format, classifier_footer_format_statement);177 get_formatstring (arg_dcl + "Footer", cinfo->format, classifier_footer_format_statement); 172 178 textout << outconvert << disp << classifier_footer_format_statement << "\n"; 173 179 … … 177 183 178 184 179 void dynamicclassifieraction::output_top_level_page (text_t metadata_element_name, cgiargsclass &args,185 void dynamicclassifieraction::output_top_level_page (text_tmap classifier_options, cgiargsclass &args, 180 186 recptproto *collectproto, browsermapclass *browsers, 181 187 displayclass &disp, outconvertclass &outconvert, … … 183 189 { 184 190 // Get all the metadata values for the specified element (these become the classifier nodes at the top level) 191 text_t metadata_element_name = classifier_options["metadata_element_name"]; 185 192 FilterResponse_t metadata_values_response; 186 193 get_metadata_values (metadata_element_name, "", args["c"], collectproto, metadata_values_response, logout); … … 225 232 226 233 227 void dynamicclassifieraction::output_internal_page (text_t metadata_element_name, cgiargsclass &args,234 void dynamicclassifieraction::output_internal_page (text_tmap classifier_options, cgiargsclass &args, 228 235 recptproto *collectproto, browsermapclass *browsers, 229 236 displayclass &disp, outconvertclass &outconvert, … … 236 243 237 244 // Get all the classifier nodes at this level 245 text_t metadata_element_name = classifier_options["metadata_element_name"]; 238 246 text_t metadata_value_filter = classifier_node_metadata_value + "|*"; 239 247 FilterResponse_t metadata_values_response; -
gsdl/trunk/src/recpt/dynamicclassifieraction.h
r15949 r15999 63 63 ostream &logout); 64 64 65 void output_top_level_page (text_t metadata_element_name, cgiargsclass &args,65 void output_top_level_page (text_tmap classifier_options, cgiargsclass &args, 66 66 recptproto *collectproto, browsermapclass *browsers, 67 67 displayclass &disp, outconvertclass &outconvert, 68 68 ostream &textout, ostream &logout); 69 69 70 void output_internal_page (text_t metadata_element_name, cgiargsclass &args,70 void output_internal_page (text_tmap classifier_options, cgiargsclass &args, 71 71 recptproto *collectproto, browsermapclass *browsers, 72 72 displayclass &disp, outconvertclass &outconvert,
Note:
See TracChangeset
for help on using the changeset viewer.