
CreateProjectFromManifest
edu.slu.tpen.servlet.ClassicProjectFromManifest
/**
* Make a project from a user provided Manifest URI.
* The Manifest must be IIIF Presentation API 2.1.
*/
public Integer createProject(HttpServletRequest request, HttpServletResponse response) throws IOException
//TODO: @context validation too?
if(!theManifest.has("@type") || !theManifest.getString("@type").equals("sc:Manifest")){
response.sendError(SC_BAD_REQUEST, "The object provided is not a IIIF Presentation API 2.1 Manifest.");
return -1;
}
We need to add support for Presi 3 and potentially clean up detection here to allow for some messier Manifests. With TPEN28, the original Manifest is discarded, so it is okay if it isn't perfect, so long as we can figure out what images go in what order and if there are text or bounding annotations on it.
CreateProjectFromManifest
edu.slu.tpen.servlet.ClassicProjectFromManifest
We need to add support for Presi 3 and potentially clean up detection here to allow for some messier Manifests. With TPEN28, the original Manifest is discarded, so it is okay if it isn't perfect, so long as we can figure out what images go in what order and if there are text or bounding annotations on it.