add_metadata: add version info
@@ -95,7 +95,15 @@ class Processor():
externalId="parameters",
Label=[LabelType(type_=name,
value=self.parameter[name])
- for name in self.parameter.keys()])]))
+ for name in self.parameter.keys()]),
+ LabelsType(
+ externalModel="ocrd-tool",
+ externalId="version",
+ Label=[LabelType(type_=self.ocrd_tool['executable'],
+ value=self.version),
+ LabelType(type_='ocrd/core',
+ value=OCRD_VERSION)])
+ ]))
@property
def input_files(self):
