Skip to content

Add ImageServer.version

https://redmine.teklia.com/issues/10642

Requires #1950 (closed)

  • A new version field must be added on ImageServer to support a IIIF version. It must be a PositiveSmallIntegerField with 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 version to make it clearer that this is the IIIF Image API version, and not a version number like in WorkerVersion.version.

  • The ImageServerSerializer must be updated to include this field, so that it can be used by API consumers to build image URLs themselves.

  • ImageServerManager.create_from_image_information must be updated to pass the ImageInformation.version to the ImageServer when creating it.

  • ImageServer.split must be updated to create the new split server with the same version as the current one.

  • ImageServer.merge_into must 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.iiif and ImageServer.check_options do not need to be updated yet. Support for creating, updating or checking images and image servers from IIIF 3 is a separate task.