[annotator-dev] Add ids to annotators
Jamie M Folsom
jfolsom at MIT.EDU
Fri Jul 20 16:02:12 UTC 2012
Hi, Randall,
Great solution. Would you post the one liner you wrote again here too? I left the chat transcript on my office machine...
And is it best to listen for those events directly in the page that's loading the Annotator, or in the Annotator class? I'll post an updated gist, or a link to our fork once I have it working.
Thanks!
Jamie
On Jul 20, 2012, at 11:52 AM, Randall Leeds wrote:
> Just remembered to follow up here. Jamie and I talked about this and I recommended he use the annotationsLoaded and annotationUpdated events to set up the id on the first highlight rather than change the call signatures of any of the methods of Annotator.
>
> On Jul 12, 2012 8:33 AM, "Jamie M Folsom" <jfolsom at mit.edu> wrote:
> Hi Folks,
>
> I am attempting to link to specific annotations within a text, and I think the way to do it is to add their ids to the highlight span, as the value of an id attribute.
>
> http://lists.okfn.org/pipermail/annotator-dev/2011-September/000099.html
>
>
> Based on this posting from last September, I have added a few lines to annotator.coffee (lines 44-48, AKA lines 311-315 in the original), which results in an Uncaught ReferenceError: Delegator is not defined.
>
> https://gist.github.com/9f20a9884068189926fa
>
> Any thoughts?
>
> Thanks!
>
> Jamie
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1583 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20120720/d70ef2ba/attachment-0004.bin>
More information about the annotator-dev
mailing list