From 8483fb48be118ddc6e8c5815808958eb48224ba4 Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Thu, 7 Dec 2023 16:17:48 -0500 Subject: [PATCH] Move altmetrics js. closes #880 --- app/views/purl/_metrics.html.erb | 1 + app/views/purl/show.html.erb | 1 - spec/features/integration_spec.rb | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/purl/_metrics.html.erb b/app/views/purl/_metrics.html.erb index d017e4d1..5b8796a9 100644 --- a/app/views/purl/_metrics.html.erb +++ b/app/views/purl/_metrics.html.erb @@ -16,6 +16,7 @@ How are these metrics generated?

<% if document.doi.present? %> +

Altmetric tracks online attention to this work. A badge is shown only when online mentions are found.

<% end %> diff --git a/app/views/purl/show.html.erb b/app/views/purl/show.html.erb index 55b6759a..8dfdb8a7 100644 --- a/app/views/purl/show.html.erb +++ b/app/views/purl/show.html.erb @@ -17,7 +17,6 @@ <%= tag :meta, name: 'robots', content: 'noindex' unless @purl.rights.world_downloadable? %> <% if @purl.doi %> - <%= tag :meta, name: 'citation_doi', content: @purl.doi_id %> <% end %> <% if @purl.schema_dot_org? %> diff --git a/spec/features/integration_spec.rb b/spec/features/integration_spec.rb index a6de9aa7..85000092 100644 --- a/spec/features/integration_spec.rb +++ b/spec/features/integration_spec.rb @@ -175,7 +175,6 @@ expect(page).to have_selector 'meta[name="citation_publication_date"][content="2022"]', visible: :hidden expect(page).to have_selector 'meta[name="citation_author"][content="Khine, Sandi"]', visible: :hidden expect(page).to have_selector 'meta[name="citation_author"][content="Navaroli, A. Collier"]', visible: :hidden - expect(page).to have_selector 'script[src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"]', visible: :hidden end end