Add ImageServer.version
https://redmine.teklia.com/issues/10642
Requires #1950 (closed)
-
A new
versionfield must be added onImageServerto support a IIIF version. It must be aPositiveSmallIntegerFieldwith a minimum of 2, a maximum of 3, and a default of 2. -
The field should be available in the Django admin, and should be named
IIIF versionto make it clearer that this is the IIIF Image API version, and not a version number like inWorkerVersion.version. -
The
ImageServerSerializermust be updated to include this field, so that it can be used by API consumers to build image URLs themselves. -
ImageServerManager.create_from_image_informationmust be updated to pass theImageInformation.versionto theImageServerwhen creating it. -
ImageServer.splitmust be updated to create the new split server with the same version as the current one. -
ImageServer.merge_intomust be updated to require that the two servers to merge have the same version. When they don't, the resulting error should appear cleanly as an error notification when merging servers through the Django admin, like the other error conditions. -
arkindex.images.iiifandImageServer.check_optionsdo not need to be updated yet. Support for creating, updating or checking images and image servers from IIIF 3 is a separate task.