Add ISBN to AltMetric display
This commit is contained in:
parent
2a7f1836b5
commit
d64c00f454
1 changed files with 32 additions and 12 deletions
|
@ -20,18 +20,38 @@
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#assign pmid = propertyGroups.getProperty("http://purl.org/ontology/bibo/pmid")!>
|
<#assign pmid = propertyGroups.getProperty("http://purl.org/ontology/bibo/pmid")!>
|
||||||
<#if pmid?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
<#if pmid?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||||
<#if pmid.statements[0]??>
|
<#if pmid.statements[0]??>
|
||||||
<div class="individual-altmetric-badge">
|
<div class="individual-altmetric-badge">
|
||||||
<div class="altmetric-embed"
|
<div class="altmetric-embed"
|
||||||
style="float: ${altmetricDisplayTo}; padding-left: 15px; padding-right: 15px;"
|
style="float: ${altmetricDisplayTo}; padding-left: 15px; padding-right: 15px;"
|
||||||
data-badge-type="${altmetricBadgeType}"
|
data-badge-type="${altmetricBadgeType}"
|
||||||
<#if altmetricPopover??>data-badge-popover="${altmetricPopover}"</#if>
|
<#if altmetricPopover??>data-badge-popover="${altmetricPopover}"</#if>
|
||||||
<#if altmetricDetails??>data-badge-details="${altmetricDetails}"</#if>
|
<#if altmetricDetails??>data-badge-details="${altmetricDetails}"</#if>
|
||||||
<#if altmetricHideEmpty??>data-hide-no-mentions="true"</#if>
|
<#if altmetricHideEmpty??>data-hide-no-mentions="true"</#if>
|
||||||
data-link-target="_blank"
|
data-link-target="_blank"
|
||||||
data-pmid="${pmid.statements[0].value}"></div>
|
data-pmid="${pmid.statements[0].value}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</#if>
|
||||||
|
<#else>
|
||||||
|
<#assign isbn = propertyGroups.getProperty("http://purl.org/ontology/bibo/isbn13")!>
|
||||||
|
<#if isbn?has_content>
|
||||||
|
<#else>
|
||||||
|
<#assign isbn = propertyGroups.getProperty("http://purl.org/ontology/bibo/isbn10")!>
|
||||||
|
</#if>
|
||||||
|
<#if isbn?has_content>
|
||||||
|
<#if isbn.statements[0]??>
|
||||||
|
<div class="individual-altmetric-badge">
|
||||||
|
<div class="altmetric-embed"
|
||||||
|
style="float: ${altmetricDisplayTo}; padding-left: 15px; padding-right: 15px;"
|
||||||
|
data-badge-type="${altmetricBadgeType}"
|
||||||
|
<#if altmetricPopover??>data-badge-popover="${altmetricPopover}"</#if>
|
||||||
|
<#if altmetricDetails??>data-badge-details="${altmetricDetails}"</#if>
|
||||||
|
<#if altmetricHideEmpty??>data-hide-no-mentions="true"</#if>
|
||||||
|
data-link-target="_blank"
|
||||||
|
data-isbn="${isbn.statements[0].value}"></div>
|
||||||
|
</div>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
Loading…
Add table
Reference in a new issue