ProjectMirador / mirador-annotations

a Mirador 3 plugin that adds annotation creation tools to the user interface
https://mirador-annotations.netlify.app/
38 stars 37 forks source link

Update SimpleAnnotationServerV2Adapter.js #55

Open rchavez-neu opened 3 years ago

rchavez-neu commented 3 years ago

Using SimpleAnnotationServerV2Adapter.js with Mirador 3.1.1. and mirador-annotation plugin 0.5.0, it appears that the V3 annotation structure has changed slightly. This causes line 80 (full: v3anno.target.source.id) of SimpleAnnotationServerV2Adapter.js not to fucntion properly -- the "full" JSON key will not have a canvadIS URI value.

changing line 80: full: v3anno.target.source.id to: full: v3anno.target.source

fixes the issue and enables SimpleAnnotationServerV2Adapter.js to output the correct canvasID s