Displays an Altmetric badge on repository object pages using a DOI stored in a node field. Drupal 11 ready
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
864 B

/**
* @file
* Loads the external Altmetric badge JavaScript.
*
* The loader removes an existing script with the same ID, creates a new
* script element (using the document namespace when supported), assigns the
* external URL, and appends it to the head or body. The original compact
* implementation and pinned URL are retained unchanged.
*/
!function(e,t){var d="createElement",c="getElementsByTagName",n="setAttribute",a=document.getElementById(e);a&&a.parentNode&&a.parentNode.removeChild(a),(a=(a=document[d+"NS"]&&document.documentElement.namespaceURI)?document[d+"NS"](a,"script"):document[d]("script"))[n]("id",e),a[n]("src",t),(document[c]("head")[0]||document[c]("body")[0]).appendChild(a)}("altmetric-embed-js","https://d1bxh8uas1mnw7.cloudfront.net/assets/altmetric_badges-e8c6816abd50a76f6c51292a940cd903f1d7767d11fcfee92c0e65948faf4a1b.js");