boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

modify CollectionsHelperBehavior#collection_image_url for newspaper collections #78

Closed ebenenglish closed 1 year ago

ebenenglish commented 1 year ago

The goal of #collection_image_url is to produce an image that displays a "middle" slice of the full image 1100 pixels wide, and 450 pixels tall.

For newspaper collections we should try and use a slice from the top of the image, so the eye-catching masthead is displayed rather than a boring text-only image.

Use the destination_site_ssim field to determine if the collection is a newspaper.

ebenenglish commented 1 year ago

Fixed via 677fed6f37a3315ff54f2c20aab1a6a7aba46703