WebCuratorTool / webcurator

The root of the webcurator tool project, containing all modules needed to run a fully functional webcurator tool.
Apache License 2.0
2 stars 1 forks source link

Optional type field for target annotations #85

Open hannakoppelaar opened 1 year ago

hannakoppelaar commented 1 year ago

In order to add a bit more structure to the target annotations we can introduce a "type" attribute at the annotation level. In the UI this "type" field will correspond to a dropdown list for every annotation on the Annotations tab. The options in this dropdown list should be configurable via application.properties. It should be possible to set a default option in the configuration. If no options are configured, no dropdown list is displayed, making this functionality entirely optional (pun not intended).

This type field in the UI should be mapped to a new varchar field "an_type" in the ANNOTATIONS table. If no option was selected, this field should be NULL. For non-target annotations this field should also be NULL.