Sha256: 7d22668ceaf633e7d96f683e683987b5e38dddfd7454c917a327c684dd4c5f7f

Contents?: true

Size: 951 Bytes

Versions: 5

Compression:

Stored size: 951 Bytes

Contents

<%# facebook opengraph meta tags %>

<meta property="og:url" content="<%= solr_document_url(document) %>" />
<meta property="og:title" content="<%= document[blacklight_config.index.title_field.to_sym].presence %>" />
<% if document[:abstract_tsim] %>
    <meta property="og:description" content="<%= truncate(document[:abstract_tsim].first,
                                                          :length => 300,
                                                          :separator => ' ',
                                                          :omission => '... ') %>" />
<% end %>
<% if has_image_files?(@object_files) %>
    <meta property="og:image" content="<%= datastream_disseminator_url(@object_files[:images][0]['id'],
                                                                       'access800') %>" />
<% elsif document[:exemplary_image_ssi] %>
    <meta property="og:image" content="<%= thumbnail_url(document) %>" />
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 app/views/catalog/_opengraph.html.erb
commonwealth-vlr-engine-0.0.4 app/views/catalog/_opengraph.html.erb
commonwealth-vlr-engine-0.0.3 app/views/catalog/_opengraph.html.erb
commonwealth-vlr-engine-0.0.2 app/views/catalog/_opengraph.html.erb
commonwealth-vlr-engine-0.0.1 app/views/catalog/_opengraph.html.erb