Changeset 1342 for branches/z3950-branch/gsdl/src/recpt/OIDtools.cpp
- Timestamp:
- 2000-08-03T14:49:41+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/z3950-branch/gsdl/src/recpt/OIDtools.cpp
r739 r1342 22 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 23 * 24 * $Id$25 *26 24 *********************************************************************/ 27 28 /*29 $Log$30 Revision 1.18 1999/10/24 07:24:34 sjboddie31 small change to allow FullTOC option32 33 Revision 1.17 1999/10/10 08:14:02 sjboddie34 - metadata now returns mp rather than array35 - redesigned browsing support (although it's not finished so36 won't currently work ;-)37 38 Revision 1.16 1999/09/07 04:56:51 sjboddie39 added GPL notice40 41 Revision 1.15 1999/09/02 00:22:04 rjmcnab42 added extra check in get_info43 44 Revision 1.14 1999/08/25 04:45:25 sjboddie45 changed FilterRequest_t::docSet into an array46 47 Revision 1.13 1999/08/10 22:44:06 sjboddie48 altered the get_contents function so it's now passed metadata49 rather than having it hard-coded50 51 Revision 1.12 1999/07/30 02:26:44 sjboddie52 added overloaded get_info function for getting info on multiple OIDs53 54 Revision 1.11 1999/07/20 02:59:03 sjboddie55 get_children now takes a getParents argument56 57 Revision 1.10 1999/07/07 05:47:41 sjboddie58 changed around the way browsetools works59 60 Revision 1.9 1999/06/16 23:51:53 sjboddie61 added a strip_suffix function62 63 Revision 1.8 1999/06/16 03:11:25 sjboddie64 get_info() now takes a getParents argument65 66 Revision 1.7 1999/06/16 02:05:23 sjboddie67 just changed a comment that was confusing me68 69 Revision 1.6 1999/05/10 03:40:25 sjboddie70 lots of changes - slowly getting document action sorted out71 72 Revision 1.5 1999/04/30 01:59:37 sjboddie73 lots of stuff - getting documentaction working (documentaction replaces74 old browseaction)75 76 Revision 1.4 1999/03/29 02:14:25 sjboddie77 78 More changes to browseaction79 80 Revision 1.3 1999/03/25 03:13:42 sjboddie81 82 More library functions for dealing with OIDs. Many of them just83 return dummy data at present84 85 Revision 1.2 1999/03/05 03:53:53 sjboddie86 87 fixed some bugs88 89 Revision 1.1 1999/03/04 22:38:20 sjboddie90 91 Added subjectbrowseaction. - Doesn't do anything yet.92 93 */94 25 95 26 #include "OIDtools.h" … … 173 104 } 174 105 106 // overloaded, to allow "custom" filter options. 107 bool get_info (const text_t &OID, const text_t &collection, 108 const text_tset &metadata, const OptionValue_tarray &options, 109 bool getParents, 110 recptproto *collectproto, FilterResponse_t &response, 111 ostream &logout) { 112 113 response.clear(); 114 115 comerror_t err; 116 FilterRequest_t request; 117 118 request.filterName = "NullFilter"; 119 request.filterResultOptions = FRmetadata; 120 request.getParents = getParents; 121 request.filterOptions = options; 122 request.fields = metadata; 123 request.docSet.push_back (OID); 124 125 collectproto->filter (collection, request, response, err, logout); 126 if (err != noError) { 127 outconvertclass text_t2ascii; 128 logout << text_t2ascii 129 << "Error: call to filter failed for " << OID 130 << " in OIDtools::get_info (" 131 << get_comerror_string (err) << ")\n"; 132 return false; 133 } 134 135 return true; 136 } 137 175 138 bool get_info (const text_tarray &OIDs, const text_t &collection, 176 139 const text_tset &metadata, bool getParents, … … 202 165 return true; 203 166 } 167 168 204 169 205 170 // has_children returns true if OID has children
Note:
See TracChangeset
for help on using the changeset viewer.