Skip to content

Unable to work with a url-escaped image identifier when there is no identifier field #135

@hashimmm

Description

@hashimmm

In the case where the @id received from an image information (info.json) request contains a url-escaped image identifier component, and there is no identifier field, for example:
"@id": "scheme://host:port/prefix/url%20escaped%2Fidentifier"

Mirador seems to incorrectly specify the tilesUrl for OpenSeaDragon (even though simply creating an OpenSeaDragon viewer separately and specifying the info request url as tilesUrl will work). Mirador displays thumbnails for the given image just fine, there's only an issue when prepping info for OSD.

According to the image API specification the identifier field shouldn't be required.

This can be fixed by changing json.identifier = matches[2]; to json.identifier = decodeURIComponent(matches[2]); in getImageHostUrl in iiif.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions