|
|
|
@ -22,9 +22,13 @@ class GenerateOCRDerivative extends AbstractGenerateDerivative {
|
|
|
|
|
public function defaultConfiguration() { |
|
|
|
|
$config = parent::defaultConfiguration(); |
|
|
|
|
$config['path'] = '[date:custom:Y]-[date:custom:m]/[node:nid]-[term:name].txt'; |
|
|
|
|
$config['mimetype'] = 'application/xml'; |
|
|
|
|
$config['event'] = 'Generate Derivative'; |
|
|
|
|
$config['source_term_uri'] = 'http://pcdm.org/use#OriginalFile'; |
|
|
|
|
$config['derivative_term_uri'] = 'http://pcdm.org/use#ExtractedText'; |
|
|
|
|
$config['mimetype'] = 'text/plain'; |
|
|
|
|
$config['queue'] = 'islandora-connector-ocr'; |
|
|
|
|
$config['destination_media_type'] = 'file'; |
|
|
|
|
$config['destination_media_type'] = 'extracted_text'; |
|
|
|
|
$config['scheme'] = 'fedora'; |
|
|
|
|
return $config; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|