OnroerendErfgoed / atramhasis

An online SKOS editor
http://atramhasis.readthedocs.io/
GNU General Public License v3.0
53 stars 11 forks source link

Non-numeric id's - frontend #740

Closed koenedaele closed 1 year ago

koenedaele commented 1 year ago

Once #739 is ready, update the UI. Frontend will need to read the _atramhasis.id_generationstrategy from every skosprovider and adapt the form for adding concepts or collections. If the generation strategy is set to manual, a field "id" should be added for users. This corresponds with the "id" attribute in the JSON data (which is not the same as the autogenerated id used as primary key in the DB). If the generation strategy is not set to manual, the user can't submit an id.

On updating the concept or collection, the field is never editable, since editing the identifier would probably lead to a changed URI.

cedrikv commented 1 year ago

@koenedaele can we add this info to the /conceptschemes call? image

or @Wim-De-Clercq

cedrikv commented 1 year ago

possible (poc) solution provided by @Wim-De-Clercq : image

koenedaele commented 1 year ago

Ticket #795 has been fixed, so the datageneration strategy is now available in the provider endpoint.

koenedaele commented 1 year ago

Now wondering how frontend will know which provider is linked to which conceptscheme. Can be done by getting the full list of providers and checking the conceptscheme_uri. But perhaps it's easier to have a /providers?conceptscheme_uri=https://id.erfgoed.net/thesauri/erfgoedtypes endpoint?