CDRH / datura

Datura is a ruby gem that manages data (TEI-XML, CSVs, VRA-XML, etc) and populates Solr / Elasticsearch instances. Datura also generates HTML for the formats to allow serving the contents via web
6 stars 5 forks source link

image_thumb_loc, image_full_loc #80

Open jduss4 opened 7 years ago

jduss4 commented 7 years ago

In future, discuss adding list or lists of all the images affiliated with a given document. This way, users of the API will have a convenient way to access all of the images at once.

A complication of this is whether to include all images including pb / figures and not just document page scans, etc.

jduss4 commented 4 years ago

I can't find the other issue where this has been written about, but ideally I think we will want to use something like:

images: [
  {
    identifier: "nei.0001.jpg",
    protocol: {
      context: "http://iiif.io/api/presentation/2/context.json",
      location: "mediaserver.unl.edu/neihardt/images"
    }
  }
]

(just an example above, not an actual proposal)

Then we would have a full list of the images and we would be able to use iiif protocol to return thumbs or full images or whatever we wanted much more easily. If we think that it will be common that the first image is NOT the preview image (I could see that happening for things like letters where we don't want the envelope, we want the first letter page) then we may want a separate key image_preview or something which follows a similar format to tag the preview image.

techgique commented 4 years ago

Could we use that proposed key image_preview optionally? If it's populated use it, otherwise default to the first image?

jduss4 commented 4 years ago

Yeah, that makes sense to me to do!