Open mbennett-uoe opened 4 years ago
Three possible approaches:
CANVAS_LOCATION = "{manifest_url}/mycustomconstruct/someotherthing/{canvas_id}"
app.config["CANVAS_LOCATION"].format(manifest_url='http://example.com/manifest', canvas_id='1337')
Although this script does work by generating a bunch of sed commands, so it might be better to take the idea and just reimplement it using the etree walker that we currently have for parsing ALTO
Turns out I already did this so +1 for this part of the idea!
Currently, we generate the URLs for the IIIF Search API
on
property by assuming that manifests use a uniform way to reference canvases inside them: https://github.com/mbennett-uoe/whiiif/blob/a6e3bd8d7cecc8179678944fe8097ac759b18c3a/whiiif/views.py#L122However, this format is not required by the IIIF Presentation spec, so we should try and support other formats.