Ignore:
Timestamp:
2000-08-03T17:21:26+12:00 (24 years ago)
Author:
jrm21
Message:

merged z39.50 receptionist stuff into main trunk (along with the mgpp stuff)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/OIDtools.cpp

    r1285 r1347  
    104104}
    105105
     106// overloaded, to allow "custom" filter options.
     107bool 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
    106138bool get_info (const text_tarray &OIDs, const text_t &collection,
    107139           const text_tset &metadata, bool getParents,
     
    133165  return true;
    134166}
     167
     168
    135169
    136170// has_children returns true if OID has children
Note: See TracChangeset for help on using the changeset viewer.