gbv / cocoda

A web-based tool for creating mappings between knowledge organization systems.
https://coli-conc.gbv.de/cocoda/
MIT License
39 stars 5 forks source link

Show moderated annotations when available #442

Closed nichtich closed 5 years ago

nichtich commented 5 years ago

To support "moderated" (aka approved, reviewed, checked...) mappings, annotations of motivation moderating (see Web Annotation Data Model) should be supported in a special way:

How to create moderation annotations is not part of this issue. In KENOM this is done with another user interface. We could also allow a way to check mappings for selected users or user groups via Cocoda interface but this would be another issue.

The mapping search should have an option to limit search to checked mappings but this is also another issue.

See also #351 for a third kind of annotation to possibly support.

stefandesu commented 5 years ago

Should the annotation with motivation moderating have any value in bodyValue? I couldn't find suggestions for that anywhere, but from the description it seems that moderating should have some value associated with it.

nichtich commented 5 years ago

As described here the body (or bodyValue) is optional, so an annotation would look like this:

{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "type": "Annotation",
  "id": "https://coli-conc.gbv.de/api/annotations/...",
  "target": "https://coli-conc.gbv.de/api/mappings/...",
  "motivation": "moderating",
  "creator": { ... },
  "created": "..."
}
stefandesu commented 5 years ago

I added support for annotations with motivation "moderating". Currently it shows a checkmark instead of the vote count, and in the popover the moderating annotation is shown as well (also with a checkmark). Voting is still possible however, should that be removed? (Note that it would only be removed from the UI, voting via the API would still be possible.)