Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Round-tripping with non-CSV originating models #3

Open
mattmcgrattan opened this issue Jan 18, 2018 · 0 comments
Open

Round-tripping with non-CSV originating models #3

mattmcgrattan opened this issue Jan 18, 2018 · 0 comments
Assignees

Comments

@mattmcgrattan
Copy link
Collaborator

Currently, models that are initiated solely in Omeka S, exported as JSON, and converted to CSV using gen_csv.py will not export back to JSON using gen_json.py cleanly.

This is because the Capture Model importer/exporter makes use of an ID field, and sets the Type (neither of which are native to the Crowd Source Element and Group resource templates).

Add better handling for missing IDs to the gen_csv/gen_json code, and, consider persisting any existing IDs from JSON as the ID in the exported CSV.

@mattmcgrattan mattmcgrattan self-assigned this Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant