Merge the Transkribus and file imports
- Remove
arkindex_tasks.export_transkribus - Move the Transkribus import code from
arkindex_tasks.import_transkribustoarkindex_tasks.import_files.transkribus, ignoring themain() - Move
arkindex_tasks.pagexmltoarkindex_tasks.import_files.pagexml - Remove support for job paths from the
TranskribusImporter - Have the
TranskribusImporterreturn its generated elements instead of dumpingelements.jsonfile by itself - Add code in
arkindex_tasks.import_filesto:- 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.xmlis 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