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
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.
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.