Changeset 2017 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 2001-02-20T13:33:48+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r1991 r2017 650 650 get_top (arg_cl, classtop); 651 651 metadata.insert ("childtype"); 652 metadata.insert ("parameters"); 652 653 653 654 if (get_info (classtop, collection, metadata, false, collectproto, response, logout)) { … … 675 676 disp.setmacro ("relateddoc", "document", ""); 676 677 677 // Add a macro to display the phind classifier (if appropriate)678 // Add macros specific to the Phind lassifier 678 679 text_t &childtype = response.docInfo[0].metadata["childtype"].values[0]; 679 680 if (childtype == "Phind") { 681 682 // First, a macro to display the phind classifier 680 683 disp.setmacro ("phindclassifier", "document", "_phindapplet_"); 681 } 682 } 683 } 684 685 // Next, macros that control the way the classifier is displayed 686 text_t parameters = response.docInfo[0].metadata["parameters"].values[0]; 687 cout << "***** parameters >" << parameters << "<\n"; 688 689 // extract key=value pairs and set as macros 690 text_t::iterator here = parameters.begin(); 691 text_t::iterator end = parameters.end(); 692 text_t key, value; 693 694 while (here != end) { 695 // get the next key and value pair 696 here = getdelimitstr (here, end, '=', key); 697 here = getdelimitstr (here, end, ';', value); 698 699 // store this key=value pair 700 if (!key.empty() && !value.empty()) { 701 disp.setmacro (key, "document", value); 702 } 703 } 704 } // end if (childtype == "Phind") 705 } 706 } // end if (!arg_cl.empty()) { 684 707 } 685 708 }
Note:
See TracChangeset
for help on using the changeset viewer.