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/oaiservr/listidsaction.cpp

    r27534 r31387  
    237237  text_tset        metadata;
    238238  ofstream         logout("oai.log", ios::app);
    239   text_t           lastModified;
     239  text_t           lastModified = "";
     240  text_t           deleted_status = "";
    240241  int              oaiVersion = this->configuration->getOAIVersion();
    241242  text_t repos_id = this->configuration->getRepositoryId();
    242   get_info(OID, collection, "", metadata, false, protocol, response, logout);
     243  get_oai_info(OID, collection, "", metadata, false, protocol, response, logout);
    243244  doc_info = response.docInfo[0];
    244245  this->getLastModifiedDate(doc_info, lastModified);
     246  this->getMeta(doc_info, "oaiinf.status", deleted_status);
    245247 
    246248  // output the record for this document
     
    251253    output << "  <identifier>" << oaiLabel << "</identifier>\n";
    252254  else
    253     this->output_record_header(output, oaiLabel, lastModified,
     255    this->output_record_header(output, oaiLabel, lastModified, deleted_status,
    254256                   doc_info.metadata["memberof"].values, oaiVersion);
    255257
Note: See TracChangeset for help on using the changeset viewer.