Ignore:
Timestamp:
1999-07-20T15:01:15+12:00 (25 years ago)
Author:
sjboddie
Message:

get_children now takes a getParents argument

File:
1 edited

Legend:

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

    r346 r406  
    1212/*
    1313   $Log$
     14   Revision 1.11  1999/07/20 02:59:03  sjboddie
     15   get_children now takes a getParents argument
     16
    1417   Revision 1.10  1999/07/07 05:47:41  sjboddie
    1518   changed around the way browsetools works
     
    152155
    153156bool get_children (const text_t &OID, const text_t &collection,
    154            const text_tarray &metadata, recptproto *collectproto,
    155            FilterResponse_t &response, ostream &logout) {
     157           const text_tarray &metadata, bool getParents,
     158           recptproto *collectproto, FilterResponse_t &response,
     159           ostream &logout) {
    156160 
    157161  response.clear();
     
    167171  request.filterResultOptions = FROID | FRmetadata;
    168172  request.fields = metadata;
     173  request.getParents = getParents;
    169174
    170175  collectproto->filter (collection, request, response, err, logout);
     
    260265    int parentcols = countchar (parent.begin(), parent.end(), '.');
    261266    FilterResponse_t tmp;
    262     get_children (section.OID, collection, metadata, collectproto, tmp, logout);
     267    bool getParents = false;
     268    get_children (section.OID, collection, metadata, getParents, collectproto, tmp, logout);
    263269    ResultDocInfo_tarray::const_iterator thisdoc = tmp.docInfo.begin();
    264270    ResultDocInfo_tarray::const_iterator lastdoc = tmp.docInfo.end();
Note: See TracChangeset for help on using the changeset viewer.