Moderators: jmacgreg, michael, John
$record =& $harvester->getRecord();$recordDao =& DAORegistry::getDAO('RecordDAO');
$recordDao->deleteRecord($record);
function preprocessEntry(&$archive, &$record, &$field, &$value, &$attributes) {
/*
* Add your regular expressions, and any conditional logic, here. You can use
* methods like $archive->getArchiveId() and $field->getName() in your code.
* This example removes periods from the ends of subject elements:
*
* if ($field->getName() == 'subject') {
* $value = preg_replace('/\.$/', '', $value);
* }
*/
return false;
}
Return to Open Harvester Systems Support and Development
Users browsing this forum: No registered users and 2 guests