Skip to content
Snippets Groups Projects
Commit 8cf903f2 authored by Robert Casties's avatar Robert Casties
Browse files

update Mirador dependency and re-add reading manifest URI.

parent 5156c70c
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,6 @@ describe('WebAnnotation', () => { ...@@ -50,7 +50,6 @@ describe('WebAnnotation', () => {
}); });
it('with xywh only', () => { it('with xywh only', () => {
subject = createSubject({ svg: null }); subject = createSubject({ svg: null });
/* expect(subject.target()).toBe('canvasId#xywh=xywh'); */
expect(subject.target()).toEqual({ expect(subject.target()).toEqual({
selector: { selector: {
type: 'FragmentSelector', type: 'FragmentSelector',
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"@material-ui/icons": "^4.9.1", "@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.52", "@material-ui/lab": "^4.0.0-alpha.52",
"lodash": "^4.17.11", "lodash": "^4.17.11",
"mirador": "^3.0.0-rc.3", "mirador": "^3.0.0-rc.5",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"react": "16.x", "react": "16.x",
"react-dom": "16.x", "react-dom": "16.x",
......
...@@ -179,10 +179,18 @@ export default class SimpleAnnotationServerV2Adapter { ...@@ -179,10 +179,18 @@ export default class SimpleAnnotationServerV2Adapter {
} }
v3anno.target = { v3anno.target = {
selector: this.createV3AnnoSelector(v2target.selector), selector: this.createV3AnnoSelector(v2target.selector),
source: { source: v2target.full,
};
if (v2target.within) {
v3anno.target.source = {
id: v2target.full, id: v2target.full,
partOf: {
id: v2target.within['@id'],
type: 'Manifest',
}, },
type: 'Canvas',
}; };
}
return v3anno; return v3anno;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment