| 363 | | display_classifier_nodes (upper_classifier_node_response, classifier_node_indent, args, collectproto, browsers, disp, outconvert, textout, logout); |
|---|
| | 363 | display_classifier_nodes (upper_classifier_node_response, "VList", classifier_node_indent, args, collectproto, browsers, disp, outconvert, textout, logout); |
|---|
| 447 | | display_classifier_nodes (child_classifier_nodes_response, classifier_node_indent, args, collectproto, browsers, disp, outconvert, textout, logout); |
|---|
| | 447 | display_classifier_nodes (child_classifier_nodes_response, "VList", classifier_node_indent, args, collectproto, browsers, disp, outconvert, textout, logout); |
|---|
| | 461 | |
|---|
| | 462 | // Get the format statement for this classifier if there is one, or use the browser's default otherwise |
|---|
| | 463 | text_t formatstring; |
|---|
| | 464 | browserclass *bptr = browsers->getbrowser (classifier_nodes_type); |
|---|
| | 465 | ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, args["c"], logout); |
|---|
| | 466 | if (!get_formatstring (args["dcl"], classifier_nodes_type, cinfo->format, formatstring)) |
|---|
| | 467 | { |
|---|
| | 468 | formatstring = bptr->get_default_formatstring(); |
|---|
| | 469 | } |
|---|
| | 470 | format_t *formatlistptr = new format_t(); |
|---|
| | 471 | text_tset metadata; |
|---|
| | 472 | bool getParents = false; |
|---|
| | 473 | parse_formatstring (formatstring, formatlistptr, metadata, getParents); |
|---|
| | 474 | bool use_table = is_table_content (formatlistptr); |
|---|
| | 475 | |
|---|
| | 476 | // Display the classifier nodes |
|---|
| | 477 | bptr->output_section_group (classifier_nodes_response, args, args["c"], classifier_nodes_indent, formatlistptr, use_table, metadata, getParents, collectproto, disp, outconvert, textout, logout); |
|---|
| | 478 | } |
|---|
| | 479 | |
|---|
| | 480 | |
|---|
| | 481 | void dynamicclassifieraction::display_document_nodes (FilterResponse_t documents_response, |
|---|
| | 482 | int document_nodes_indent, |
|---|
| | 483 | cgiargsclass &args, recptproto *collectproto, |
|---|
| | 484 | browsermapclass *browsers, displayclass &disp, |
|---|
| | 485 | outconvertclass &outconvert, ostream &textout, |
|---|
| | 486 | ostream &logout) |
|---|
| | 487 | { |
|---|
| | 488 | // Check there are some documents to display |
|---|
| | 489 | if (documents_response.docInfo.empty()) return; |
|---|
| 476 | | // Display the classifier nodes |
|---|
| 477 | | bptr->output_section_group (classifier_nodes_response, args, args["c"], classifier_node_indent, formatlistptr, use_table, metadata, getParents, collectproto, disp, outconvert, textout, logout); |
|---|
| 478 | | } |
|---|
| 479 | | |
|---|
| 480 | | |
|---|
| 481 | | void dynamicclassifieraction::display_document_nodes (FilterResponse_t documents_response, int document_nodes_indent, |
|---|
| 482 | | cgiargsclass &args, recptproto *collectproto, |
|---|
| 483 | | browsermapclass *browsers, displayclass &disp, |
|---|
| 484 | | outconvertclass &outconvert, ostream &textout, |
|---|
| 485 | | ostream &logout) |
|---|
| 486 | | { |
|---|
| 487 | | // Check there are some documents to display |
|---|
| 488 | | if (documents_response.docInfo.empty()) return; |
|---|
| 489 | | |
|---|
| 490 | | // Get the format statement for this classifier if there is one, or use the browser's default otherwise |
|---|
| 491 | | text_t formatstring; |
|---|
| 492 | | text_t classifier_type = "VList"; |
|---|
| 493 | | browserclass *bptr = browsers->getbrowser (classifier_type); |
|---|
| 494 | | ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, args["c"], logout); |
|---|
| 495 | | if (!get_formatstring (args["dcl"], classifier_type, cinfo->format, formatstring)) |
|---|
| 496 | | { |
|---|
| 497 | | formatstring = bptr->get_default_formatstring(); |
|---|
| 498 | | } |
|---|
| 499 | | format_t *formatlistptr = new format_t(); |
|---|
| 500 | | text_tset metadata; |
|---|
| 501 | | bool getParents = false; |
|---|
| 502 | | parse_formatstring (formatstring, formatlistptr, metadata, getParents); |
|---|
| 503 | | bool use_table = is_table_content (formatlistptr); |
|---|
| 504 | | |
|---|