Added codebook viewset
Wrote AmCATViewSetMixin which allows defining viewsets in a less repetitive and flexible manner.
Improved coding style viewset.py, moved get_url_pattern to class.
Reworked viewset declarations to use AmCATViewSetMixin
can_create / can_update remove from AmCATModel, changing project.py to reflect these changes.
Cleaned Annotator JS; now uses new API more.
Models can't be defined on mixins, without reversing inheriting order. Moved models back into ViewSets.
Automatic lookup now occurs for getattr(viewset, viewset.model_key), which resolves to viewset.model.objects.get(pk=self.kwargs[model_key]). Changed all viewsets to support this change (removed dead code).
Added codingrule / highlighter api support
Fixed bug in coding-viewsets (self.article is now self.coding_article)
Annotator now loads article from new API (codings pending)
Codings now include their codingvalues (API), added codingschemafields to codingschema (API)
Added CodingJobCodingSchemaFieldViewSet
Cleaned Annotator some more, highlighter works again
General code cleanup (terminated statements, removed unused variables, optimized jQuery calls, ..)
Enabled wordcount
- Annotator now builds a form out of input-elements (which contain html5-supported 'type' attributes).
- When receiving objects, all foreign keys are resolved to objects (were applicable).
Removed dead code.
Empty coding is generated when no coding is available for current article.
Articlecodings are now displayed