How to integrate Altmetrics in Dspace 6.3 (xmlui)
Locate the file altmetrics.cfg in ur Dspace directory
dspace-6.3-release/dspace/config/modules/altmetrics.cfg
Edit the following
The default file will be like this same as in the image:
Remove the # sign from line no. 8
i.e.
# altmetrics.field = dc.identifier.uri
to
altmetrics.field = dc.identifier.uri
Remove the # sign from line no. 16 and change the value from (false = true)
# Is the Altmetric.com badge enabled?
# altmetric.enabled = false
to
# altmetric.enabled = false
Next locate the item-view.xsl and edit it
It is located in /opt/tomcat/webapps/xmlui/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl
Copy and paste these lines below wherever you want to appear
<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script>
<div data-badge-details="right" data-badge-type="donut" data-doi="" data-hide-no-mentions="true" class="altmetric-embed"></div>
Or see more here