Skip to content

Commit

Permalink
PERSPEC-66 activate citation styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Oct 4, 2023
1 parent 7e2889d commit 245ea9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mir-module/src/main/resources/xsl/metadata/mir-citation.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<xsl:param name="MIR.citationStyles" select="''" />
<xsl:param name="MIR.defaultCitationStyle" select="''" />
<xsl:param name="MIR.altmetrics" select="'show'" />
<xsl:param name="MIR.altmetrics.badge" select="'true'" />
<xsl:param name="MIR.altmetrics.hide" select="'true'" />
<xsl:param name="MIR.plumx" select="'hide'" />
<xsl:param name="MIR.plumx.hide" select="'true'" />
Expand Down Expand Up @@ -76,6 +77,12 @@
<xsl:if test="$MIR.altmetrics = 'show'">
<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script>
<xsl:choose>
<xsl:when test="$MIR.altmetrics.badge = 'false'">
<!-- use altmeltrics badge -->
<div class="col-6">
<div data-badge-details="right" data-badge-type="donut" data-doi="{//mods:mods/mods:identifier[@type='doi']}" data-hide-no-mentions="{$MIR.altmetrics.hide}" class="altmetric-embed"></div>
</div>
</xsl:when>
<xsl:when test="$MIR.plumx = 'show'">
<!-- use altmeltrics badge -->
<div class="col-6">
Expand Down

0 comments on commit 245ea9d

Please sign in to comment.