Daniel-KM / Omeka-S-module-Mirador

Omeka S module that integrates Mirador, an advanced viewer, in order to display one or multiple images, local or remote, via the IIIF standard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotot not working

JorisLambrechts opened this issue · comments

We are annotations using Mirador 3 (with the plugin Annotation enabled). Everything works fine when using local storage but when I try our annotot endpoint I get the following error:

ReferenceError: AnnototAdapter is not defined
at window.miradorAnnotationServerAdapter (mirador-bundle.min.js?v=3.3.7.10:152)
at Object.adapter (19452:33)
at mirador-bundle.min.js?v=3.3.7.10:106
at Array.forEach ()
at i.o.retrieveAnnotations (mirador-bundle.min.js?v=3.3.7.10:106)
at i.o.componentDidUpdate (mirador-bundle.min.js?v=3.3.7.10:106)
at os (mirador-bundle.min.js?v=3.3.7.10:98)
at pu (mirador-bundle.min.js?v=3.3.7.10:98)
at t.unstable_runWithPriority (mirador-bundle.min.js?v=3.3.7.10:106)
at Ui (mirador-bundle.min.js?v=3.3.7.10:98)

I'm using the zipped version of the plugin (latest version), so maybe the annotot plugin isn't bundled in?

This is a js issue, the config is not good. Can you check if the var annotationEndpoint is set in the html code of the page?

And can you check that the version of mirador is "vendor/mirador/mirador-bundle.min.js"?

Ok, I copied the js in the html, both the endpoint is set and the bundle is loaded:

<script type="text&#x2F;javascript" defer="defer" src="&#x2F;momu&#x2F;modules&#x2F;Mirador&#x2F;asset&#x2F;vendor&#x2F;mirador&#x2F;mirador-bundle.min.js&#x3F;v&#x3D;3.3.7.12"></script>
<script type="text&#x2F;javascript" defer="defer" src="&#x2F;momu&#x2F;modules&#x2F;Mirador&#x2F;asset&#x2F;js&#x2F;mirador.js&#x3F;v&#x3D;3.3.7.12"></script>
<script type="text&#x2F;javascript">
    //<!--
    var miradorConfig = {
    "id": "mirador-1",
    "globalMiradorPlugins": [
        "annotations",
        "dl"
    ],
    "language": "",
    "windows": [
        {
            "manifestId": "http://localhost/iiif/3/8/manifest",
            "loadedManifest": "http://localhost/iiif/3/8/manifest"
        }
    ],
    annotation: {
        adapter: (canvasId) => window.miradorAnnotationServerAdapter(canvasId),
    },
window: {
        defaultSideBarPanel: 'annotations',
        sideBarOpenByDefault: false,
    },
};
window.globalMiradorPlugins = miradorConfig.globalMiradorPlugins;
var annotationEndpoint = "https://xxxxxxxx/annotod";
    //-->
</script>

I've not added any custom config settings in the admin panel.

Is there log in the console of the browser?

Sorry, I was away on holiday.

But there is no extra logs in the console of the browser. Only the info that's already in my original post.

So I'll fix it when I'll find the issue.