sul-dlss / vatican_exhibits

Vatican installation of Spotlight
https://spotlight.vatlib.it
Other
0 stars 1 forks source link

Use manifest thumbnail image as exhibit manuscript thumbnail #347

Closed ggeisler closed 5 years ago

ggeisler commented 5 years ago

If I understand things correctly (might not be a safe assumption), it appears that we are not using the thumbnail image as specified in the manifest as the associated manuscript thumbnail (as shown in the search result item for the manuscript, for example).

Unless there is good reason we can't do it, we definitely do want to use the thumbnail image specified in each manifest because BAV has picked a specific page to represent each manuscript and these will look better than the current manuscript thumbnails, which are the just the first page of the manuscript, usually a rather nondescript cover.

Here's my understanding of the current situation:

BAV has updated manifests to indicate a specific thumbnail image to represent each manuscript. For example, for the manuscript "Barb.lat.4424" the relevant portion of the manifest (https://digi.vatlib.it/iiif/MSS_Barb.lat.4424/manifest.json) includes this from the start of the manifest:

{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://digi.vatlib.it/iiif/MSS_Barb.lat.4424/manifest.json",
"@type": "sc:Manifest",
"metadata": [
{
"label": "Shelfmark",
"value": "Barb.lat.4424"
}
],
"label": "Barb.lat.4424",
"description": "",
"thumbnail": {
"@id": "https://digi.vatlib.it/pub/digit/MSS_Barb.lat.4424/cover/cover.jpg",
"@type": "dctypes:Image",
"format": "image/jpeg"
},
"viewingDirection": "left-to-right",
"viewingHint": "paged",
"attribution": "Images Copyright Biblioteca Apostolica Vaticana",
"logo": "https://digi.vatlib.it/resource/img/i/DVL_logo.jpg",
"sequences": [

About halfway down is the thumbnail reference, which points to https://digi.vatlib.it/pub/digit/MSS_Barb.lat.4424/cover/cover.jpg:

cover-1

I created a new exhibit yesterday (so it should be indexing the manifests with updated thumbnail references) and added the "Barb.lat.4424" manuscript.

But when that manuscript is shown in search results (http://vatican-dev.sul.stanford.edu/thumbnail-testing/catalog?f%5Bcollection_ssim%5D%5B%5D=Barb.lat.&f%5Bresource_type_ssim%5D%5B%5D=Manuscript), it doesn't use the thumbnail image above. Instead, it uses the first page of the manuscript:

collection__barb_lat____resource_type__manuscript_-_thumbnail_testing_-_thematic_pathways_of_medieval_manuscripts_search_results

So it seems like we are not using the "thumbnail" value from the manifest when generating the thumbnail image for a manuscript in the exhibit.