Browse Source

Updating default config for GenerateOCRDerivative.php

pull/918/head
dannylamb 2 years ago committed by GitHub
parent
commit
f86f2bedb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      modules/islandora_text_extraction/src/Plugin/Action/GenerateOCRDerivative.php

8
modules/islandora_text_extraction/src/Plugin/Action/GenerateOCRDerivative.php

@ -22,9 +22,13 @@ class GenerateOCRDerivative extends AbstractGenerateDerivative {
public function defaultConfiguration() { public function defaultConfiguration() {
$config = parent::defaultConfiguration(); $config = parent::defaultConfiguration();
$config['path'] = '[date:custom:Y]-[date:custom:m]/[node:nid]-[term:name].txt'; $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['queue'] = 'islandora-connector-ocr';
$config['destination_media_type'] = 'file'; $config['destination_media_type'] = 'extracted_text';
$config['scheme'] = 'fedora';
return $config; return $config;
} }

Loading…
Cancel
Save