Closed mbollmann closed 7 years ago
Original comment by Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann):
Convert internal comments to annotations; resolve #38
This change converts internal comments, previously stored in table
comment
with comment_type="C", to a new annotation layer with
class="comment".
The change gets rid of various comment-specific code, since these comments are now treated like any other annotation. It is now possible to have texts with a comment column, if desired.
In XML, comments are now exported as
Originally reported by: Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann)
Comments (of the type that is displayed in the editor) are currently treated differently from other annotations, although logically they behave in the same way: they are attached to mods, they appear in the export just like any other annotation, etc.
Consequently, they should be treated as such internally, i.e.:
The change is facilitated by the fact that the JavaScript side already treats "comment" like any other tagset; the main change would be on the server-side code.