[annotator-dev] Problems with annotators 2.0

Randall Leeds tilgovi at hypothes.is
Fri Jul 3 04:16:49 UTC 2015


Thanks. The problem is that the `identity` module was not exported. This
has already been fixed. I'm making a release right now and I'll announce it
on the list.

On Thu, Jul 2, 2015 at 2:07 PM Jorge Franco <jorgeun at gmail.com> wrote:

> Hi guys,
>
> I downloaded the demo of annotator 2.0 (annotator-2.0.0-alpha.2.zip)
> https://github.com/openannotation/annotator/releases
>
> 1) using the simple identification get the following error:
> "Uncaught TypeError: Cannot read property 'simple' of undefined"
>
>     <script>
>       if (typeof annotator === 'undefined') {
>         alert("Oops! it looks like you haven't built Annotator. " +
>               "Either download a tagged release from GitHub, or build the
> " +
>               "package by running `make`");
>       } else {
>
>
>         var pageUri = function () {
>             return {
>                 beforeAnnotationCreated: function (ann) {
>                     ann.uri = window.location.href;
>                 }
>             };
>         };
>
>         var app = new annotator.App()
>             .include(annotator.identity.simple)
>             .include(annotator.ui.main, {element: document.body})
>             .include(annotator.storage.http, {prefix: '
> http://localhost/sgi/slimRESTful'})
>             .include(pageUri)
>
>         app.start()
>            .then(function () {
>                app.ident.identity = 'joebloggs';
>                app.annotations.load();
>            });
>       }
>     </script>
>
> 2)by treating to get the annotations from my store, returned the following
> error: "Unknown error while speaking to annotation store! "
>
> The API work save the annotations, but not load.
>
> In annotator 1.2 my store, load and save the annotations.
>
> Thank you very much.
>
> Congratulations for the very good project.
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20150703/012735e1/attachment-0004.html>


More information about the annotator-dev mailing list