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

DownloadsHelperBehavior: include license_allows_download in logic for all file types #144

Open ebenenglish opened 3 weeks ago

ebenenglish commented 3 weeks ago

Currently the logic in DownloadsHelperBehavior for whether to display download links only takes into account the rights/license info for image and video files.

See: https://github.com/boston-library/commonwealth-vlr-engine/blob/master/app/helpers/commonwealth_vlr_engine/downloads_helper_behavior.rb#L42-L49

We should include the license_allows_download? logic for all download file types.