dummy_processor: update pcGtsId, too
@@ -21,7 +21,7 @@ OCRD_TOOL = parse_json_string_with_comments(resource_string(__name__, 'dummy/ocr
class DummyProcessor(Processor):
"""
- Bare-bones processor that copies mets:file from input group to output group.
+ Bare-bones processor that only copies mets:file from input group to output group.
"""
def process(self):
@@ -34,6 +34,7 @@ class DummyProcessor(Processor):
ext = MIME_TO_EXT.get(input_file.mimetype, '')
local_filename = join(self.output_file_grp, file_id + ext)
pcgts = page_from_file(self.workspace.download_file(input_file))
+ pcgts.set_pcGtsId(file_id)
self.add_metadata(pcgts)
LOG.info("cp %s %s # %s -> %s", input_file.url, local_filename, input_file.ID, file_id)
if input_file.mimetype == MIMETYPE_PAGE:
@@ -75,7 +76,7 @@ class DummyProcessor(Processor):
def __init__(self, *args, **kwargs):
kwargs['ocrd_tool'] = OCRD_TOOL
- kwargs['version'] = '0.0.1'
+ kwargs['version'] = '0.0.2'
super(DummyProcessor, self).__init__(*args, **kwargs)
@click.command()
