Add AltMetrics to profile page
This commit is contained in:
parent
d64c00f454
commit
ad2fad2cc4
4 changed files with 64 additions and 2 deletions
|
@ -19,6 +19,10 @@
|
|||
?volume
|
||||
?startPage
|
||||
?endPage
|
||||
?doi
|
||||
?pmid
|
||||
?isbn10
|
||||
?isbn13
|
||||
?publisher
|
||||
?locale
|
||||
?appearsIn
|
||||
|
@ -36,6 +40,10 @@
|
|||
OPTIONAL { ?infoResource bibo:volume ?volume }
|
||||
OPTIONAL { ?infoResource bibo:pageStart ?startPage }
|
||||
OPTIONAL { ?infoResource bibo:pageEnd ?endPage }
|
||||
OPTIONAL { ?infoResource bibo:doi ?doi }
|
||||
OPTIONAL { ?infoResource bibo:pmid ?doi }
|
||||
OPTIONAL { ?infoResource bibo:isbn10 ?isbn10 }
|
||||
OPTIONAL { ?infoResource bibo:isbn13 ?isbn13 }
|
||||
OPTIONAL { ?infoResource core:placeOfPublication ?locale }
|
||||
OPTIONAL
|
||||
{
|
||||
|
@ -91,6 +99,10 @@
|
|||
?infoResource bibo:volume ?volume .
|
||||
?infoResource bibo:pageStart ?startPage .
|
||||
?infoResource bibo:pageEnd ?endPage .
|
||||
?infoResource bibo:doi ?doi .
|
||||
?infoResource bibo:pmid ?pmid .
|
||||
?infoResource bibo:isbn10 ?isbn10 .
|
||||
?infoResource bibo:isbn13 ?isbn13 .
|
||||
?infoResource core:placeOfPublication ?locale .
|
||||
?infoResource bibo:reproducedIn ?appearsInObj .
|
||||
?appearsInObj rdfs:label ?appearsIn .
|
||||
|
@ -173,6 +185,38 @@
|
|||
?infoResource bibo:pageEnd ?endPage .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?subject ?property ?authorship .
|
||||
?authorship a core:Authorship .
|
||||
?authorship core:relates ?infoResource .
|
||||
?infoResource a <http://purl.obolibrary.org/obo/IAO_0000030> .
|
||||
?infoResource bibo:doi ?doi .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?subject ?property ?authorship .
|
||||
?authorship a core:Authorship .
|
||||
?authorship core:relates ?infoResource .
|
||||
?infoResource a <http://purl.obolibrary.org/obo/IAO_0000030> .
|
||||
?infoResource bibo:pmid ?pmid .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?subject ?property ?authorship .
|
||||
?authorship a core:Authorship .
|
||||
?authorship core:relates ?infoResource .
|
||||
?infoResource a <http://purl.obolibrary.org/obo/IAO_0000030> .
|
||||
?infoResource bibo:isbn10 ?isbn10 .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?subject ?property ?authorship .
|
||||
?authorship a core:Authorship .
|
||||
?authorship core:relates ?infoResource .
|
||||
?infoResource a <http://purl.obolibrary.org/obo/IAO_0000030> .
|
||||
?infoResource bibo:isbn13 ?isbn13 .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?subject ?property ?authorship .
|
||||
?authorship a core:Authorship .
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
<#include "individual-setup.ftl">
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"></script>')}
|
||||
|
||||
<#--
|
||||
First, check to see if profile page types are enabled. If not, get the 2 column template:
|
||||
"individual--foaf-person-2column.ftl".
|
||||
|
|
|
@ -111,6 +111,20 @@
|
|||
</#if>
|
||||
</#local>
|
||||
|
||||
${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" />
|
||||
<#local altMetric>
|
||||
<#if altmetricEnabled??>
|
||||
<#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>
|
||||
<#elseif statement.pimd??>
|
||||
<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??>
|
||||
<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>
|
||||
<#elseif statement.isbn13??>
|
||||
<div data-badge-popover="right" data-badge-type="4" data-isbn="${statement.isbn13}" data-hide-no-mentions="true" class="altmetric-embed" style="display: inline;"></div>
|
||||
</#if>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" /> ${altMetric}
|
||||
</#if>
|
||||
</#macro>
|
||||
|
|
|
@ -174,4 +174,6 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/js/individual/in
|
|||
'<script type="text/javascript" src="${urls.base}/js/individual/individualUriRdf.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/individual/moreLessController.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
|
||||
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>',
|
||||
'<script type="text/javascript" src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"></script>')}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue