We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 4927 - Add support for deleted record tracking
Add support for deleted record tracking
Status: NEW
Product: OHS
Classification: Unclassified
Component: OAI front-end
PC Linux
: P5 enhancement
Assigned To: PKP Support
Depends on:
  Show dependency treegraph
Reported: 2009-12-04 14:46 PST by Alec Smecher
Modified: 2009-12-04 14:46 PST (History)
0 users

See Also:
Version Reported In:
Also Affects:


Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2009-12-04 14:46:09 PST
Add support for deleted record tracking, i.e. rather than deleting records entirely, for re-serving OAI.

From Olav Tuften:

"By the way, I have also made a change to handle 'deleted records' i.e.
to store an "empty" record instead of delete it.
 * in plugins/harvesters/oai/OAIHarvester.inc.php near line 360:
$record =& $this->getRecordByIdentifier($identifier);
$xml = '';
return $this->_updateRecord($record, $xml);
instead of calling _deleteRecordByIdentifier.
 * in lib/pkp/classes/oai/OAI.inc.php:
if (!$this->formatMetadata($metadataPrefix, $record)) {
$response = str_replace('<header', '<header status="deleted"' ,
$response);} else { ....
for ListRecords and GetRecord."