diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts index 70fc7cae1..5c7ddd935 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts @@ -1281,7 +1281,7 @@ export default class OpenSeadragonExtension extends BaseExtension { getImageId(canvas: Canvas): string | null { if (canvas.externalResource) { - const id: string | undefined = canvas.externalResource.data["@id"]; + const id: string | undefined = canvas.externalResource.data["@id"] || canvas.externalResource.data.id; if (id) { return id.substr(id.lastIndexOf("/") + 1); @@ -1339,7 +1339,7 @@ export default class OpenSeadragonExtension extends BaseExtension { id += "/"; } - if (Utils.isImageProfile(service.getProfile())) { + if (Utils.isImageProfile(service.getProfile()) || Utils.isImageServiceType(service.getIIIFResourceType())) { infoUri = id + "info.json"; } }