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

add opengraph tags to collections#show view #124

Closed ebenenglish closed 6 months ago

ebenenglish commented 11 months ago

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.

ebenenglish commented 6 months ago

Fixed via #136