[annotator-dev] Display customized "create By and create at " in the annotation VIEW

Gong Huaiyu James (NCS) jamesh at ncs.com.sg
Thu Nov 7 09:48:22 UTC 2013


Dear developers:
                     Please see the attached screenshots,   I want to display the additional info such as "Alice created -  at 2013-11-07 09:19"  in the annotation view.
                          How do I do that?
                       I simply initialize the annotation ['user']= "Alice created -  at 2013-11-07 09:19"   in the backend when loading the annotations.

And add the 'Permissions' plugin  
annotator.addPlugin('Permissions', {
  user: 'Alice',
  permissions: {
    'read':   ['Alice'],
    'update': ['Alice'],
    'delete': ['Alice'],
    'admin':  ['Alice']
  }
});
                           	The 'Permissions' plugin  will automatically append the annotation['user'] into the annotation View.
                              It works for me.  
                             Any side effect for this change?
                             Basically I want to customize the who created this annotation when we view it.

Thanks




-------------- next part --------------
A non-text attachment was scrubbed...
Name: createdBY.png
Type: image/png
Size: 14268 bytes
Desc: createdBY.png
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20131107/69d1b49e/attachment-0003.png>


More information about the annotator-dev mailing list