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

Behaviour of OLA-HD and ocrd_olahd_client regarding previous works. #11

Open
joschrew opened this issue Dec 6, 2022 · 0 comments
Open

Comments

@joschrew
Copy link
Collaborator

joschrew commented Dec 6, 2022

Currently a previous work must be specified via it's PID. So to update a work the latests PID of the work has to be known. Then the PID must be provided when uploading an update of an existing OCRD-ZIP.
We should think about using the ocrd_identifier to reference a previous work. Olahd could store the ocrd_identifier of each work in its database and ensure it's uniqueness. Then when uploading a work, the ocrd_identifier of a previous work (instead of the PID) could be specified to make it clear that this is an update of an existing OCRD-ZIP.
Benefit: Update handling becomes easier because only the ocrd_identifier has to be known and storing multiple versions can be automated. Disadvantage: an ocrd_identifier must be unique and already used ocrd_identifiers cannot be reused.

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