Repository navigation
Improve Image and Presentation API compatibility - #68
Conversation
34e2237 to
321e892
Compare
321e892 to
e28c96c
Compare
phil-plencner-hl
left a comment
There was a problem hiding this comment.
Hi @lutzhelm,
At Harvard we recently discovered were are having the same issue with version 3 iiif manifests returning inaccurate download links. I tried some of our manifests against this branch and they work correctly. Here are the ones I tried:
- https://nrs.harvard.edu/URN-3:FHCL:103496523:MANIFEST:3
- https://nrs.lib.harvard.edu/URN-3:FHCL:29400954:MANIFEST:3
- https://nrs.lib.harvard.edu/URN-3:FHCL.LOEB:25853480:MANIFEST:3
- https://nrs.harvard.edu/URN-3:FHCL:106214677:MANIFEST:3
The version 2 iiiif manifests of the same objects also continue to work correctly on this branch:
- https://nrs.harvard.edu/URN-3:FHCL:103496523:MANIFEST:2
- https://nrs.lib.harvard.edu/URN-3:FHCL:29400954:MANIFEST:2
- https://nrs.lib.harvard.edu/URN-3:FHCL.LOEB:25853480:MANIFEST:2
- https://nrs.harvard.edu/URN-3:FHCL:106214677:MANIFEST:2
From my perspective this is working and can be merged. Is that something we can do, or should we bring it up at the next Mirador Community Call?
cc: @marlo-longley @cbeer
|
I'm also wondering if there is a way to port these changes to a Mirador 3 compatible version of the plugin? We have not upgraded to 4 yet, but would like the download bug fix if possible. |
…nvasDownloadLinks
…pliance TODOs - tests for added IIIF image functions - CanvasDownloadLinks with different API versions
|
@lutzhelm @marlo-longley The version 2 iiiif manifests of the same objects also continue to work correctly on this branch: This works great to me. I'm setting this PR to "Ready for Review". Can this be merged? We can discuss it in the upcoming Mirador Community Call if you think that is best. Thanks. |
|
Hi @phil-plencner-hl -- This PR branch currently has the same 8 commits applied twice, plus your merge-branch-into-itself commit. That's why the PR shows 31 commits instead of ~8. Please fix the rebase. Then I have a couple code review suggestions. Thanks! |
449b769 to
e9e168b
Compare
@marlo-longley I believe I have fixed it now. Thanks! |
marlo-longley
left a comment
There was a problem hiding this comment.
Left a few comments to change minor issues
| return false; | ||
| } | ||
|
|
||
| function supportsRequest(imageInfo, region, width, height) { |
There was a problem hiding this comment.
supportsRequest -- is this ever called? I'm not totally clear in its purpose. Could it fulfill the TODO required in line 143?
|
Thanks for the review — all four comments are addressed. Details below, since a couple of them turned out to be deeper than they looked.
|
marlo-longley
left a comment
There was a problem hiding this comment.
@phil-plencner-hl this looks good, thank you.
I have one more small cleanup request. These methods have been removed from the code and should be removed from PropTypes:
getCanonicalImageUri: PropTypes.func.isRequired
getHeight: PropTypes.func.isRequired
getWidth: PropTypes.func.isRequired
@marlo-longley These unused methods have been removed. |
I failed to notice that the commit history is again an issue.
There are now 23 commits in this PR, that is not correct.
marlo-longley
left a comment
There was a problem hiding this comment.
I failed to notice that the commit history is again an issue.
There are now 23 commits in this PR, that is not correct. Please rebase this.
5f4fa17 to
eaae5fa
Compare
|
@marlo-longley Ok. it has been rebased. |
fullvs.max/w,vs.w,h) dependent on IIIF Image API versionmaxArea/maxWidth/maxHeightThe plugin also does not offer a download for every image service beyond the first; this will need to be adressed outside this PR. -> #91