Changeset 712
- Timestamp:
- 1999-10-19T09:07:05+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/receptionist.cpp
r669 r712 28 28 /* 29 29 $Log$ 30 Revision 1.35 1999/10/18 20:07:05 sjboddie 31 tidied up a few things - moved processing of "hp" argument 32 to htmlbrowserclass 33 30 34 Revision 1.34 1999/10/14 23:00:52 sjboddie 31 35 finished changes to browsing support … … 859 863 metadata.insert ("childtype"); 860 864 if (get_info (OIDs, args["c"], metadata, false, collectproto, response, logout)) { 861 text_t classifytype = response.docInfo[0].metadata["childtype"].values[0]; 862 if (classifytype.empty()) 863 classifytype = response.docInfo[1].metadata["childtype"].values[0]; 865 text_t classifytype; 866 MetadataInfo_tmap::iterator it = response.docInfo[0].metadata.find ("childtype"); 867 if (it != response.docInfo[0].metadata.end()) 868 classifytype = (*it).second.values[0]; 869 else { 870 it = response.docInfo[1].metadata.find ("childtype"); 871 if (it != response.docInfo[1].metadata.end()) 872 classifytype = (*it).second.values[0]; 873 } 864 874 browserclass *b = browsers.getbrowser (classifytype); 865 875 b->processOID (args, collectproto, logout); … … 867 877 } 868 878 869 // translate "d" , "cl", and "hp" arguments if required879 // translate "d" and "cl" arguments if required 870 880 translate_OIDs (args, collectproto, logout); 871 881 } … … 1012 1022 } 1013 1023 1014 // translate_OIDs translates the "d" , "cl", and "hp" arguments to their correct values1024 // translate_OIDs translates the "d" and "cl" arguments to their correct values 1015 1025 // if they use the tricky ".fc", ".lc" type syntax. 1016 1026 void receptionist::translate_OIDs (cgiargsclass &args, recptproto *collectproto, … … 1022 1032 text_t &arg_d = args["d"]; 1023 1033 text_t &arg_cl = args["cl"]; 1024 text_t &arg_hp = args["hp"];1025 1034 text_t &collection = args["c"]; 1026 1035 … … 1046 1055 else 1047 1056 arg_cl = response.docInfo[0].OID; 1048 }1049 1050 if (needs_translating (arg_hp)) {1051 request.docSet.push_back (arg_hp);1052 collectproto->filter (collection, request, response, err, logout);1053 arg_hp = response.docInfo[0].OID;1054 1057 } 1055 1058 }
Note:
See TracChangeset
for help on using the changeset viewer.