Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
2.3
-
None
-
annotation class fields configuration
-
Description
Currently, a hardcoded list of AnnotationClass fields exists that specifies which fields to ignore from view/edit/create/list modes. Also, for filter mode, only the author is hardcoded to be displayed.
The proposed patch defines an AnnotationHiddenPropertyClass and expects that the custom/default AnnotationClass XWiki document contains such objects which specify what properties to hide from the current modes in which an annotation can be interracted with: view, edit, create, list, filter.
The AnnotationCode.Settings page has been modified to use all such annotation properties/fileds for filtering and the AnnotationCode.Macros has been modified to use such properties in the remaining modes.
This way, anyone that implements a custom AnnotationClass and an IOService can display and manipulate all the defined properties, without having to override existing macros that directly handle the annotations.