Changeset 912
- Timestamp:
- 2000-02-07T10:29:11+13:00 (24 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 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]; -
trunk/gsdl/src/recpt/pagedbrowserclass.h
r752 r912 47 47 text_t get_default_formatstring (); 48 48 49 v oid processOID (cgiargsclass &args, recptproto *collectproto,50 ostream &logout);49 virtual void processOID (cgiargsclass &args, recptproto *collectproto, 50 ostream &logout); 51 51 52 int output_section_group (ResultDocInfo_t §ion, cgiargsclass &args,53 const text_t &collection, int colnumber, format_t *formatlistptr,54 bool use_table, text_tset &metadata, bool &getParents,55 recptproto *collectproto, displayclass &disp,56 outconvertclass &outconvert, ostream &textout, ostream &logout);52 virtual int output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, 53 const text_t &collection, int colnumber, format_t *formatlistptr, 54 bool use_table, text_tset &metadata, bool &getParents, 55 recptproto *collectproto, displayclass &disp, 56 outconvertclass &outconvert, ostream &textout, ostream &logout); 57 57 58 int output_section_group (FilterResponse_t §ions, cgiargsclass &args,59 const text_t &collection, int colnumber, format_t *formatlistptr,60 bool use_table, text_tset &metadata, bool &getParents,61 recptproto *collectproto, displayclass &disp,62 outconvertclass &outconvert, ostream &textout, ostream &logout);58 virtual int output_section_group (FilterResponse_t §ions, cgiargsclass &args, 59 const text_t &collection, int colnumber, format_t *formatlistptr, 60 bool use_table, text_tset &metadata, bool &getParents, 61 recptproto *collectproto, displayclass &disp, 62 outconvertclass &outconvert, ostream &textout, ostream &logout); 63 63 64 64 };
Note:
See TracChangeset
for help on using the changeset viewer.