Fix Altmetric badge display for publications with only PMID (#49)

This commit is contained in:
Steve McKay 2017-02-03 05:09:11 -06:00 committed by grahamtriggs
parent f63ce1cbd0
commit 72b2538019
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@
OPTIONAL { ?infoResource bibo:pageStart ?startPage } OPTIONAL { ?infoResource bibo:pageStart ?startPage }
OPTIONAL { ?infoResource bibo:pageEnd ?endPage } OPTIONAL { ?infoResource bibo:pageEnd ?endPage }
OPTIONAL { ?infoResource bibo:doi ?doi } OPTIONAL { ?infoResource bibo:doi ?doi }
OPTIONAL { ?infoResource bibo:pmid ?doi } OPTIONAL { ?infoResource bibo:pmid ?pmid }
OPTIONAL { ?infoResource bibo:isbn10 ?isbn10 } OPTIONAL { ?infoResource bibo:isbn10 ?isbn10 }
OPTIONAL { ?infoResource bibo:isbn13 ?isbn13 } OPTIONAL { ?infoResource bibo:isbn13 ?isbn13 }
OPTIONAL { ?infoResource core:placeOfPublication ?locale } OPTIONAL { ?infoResource core:placeOfPublication ?locale }

View file

@ -115,7 +115,7 @@
<#if altmetricEnabled??> <#if altmetricEnabled??>
<#if statement.doi??> <#if statement.doi??>
<div data-badge-popover="right" data-badge-type="4" data-doi="${statement.doi}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div> <div data-badge-popover="right" data-badge-type="4" data-doi="${statement.doi}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div>
<#elseif statement.pimd??> <#elseif statement.pmid??>
<div data-badge-popover="right" data-badge-type="4" data-pmid="${statement.pmid}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div> <div data-badge-popover="right" data-badge-type="4" data-pmid="${statement.pmid}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div>
<#elseif statement.isbn10??> <#elseif statement.isbn10??>
<div data-badge-popover="right" data-badge-type="4" data-isbn="${statement.isbn10}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div> <div data-badge-popover="right" data-badge-type="4" data-isbn="${statement.isbn10}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div>