You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as a separate resource, referenced by manifest.json
embedded in info.json
as a separate resource, referenced by info.json
The problem is that right now, the ImageView module of Mirador doesn't export the info.json metadata after it is fetched; it just uses the metadata internally to instantiate an instance of OpenSeadragon, and then throws the metadata away. So right now it is impossible to modify this plugin to support options 3) and 4) above without making custom modifications to the Mirador source code.
My solution requires two steps:
somewhere in that callback function declared on line 540, set a property on _this (the ImageView object) that exports the value of the infoJson local variable (e.g., _this.currentInfoJson = infoJson;)
change this line to var service = _this.currentImg.service || _this.currentInfoJson.service;
I will open a related issue on the Mirador project, and will reference it here.
Per the IIIF services annex document, there are four ways to include physical dimension metadata:
manifest.json
manifest.json
info.json
info.json
The problem is that right now, the ImageView module of Mirador doesn't export the
info.json
metadata after it is fetched; it just uses the metadata internally to instantiate an instance of OpenSeadragon, and then throws the metadata away. So right now it is impossible to modify this plugin to support options 3) and 4) above without making custom modifications to the Mirador source code.My solution requires two steps:
_this
(theImageView
object) that exports the value of theinfoJson
local variable (e.g.,_this.currentInfoJson = infoJson;
)var service = _this.currentImg.service || _this.currentInfoJson.service;
I will open a related issue on the Mirador project, and will reference it here.
ProjectMirador/mirador#1378
The text was updated successfully, but these errors were encountered: