[annotator-dev] Problems with annotators 2.0
Jorge Franco
jorgeun at gmail.com
Thu Jul 2 21:06:59 UTC 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20150702/d4d00a3e/attachment-0003.html>
More information about the annotator-dev
mailing list