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.
Currently it is possible to use any ARK id as an identifier in the show view for any object type (Institution, Collection, DigitalObject, FileSet). The app will attempt to render the view, which can result in ugly layouts.
For example, in Staging, bpl-dev:4q77fr32b is an Institution, but these URLs work fine:
Currently it is possible to use any ARK id as an identifier in the show view for any object type (Institution, Collection, DigitalObject, FileSet). The app will attempt to render the view, which can result in ugly layouts.
For example, in Staging,
bpl-dev:4q77fr32b
is an Institution, but these URLs work fine:We should validate object types in the #show action for each controller, and return 404 if the object is not the expected type.