Merge the Transkribus and file imports
- Remove
arkindex_tasks.export_transkribus
- Move the Transkribus import code from
arkindex_tasks.import_transkribus
toarkindex_tasks.import_files.transkribus
, ignoring themain()
- Move
arkindex_tasks.pagexml
toarkindex_tasks.import_files.pagexml
- Remove support for job paths from the
TranskribusImporter
- Have the
TranskribusImporter
return its generated elements instead of dumpingelements.json
file by itself - Add code in
arkindex_tasks.import_files
to:- Detect that a file is a ZIP archive
- Try to open the ZIP archive
- If the ZIP archive contains a
mets.xml
, assume that it is a Transkribus archive and import it using theTranskribusImporter
(Yes, we do not support a generic METS import, butmets.xml
is the only file that should always be found in every Transkribus export) - If it does not contain
mets.xml
, die in mysterious circumstances (for now)
Edited by Erwan Rouchet