Changeset 912 for trunk/gsdl/src/recpt/pagedbrowserclass.cpp
- Timestamp:
- 2000-02-07T10:29:11+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pagedbrowserclass.cpp
r753 r912 28 28 /* 29 29 $Log$ 30 Revision 1.5 2000/02/06 21:29:11 sjboddie 31 fixed a bug - made some functions virtual for use with cstr collection 32 30 33 Revision 1.4 1999/10/30 23:06:25 sjboddie 31 34 tidied up a bit … … 67 70 } 68 71 69 // if the "gp" (go to page) argument is set we need to set 72 // if the "gp" (go to page) argument is set we need to set 70 73 // the "d" argument to the corresponding page 71 74 void pagedbrowserclass::processOID (cgiargsclass &args, recptproto *collectproto, 72 75 ostream &logout) { 73 76 74 77 text_t &arg_d = args["d"]; 75 78 text_t &arg_gp = args["gp"]; 76 79 text_tset metadata; 80 bool getParents = false; 81 FilterResponse_t response; 82 77 83 if ((!arg_d.empty()) && (!arg_gp.empty()) && (is_number (arg_gp))) { 78 84 text_t top; 79 85 get_top (arg_d, top); 80 text_tset metadata;81 86 metadata.insert ("Title"); 82 bool getParents = false;83 FilterResponse_t response;84 87 get_children (top, args["c"], metadata, getParents, collectproto, response, logout); 85 88 ResultDocInfo_tarray::iterator dochere = response.docInfo.begin(); … … 87 90 while (dochere != docend) { 88 91 if ((*dochere).metadata["Title"].values[0] == arg_gp) { 89 90 92 arg_d = (*dochere).OID; 93 break; 91 94 } 92 95 dochere ++; 93 96 } 94 } 95 } 96 97 98 } else if (!arg_d.empty() && is_top(arg_d)) { // if top level doc, check if not invisible 99 metadata.insert("thistype"); 100 if(get_info(arg_d, args["c"], metadata, getParents, collectproto, response, logout)) { 101 text_t type = response.docInfo[0].metadata["thistype"].values[0]; 102 if (type=="Invisible") { // display first child 103 arg_d = arg_d + ".1"; 104 } 105 } 106 } 107 } 97 108 98 109 int pagedbrowserclass::output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, … … 156 167 previousarrow = "_document:parentarrow_"; 157 168 158 if ( thissection != sections.docInfo.end()) {169 if ((thissection+1) != endsection) { 159 170 nextOID = (*(thissection+1)).OID; 160 171 nexttitle = (*(thissection+1)).metadata["Title"].values[0];
Note:
See TracChangeset
for help on using the changeset viewer.