Changeset 7432 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 2004-05-25T16:31:41+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r7333 r7432 297 297 // get metadata for parent document 298 298 get_top (args["d"], top); 299 if (get_info (top, args["c"], metadata, false, collectproto, filt_response, logout)) {299 if (get_info (top, args["c"], args["l"], metadata, false, collectproto, filt_response, logout)) { 300 300 text_t url = filt_response.docInfo[0].metadata["URL"].values[0]; 301 301 … … 571 571 metadata.insert ("mdtype"); // in case there is a datelist 572 572 bool getParents = false; 573 get_children ("", collection, metadata, getParents, collectproto, response, logout);573 get_children ("", collection, args["l"], metadata, getParents, collectproto, response, logout); 574 574 575 575 bool has_search_button = true; … … 608 608 recptproto *collectproto = protos->getrecptproto (args["c"], logout); 609 609 610 if (get_info (inlink, args["c"], metadata, false, collectproto, response, logout)) {610 if (get_info (inlink, args["c"], args["l"], metadata, false, collectproto, response, logout)) { 611 611 if (!response.docInfo[0].metadata["section"].values[0].empty()) { 612 612 outlink = "_httpdocument_&d=" + response.docInfo[0].metadata["section"].values[0]; … … 631 631 collectproto = protos->getrecptproto (*col_here, logout); 632 632 633 if (get_info (inlink, *col_here, metadata, false, collectproto, response, logout)) {633 if (get_info (inlink, *col_here, args["l"], metadata, false, collectproto, response, logout)) { 634 634 if (!response.docInfo[0].metadata["section"].values[0].empty()) { 635 635 outlink = "_httpdocument_&c=" + *col_here + "&d=" + … … 786 786 //related documents in a vertical list. This is the default format. 787 787 788 if (get_info (arg_d, collection, metadata, options, false, collectproto, response, logout))788 if (get_info (arg_d, collection, args["l"], metadata, options, false, collectproto, response, logout)) 789 789 relation += get_related_docs(collection, collectproto, response.docInfo[0], logout); 790 790 … … 796 796 797 797 // get metadata for this document and it's parents 798 if (get_info (arg_d, collection, metadata, options,798 if (get_info (arg_d, collection, args["l"], metadata, options, 799 799 true, collectproto, response, logout)) { 800 800 … … 856 856 metadata.insert ("parameters"); 857 857 858 if (get_info (classtop, collection, metadata, false, collectproto, response, logout)) {858 if (get_info (classtop, collection, args["l"], metadata, false, collectproto, response, logout)) { 859 859 860 860 text_t &title = response.docInfo[0].metadata["Title"].values[0]; … … 1127 1127 } 1128 1128 1129 if (get_info (OID, collection, metadata, getParents, collectproto, inforesponse, logout)) {1129 if (get_info (OID, collection, args["l"], metadata, getParents, collectproto, inforesponse, logout)) { 1130 1130 int hastxt = inforesponse.docInfo[0].metadata["hastxt"].values[0].getint(); 1131 1131 int haschildren = inforesponse.docInfo[0].metadata["haschildren"].values[0].getint(); … … 1152 1152 if (args["d"].empty()) is_classify = true; 1153 1153 1154 get_contents (exOID, is_classify, metadata, collection, 1154 get_contents (exOID, is_classify, metadata, collection, args["l"], 1155 1155 collectproto, inforesponse, logout); 1156 1156 … … 1218 1218 // get info on current section 1219 1219 metadata.insert("haschildren"); 1220 if (!get_info(arg_d, args["c"], metadata, false, collectproto, response, logout)) {1220 if (!get_info(arg_d, args["c"], args["l"], metadata, false, collectproto, response, logout)) { 1221 1221 logout << "error 1 in documentaction::set_arrow_macros\n"; 1222 1222 return; … … 1229 1229 text_t thisoid = arg_d; 1230 1230 while (parentcount > 0) { 1231 get_children (get_parent(thisoid), args["c"], metadata, false,1231 get_children (get_parent(thisoid), args["c"], args["l"], metadata, false, 1232 1232 collectproto, response, logout); 1233 1233 ResultDocInfo_tarray::iterator this_sibling = response.docInfo.begin(); … … 1242 1242 // down to the last descendant 1243 1243 while (section_has_children) { 1244 get_children (previous_sibling, args["c"], metadata, false,1244 get_children (previous_sibling, args["c"], args["l"], metadata, false, 1245 1245 collectproto, presponse, logout); 1246 1246 if (!presponse.docInfo.empty()) {
Note:
See TracChangeset
for help on using the changeset viewer.