Skip to content

NaN in thumbnail display #3532

Closed Answered by northcoder-repo
camdendotlol asked this question in Q&A
Discussion options

You must be logged in to vote

I just encountered this issue. Here is how I resolved it, using IIIF presentation API v3.0:

I added the following label section to my items list, where "type": "Canvas":

"label": {
    "en": [
        "foo"
    ]
},

Now I see foo in the thumbnail, instead of NaN ("not a number").

(This was just for a single image. I would repeat this for multiple images, as needed. Haven't got to that step yet. I am new to IIIF, so there is always the chance that there is a better approach I am not aware of.)


If you are using version 2 of the presentation spec, I think the solution is completely different - relating to sequences labels.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by camdendotlol
Comment options

You must be logged in to vote
2 replies
@camdendotlol
Comment options

@enriquediaz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants