diff --git a/arkindex/process/models.py b/arkindex/process/models.py index b618b6c530dc3ee5f8435a8a31dcc6fe9b9930f9..ba7788bf38d03692d61abb05d1698c796eb7a327 100644 --- a/arkindex/process/models.py +++ b/arkindex/process/models.py @@ -70,6 +70,7 @@ class ProcessMode(Enum): class ExportFormat(Enum): PDF = "pdf" PageXML = "page_xml" + DOCX = "docx" class Process(IndexableModel): @@ -703,6 +704,7 @@ class ArkindexFeature(Enum): # FEATURE_FORMAT_MAP dictionary which maps export formats to arkindex features ExportPDF = "pdf_export" ExportPageXML = "pagexml_export" + ExportDOCX = "docx_export" class WorkerVersion(models.Model): @@ -1222,5 +1224,6 @@ class CorpusWorkerVersion(models.Model): # A mapping of export formats with their corresponding arkindex feature FEATURE_FORMAT_MAP = { ExportFormat.PDF: ArkindexFeature.ExportPDF, - ExportFormat.PageXML: ArkindexFeature.ExportPageXML + ExportFormat.PageXML: ArkindexFeature.ExportPageXML, + ExportFormat.DOCX: ArkindexFeature.ExportDOCX } diff --git a/arkindex/system_workers.yml b/arkindex/system_workers.yml index 3a94f9635b51bc788ab053da20308d28fb3191ba..c5f659f14a9513b7f9fd004b374a6ef256b5f1f5 100644 --- a/arkindex/system_workers.yml +++ b/arkindex/system_workers.yml @@ -17,3 +17,6 @@ features: pagexml_export: image: registry.gitlab.teklia.com/arkindex/workers/export:0.2.0 command: worker-export-pagexml + docx_export: + image: registry.gitlab.teklia.com/arkindex/workers/export:0.2.0 + command: worker-export-docx