Allow adding standard annotations #114
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-vue#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Origin: inm7/annotate.inm7.de-simplesubmit#25
Related:
I'm thinking it would be good to approach this in a general way via config. The general functionality is: add some annotation with extra message/content.
The current data model / app UI have the ability to add
Annotations to aThing, specifically by selecting an existing standardannotation_tag, e.g. "To be deleted", and adding anannotation_value, e.g. a string containing an explanation as to why theThingshould be deleted.Generally, a specific button on a record could be attached to a specific annotation tag (which has a PID, and can therefore be specified via config), so pressing the button could internally create and link that annotation, and then require the
annotation_valueto be input manually. This suggests that theAnnotationform can be used for this, i.e. it would be opened directly from the button press, with the annotation tag prefilled.One uncertainty that remains is the nature of the
annotation_value. It seems it would often be a string, which fits the model of anAnnotation. But looking at the use case:The who and when would not best be described via strings, rather some
Thing. In such cases, would the annotation itself have to be linked to a newStatement, as the subject, with the object then being the who or when?Getting back to the config, we could e.g. have an option
record_actionsthat ties a specific button functionality to a specific record type to be created and associated slots to be prefilled:In this way, these record actions could also be used in other contexts outside of this specific "button-adds-annotation" use case.
Regarding pre-populating the
Annotationform (with the tag, in the use case above), this could also be seen as a general functionality. After pressing the button, the rest would pretty much follow the same approach as when editing a record (as opposed to creating a new record). This suggests that it can be achieved by creating the record first (and linking the tag) when the user hits the button, and then open the form as an edit process.This functionality, i.e. creating a record and adding links, would be very similar to what is needed to support (in part) the feature of record cloning: https://github.com/psychoinformatics-de/shacl-vue/issues/117