DiSSCo / disscover

Search, discover and act upon data within the DiSSCo digital infrastructure.
https://dev.dissco.tech
Apache License 2.0
1 stars 0 forks source link

Annotation wizard define motivation and values step #104

Closed TomDijkema closed 1 month ago

TomDijkema commented 1 month ago

PR adds a third step to the annotation wizard for defining the annotation motivation and specifying the values that should form the body of the annotation.

Additions and modifications enable the user to provide values for the whole (or part of) digital object that is provided as the super class. All terms in the digital object, as well as sub classes and terms and sub classes within those will be rendered, so if a user targets a high level in the digital object, lots of different child classes can appear and be given values. Annotations with the comment or assessment motivations will render a default text area.

Adding a new instance of a class or term will block all other motivations and always be an empty form (because it is a completely new one). A new instance of a class within an array will always be defined as the next index to appear in that array and be specified this way in the JSON path.

Existing instances of terms or classes can be modified, commented on or be assessed. Modifying instances will look up the existing values in the provided super class and render them inside the form.

This step represents the last real action a user has to do in terms of defining values for the annotation.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud