Sha256: e4e94ca940ea2cc4b1279bd8e7a33009b83fbb1db6006093fe7603f32665546f

Contents?: true

Size: 1.65 KB

Versions: 13

Compression:

Stored size: 1.65 KB

Contents

<% content_for(:twitter_meta) do %>
  <meta name="twitter:card" content="product">
  <meta name="twitter:site" content="<%= t('hyrax.product_twitter_handle') %>"/>
  <meta name="twitter:creator" content="<%= @presenter.tweeter %>"/>
  <meta property="og:site_name" content="<%= application_name %>"/>
  <meta property="og:type" content="object"/>
  <meta property="og:title" content="<%= @presenter.title.first %>"/>
  <meta property="og:description" content="<%= @presenter.description.first.truncate(200) rescue @presenter.title.first %>"/>
  <meta property="og:image" content="<%= @presenter.download_url %>"/>
  <meta property="og:url" content="<%= polymorphic_url([main_app, @presenter]) %>"/>
  <meta name="twitter:data1" content="<%= @presenter.keyword.join(', ') %>"/>
  <meta name="twitter:label1" content="Keywords"/>
  <meta name="twitter:data2" content="<%= @presenter.rights_statement.first %>"/>
  <meta name="twitter:label2" content="Rights Statement"/>
<% end %>

<% content_for(:gscholar_meta) do %>
  <meta name="citation_title" content="<%= @presenter.title.first %>"/>
  <% @presenter.creator.each do |creator| %>
  <meta name="citation_author" content="<%= creator %>"/>
  <% end %>
  <meta name="citation_publication_date" content="<%= @presenter.date_created.first %>"/>
  <meta name="citation_pdf_url" content="<%= @presenter.download_url %>"/>
  <!-- Hyrax does not yet support these metadata -->
  <!--
    <meta name="citation_journal_title" content=""/>
    <meta name="citation_volume" content=""/>
    <meta name="citation_issue" content=""/>
    <meta name="citation_firstpage" content=""/>
    <meta name="citation_lastpage" content=""/>
  -->
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/views/shared/_citations.html.erb
hyrax-2.0.2 app/views/shared/_citations.html.erb
hyrax-2.1.0.beta1 app/views/shared/_citations.html.erb
hyrax-2.0.1 app/views/shared/_citations.html.erb
hyrax-2.0.0 app/views/shared/_citations.html.erb
hyrax-2.0.0.rc3 app/views/shared/_citations.html.erb
hyrax-2.0.0.rc2 app/views/shared/_citations.html.erb
hyrax-2.0.0.rc1 app/views/shared/_citations.html.erb
hyrax-2.0.0.beta5 app/views/shared/_citations.html.erb
hyrax-2.0.0.beta4 app/views/shared/_citations.html.erb
hyrax-2.0.0.beta3 app/views/shared/_citations.html.erb
hyrax-2.0.0.beta2 app/views/shared/_citations.html.erb
hyrax-2.0.0.beta1 app/views/shared/_citations.html.erb