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.
When I am on the "show" page for a collection
And I view the HTML source
I should see OpenGraph tags to facilitate sharing the collection on social media
We are already doing this for the item show view via CatalogHelperBehavior#insert_opengraph_markup, which adds the app/views/catalog/_opengraph.html.erb partial to the page layout.
It should be fairly trivial to change the logic of the method to also work for the Collections#show view, but we may need more sophisticated logic to make sure the values for URL, title, description, and image are correct for collections as well as items.
When I am on the "show" page for a collection And I view the HTML source I should see OpenGraph tags to facilitate sharing the collection on social media
We are already doing this for the item show view via
CatalogHelperBehavior#insert_opengraph_markup
, which adds theapp/views/catalog/_opengraph.html.erb
partial to the page layout.It should be fairly trivial to change the logic of the method to also work for the Collections#show view, but we may need more sophisticated logic to make sure the values for URL, title, description, and image are correct for collections as well as items.