Skip to content

Instantly share code, notes, and snippets.

var altmetricURL = 'https://api.altmetric.com/v1/doi/' + ArticleData.doi;
var dimensionsURL = 'https://metrics-api.dimensions.ai/doi/' + ArticleData.doi;
var counterURL = 'https://counter.plos.org/api/v1.0/stats/totals/doi/' + ArticleData.doi;
var URLs = [altmetricURL, dimensionsURL, counterURL];
var isMetricsView = location.pathname.indexOf('metrics') > 0
if (isMetricsView) {
var citedSection = new MetricsCitedSection();
var discussedSection = new MetricsDiscussedSection();
var savedSection = new MetricsSavedSection();