[annotator-dev] Fwd: Help n00b with Annotate plugin

Rufus Pollock rufus.pollock at okfn.org
Thu Aug 4 11:03:14 UTC 2011


Someone with a query about to set up annotator-dev ...

@Michael: are you using the code from http://github.com/okfn/annotator?

---------- Forwarded message ----------
From: Nick Stenning <nick at whiteink.com>
Date: 26 July 2011 11:45
Subject: Fwd: Help n00b with Annotate plugin
To: annotator at okfn.org,
reply+m-10271441-324af6283ea6e5ad5b7986076c72d69086072a4c at reply.github.com


Hi Michael,

I'm forwarding this on to the bunch of people who are working on
Annotator right now, as I haven't touched the code in several months
and might be quite out of date!

Best wishes,
Nick

Begin forwarded message:

> From: mwcarper13 <reply+m-10271441-324af6283ea6e5ad5b7986076c72d69086072a4c at reply.github.com>
> Subject: Help n00b with Annotate plugin
> Date: 20 July 2011 02:57:21 GMT+01:00
> To: nick at whiteink.com
>
> Hi Nick. First, I'd like to thank you for all the work you've done for AnnotateIt.org. It goes without saying that I would be 100% lost without your fork and the Wiki. I really appreciate it.
>
> I'm thankful for what you've done because I hardly know any programming, but I'm trying to implement something similar to Open Shakespeare for a project idea I'm working on. You can find the work in progress here: http://www.michael-carper.com/theaeneid.html. I've been able to get to that point through the Annotator fork plus looking at the Open Shakepeare and Demo page source code.
>
> My problem is, every annotation is logged as my AnnotateIt.org account Id, no matter where I do the annotation. Moreover, it doesn't show who that account Id is.
>
> My question is, how do I adjust the Auth, Permissions and Store plugin settings in jQuery so that:
> 1. The annotations display the IP address (or Annotateit.org username) of whomever did the editing.
> 2. The reading, editing, and deleting permission are open to adjustment by everyone.
> 3. The annotations are stored on my AnnotateIt account and are displayed publicly.
>
> Is that beyond the reach of AnnotateIt, or is my lack of programming knowledge simply the problem?
>
> Thanks a lot
>
> Michael
>
> BTW, here's my script:
>
> jQuery(function ($) {
>
>  $('#content').annotator().annotator('addPlugin', 'Store', {
>       prefix: 'http://annotateit.org/api'
>  })
>  .annotator('addPlugin', 'Auth', {
>    userId:    'mwcarper13',
>    userName:  'mwcarper13',
>    accountId: '39fc339cf058bd22176771b3e3217619',
>    authToken: '6400a96da6eeab04661d3d7087face0b66a9b9e6cf4b2d88b0b8be621d55970c',
>
>  });
> });
>
> var content = $('#content').annotator().annotator('addPlugin', 'Tags');
>
> var content = $('#content').annotator().annotator('addPlugin', 'Filter', {
>       filters: [
>       {
>               label: 'Tag',
>               property: 'tag'
>       }
>       ]
> });
>
> var annotator = $('#content').annotator().data('annotator');
> annotator.addPlugin('Permissions', {
>  user: 'mwcarper13',
>  permissions: {
>    'read':   [],
>    'update': ['mwcarper13'],
>    'delete': ['mwcarper13'],
>    'admin':  ['mwcarper13']
>  }
> });
>
> --
> Reply to this email directly or view it on GitHub:
> http://github.com/inbox/10271441#reply




-- 
Co-Founder, Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age
http://www.okfn.org/ - http://blog.okfn.org/




More information about the annotator-dev mailing list