ANNIS icon indicating copy to clipboard operation
ANNIS copied to clipboard

CSV export fails for corpora with same metakey as a document

Open amir-zeldes opened this issue 4 years ago • 1 comments

When asking for metakeys in CSV export, the exporter crashes if a document has the same metadata key as the corpus. To reproduce, use any Scriptorium corpus - there is a metadatum 'annotation' at both the corpus and document level (often with different values). The exporter throws this error:

image

amir-zeldes avatar Nov 14 '19 15:11 amir-zeldes

@thomaskrause this happens if any metakeys are specified, even if the duplicate key is not requested. Assuming this is now because corpus meta is supported in export, I would be happy with using document metadata by default whenever there is a conflict, or adding syntax to specify which level is meant (a quick fix would be preferred by our users, who don't really need corpus metadata export as much as document level).

amir-zeldes avatar Nov 14 '19 15:11 amir-zeldes