-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IIIF NamedQueries should identify assets with errors #936
Comments
A possibly simpler but slightly hand-wavy way to do it:
The These URLs aren't quite right I need to check the correct values. Then:
|
Should this be an additional parameter in configured NQ? This is a change in behaviour so could affect existing usages of NQ's (you need to strip out the |
As discussed with @tomcrane - rather than introduce a new boolean NQ configuration parameter as suggested in the above comment we will use a new Will update original issue description to summarise discussion. |
NamedQueries (NQ) don't check for the existence of an
"errors"
property when returning asset details for iiif-manifests, by default everything is rendered and treated the same. This can result in some images being rendered with either missing or0
width and height values. e.g.Failed Canvas example
To enable us to highlight failing assets in a backwards compatible manner we should introduce a new NQ configuration parameter:
errorsAs
. There is only 1 valid value for this,seeAlso
(valid values may be expanded in the future).errorsAs=seeAlso
is a NQ IIIF projection specific value (ie ZIP or PDF projection won't handle it). IferrorsAs={somethingElse}
is present it is ignored.If
errorsAs=seeAlso
is configured in a NQ then a"seeAlso"
should be added to the relevant canvases. Note that this could be on IIIF 2.1 or 3 manifest. The output error shouldn't be theImages.Error
value as it's publicly accessible so we shouldn't necessarily output full error details as it could contain origin, stack-traces etcThe standard AnnotationPage, Annotation, Image etc should still be output.
Example NQ:
assetOrder=n1;n2&s1=p1&space=p2&errorsAs=seeAlso
Original ticket suggestion below horizontal line
What can we add to the canvas to signify that the item failed to process while ensuring it is still valid IIIF. Possible options
"tagging"
or"classifying"
annotation with known value like"error: failed to process"
(note that this is a publicly accessible URL so we shouldn't necessarily output full error details as it could contain origin).@id
would we use?The text was updated successfully, but these errors were encountered: