Bug 4927 - Add support for deleted record tracking
Add support for deleted record tracking
Status: NEW
Product: OHS
Classification: Unclassified
Component: OAI front-end
2.x
PC Linux
: P5 enhancement
Assigned To: PKP Support
Depends on:
Blocks:
  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:


Attachments

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."