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

Metadata should be sorted to better support diff’ing #4357

Open
matthias-ronge opened this issue Apr 22, 2021 · 1 comment
Open

Metadata should be sorted to better support diff’ing #4357

matthias-ronge opened this issue Apr 22, 2021 · 1 comment

Comments

@matthias-ronge
Copy link
Collaborator

matthias-ronge commented Apr 22, 2021

The metadata is stored in Kitodo in a random order. This is correct, as metadata is without any explicit order in MODS. However, when two file versions are compared by the programmer (with “diff”), there are many changes, and these are not changes, but they are caused due to the random order of entries.

Goal: is to save the metadata in sorted order, by name, and then by value Edit: metadata of the same name should keep their order across several saves (see below). Since the order is meaningless, it can also be stored this way.

Differences in Diff

@matthias-ronge
Copy link
Collaborator Author

There are circumstances in which it is expressly desired that metadata of the same name have a fixed order. This applies to contributors, for example. Thus, while an alphabetical ordering of metadata by name would be desirable, metadata within the same name should simply retain their manually established (or random) order across multiple saves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants