NaN in thumbnail display #3532
-
Hello, I've set up a Mirador 3 site and, while everything else works fine, I'm seeing these NaN labels on the thumbnails. I'm assuming it's an issue with our manifest, like a missing or invalid field. Looking through the Mirador code, I can't find where specifically it's looking for this label. Which data field does Mirador source these labels from? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I just encountered this issue. Here is how I resolved it, using IIIF presentation API v3.0: I added the following
Now I see (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 |
Beta Was this translation helpful? Give feedback.
-
@camdendotlol would you be able to provide a copy of a manifest where you're seeing this occur? While I think @northcoder-repo has indeed come up with a solution that highlights a bug in Mirador where it attempts to construct a label when no label is given (credit to @lutzhelm for spotting where in the code this is occurring), it's also possible the manifest design can also be contributing to this. |
Beta Was this translation helpful? Give feedback.
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"
:Now I see
foo
in the thumbnail, instead ofNaN
("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.