Skip to content

Commit

Permalink
Merge pull request #918 from Islandora/issues-917-ocr-action-defaults
Browse files Browse the repository at this point in the history
Updating default config for GenerateOCRDerivative.php
  • Loading branch information
alxp authored Jan 11, 2023
2 parents 6f2955b + f86f2be commit 4f4e661
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4f4e661

Please sign in to comment.