An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.
Just trying to update the SimpleAnnotationServer to work with the latest version of Mirador and found a problem when I tried to edit an annotation. Mirador sends the following Annotation:
but as the scope isn't in the context.json when it gets loaded to the RDF store the scope section is lost. Now when I try and edit an annotation the scope is missing so setting scope.value below in osd-canvas-renderer.js fails as the scope is missing.
439 var scope = _this.osdViewer.viewport.viewportToImageRectangle(bounds);
440 //bounds is giving negative values?
441 //update scope
442 oaAnno.on.scope.value = "xywh="+Math.round(scope.x)+","+Math.round(scope.y)+","+Math.round(scope.width)+","+Math.round(scope.height); //osd bounds
Would it be possible to add a test to see if scope is missing and if it is add an empty scope (if scope is required).
Just trying to update the SimpleAnnotationServer to work with the latest version of Mirador and found a problem when I tried to edit an annotation. Mirador sends the following Annotation:
but as the scope isn't in the context.json when it gets loaded to the RDF store the scope section is lost. Now when I try and edit an annotation the scope is missing so setting scope.value below in osd-canvas-renderer.js fails as the scope is missing.
Would it be possible to add a test to see if scope is missing and if it is add an empty scope (if scope is required).