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

Export nested lists (and optional import) #696

Open
2 tasks
inukshuk opened this issue Jul 12, 2022 · 3 comments
Open
2 tasks

Export nested lists (and optional import) #696

inukshuk opened this issue Jul 12, 2022 · 3 comments

Comments

@inukshuk
Copy link
Member

  • Export nested lists (using nested arrays?). For top-level lists the nested array should be optional to make sure we still support the current format (simple list of strings).
  • Create lists and add items accordingly on import. This is not necessarily what we want to do by default though, so we should probably hide it behind a preference. (Lists with the same name are not necessarily the same across projects!)

Besides importing lists, this would allow for an import plugin that translates a folder hierarchy to nested lists.

See #693

@MHindermann
Copy link

Is there a timeline for this feature? I am at the moment working with a project that uses hierarchical lists to define an archival order and wants to do some data enrichment on the Tropy export JSON-LD (e.g., add transcriptions to photos as notes via script), but the lists getting lost on the reimport is of course an issue.

@inukshuk
Copy link
Member Author

There's no timeline yet, but if somebody's using it, we typically try to make it a priority.

Export should be trivial to add, I'm a little concerned about import though. Currently, lists are not imported at all. This is mainly because you can import items into a list specifically; I think we'd have to add a separate import option (or a plugin?) that creates missing lists and adds the items right away.

@flachware @caro401 what do you think?

@flachware
Copy link
Collaborator

A separate import option sounds good to me.

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

3 participants