Ignore:
Timestamp:
2017-02-08T18:31:18+13:00 (7 years ago)
Author:
ak19
Message:

Round 1 of commits for getting OAI deletion policy to work with GS2 (server end). The perl code writing out the OAI db and the GS3 server code implementing the deletion policy had already been completed earlier (end 2016).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/source.h

    r16310 r31387  
    6262  text_t db_filename;
    6363  dbclass *db_ptr;
     64  text_t oaidb_filename;
     65  dbclass *oaidb_ptr;
    6466
    6567  searchclass *textsearchptr;
     
    6971  virtual ~sourceclass ();
    7072
    71   // the DB ptr remains the responsibility of the calling code
     73  // the DB ptrs remain the responsibility of the calling code
     74  // but as the db_ptr is deleted by this source object, the oaidb_ptr will be deleted by this object too
    7275  void set_db_ptr (dbclass *db_ptr_arg) { db_ptr = db_ptr_arg; }
     76  void set_oaidb_ptr (dbclass *oaidb_ptr_arg) { oaidb_ptr = oaidb_ptr_arg; }
    7377
    7478  // the textsearchptr remains the responsibility of the calling code
     
    8690                  comerror_t &err, ostream &logout);
    8791
    88   // get_metadata fills out the metadata if possible, if it is not responsable
    89   // for the given OID then it will return false.
     92  // get_metadata fills out the metadata if possible.
     93  // If it is not responsible for the given OID then it will return false.
    9094  virtual bool get_metadata (const text_t &requestParams, const text_t &refParams,
    9195                 bool getParents, const text_tset &fields,
    9296                 const text_t &OID, MetadataInfo_tmap &metadata,
    93                  comerror_t &err, ostream &logout);
     97                 comerror_t &err, ostream &logout, bool append);
     98
     99  // get_oai_metadata fills out the metadata from the oai_db if possible
     100  // if it is not responsible for the given OID then it will return false.
     101  virtual bool get_oai_metadata (const text_t &requestParams, const text_t &refParams,
     102                 bool getParents, const text_tset &fields,
     103                 const text_t &OID, text_t &deleted_status,
     104                 MetadataInfo_tmap &metadata, comerror_t &err, ostream &logout);
    94105
    95106  virtual bool get_document (const text_t &OID, text_t &doc,
     
    101112  text_t resolve_db_filename(const text_t& idx,
    102113                 const text_t& file_ext);
     114  text_t resolve_oaidb_filename(const text_t& file_ext);
     115  text_t getcollectionpath();
    103116
    104117};
Note: See TracChangeset for help on using the changeset viewer.