343 lines
19 KiB
HTML
343 lines
19 KiB
HTML
<div id="tm-main" class=" uk-section uk-padding-remove-top uk-margin-small-top tm-middle">
|
|
|
|
<div uk-grid>
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
|
<div class="uk-container dataset">
|
|
<div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning uk-margin-large-top"
|
|
role="alert">{{warningMessage}}</div>
|
|
<div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger uk-margin-large-top"
|
|
role="alert">{{errorMessage}}</div>
|
|
<div [style.display]="showLoading ? 'inline' : 'none'"
|
|
class="uk-animation-fade uk-margin-large-top uk-width-1-1" role="alert"><span
|
|
class="loading-gif uk-align-center"></span></div>
|
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
|
[texts]="pageContents['top']"></helper>
|
|
<div *ngIf="datasetInfo != null" class="uk-grid">
|
|
|
|
|
|
<div class="uk-width-2-3@m uk-width-1-1@s uk-margin-bottom">
|
|
<schema2jsonld *ngIf="datasetInfo.record" [data]=datasetInfo.record
|
|
[URL]="properties.baseLink+'/search/dataset?datasetId='+datasetId"></schema2jsonld>
|
|
<showTitle [titleName]="datasetInfo.title"></showTitle>
|
|
<p class="uk-text-large" *ngIf="datasetInfo.subtitle">
|
|
<span [innerHTML]="datasetInfo.subtitle"></span>
|
|
</p>
|
|
<span *ngIf="datasetInfo.types && datasetInfo.types.length > 0" class="uk-label custom-label label-dataset "
|
|
title="Type">{{datasetInfo.types.join(", ")}}</span>{{" "}}
|
|
<span *ngIf="datasetInfo.languages && datasetInfo.languages.length > 0"
|
|
class="uk-label custom-label label-language "
|
|
title="Language">{{datasetInfo.languages.join(", ")}}</span>{{" "}}
|
|
<span *ngIf="datasetInfo.countries && datasetInfo.countries.length > 0"
|
|
class="uk-label custom-label label-country "
|
|
title="Country">{{datasetInfo.countries.join(", ")}}</span>{{" "}}
|
|
|
|
<!-- <span *ngIf="datasetInfo.title && datasetInfo.title.accessMode" [class]="'uk-label custom-label label-'+ datasetInfo.title.accessMode " title="Access Mode">{{datasetInfo.title.accessMode}}</span> -->
|
|
<span *ngIf="datasetInfo.accessMode" [class]="'uk-label custom-label label-'+ datasetInfo.accessMode "
|
|
title="Access Mode">{{datasetInfo.accessMode}}</span>{{" "}}
|
|
<span *ngIf="datasetInfo.underCurationMessage" class="uk-label custom-label label-underCuration ">{{" "}}
|
|
<span uk-tooltip="pos:right; delay:10"
|
|
title="{{buildCurationTooltip()}}">
|
|
<i>Record in preview</i>
|
|
<i class="uk-icon-info-circle"></i>
|
|
</span></span>
|
|
<!--div *ngIf="datasetInfo.underCurationMessage">
|
|
<span uk-tooltip="pos:right; delay:10"
|
|
title="{{buildCurationTooltip()}}">
|
|
<i>Record in preview</i>
|
|
<i class="uk-icon-info-circle"></i>
|
|
</span>
|
|
</div-->
|
|
|
|
<div class=" uk-margin-top">
|
|
<showAuthors [authors]="datasetInfo.authors"></showAuthors>
|
|
<span *ngIf="datasetInfo.date != ''">({{datasetInfo.date}})</span>
|
|
</div>
|
|
|
|
<ul class="uk-list">
|
|
<showPublisher [publisher]="datasetInfo.publisher"
|
|
[journal]="datasetInfo.journal" [properties]="properties"></showPublisher>
|
|
<li *ngIf="datasetInfo.embargoEndDate"><span
|
|
class="uk-text-bold">Embargo end date:</span> {{datasetInfo.embargoEndDate}}</li>
|
|
<li *ngIf="datasetInfo.identifiers && datasetInfo.identifiers.size > 0">
|
|
<showIdentifiers [identifiers]="datasetInfo.identifiers"></showIdentifiers>
|
|
</li>
|
|
<li *ngIf="datasetInfo.subjects ||datasetInfo.otherSubjects || datasetInfo.classifiedSubjects">
|
|
<showSubjects [subjects]="datasetInfo.subjects"
|
|
[otherSubjects]="datasetInfo.otherSubjects"
|
|
[classifiedSubjects]="datasetInfo.classifiedSubjects">
|
|
</showSubjects>
|
|
</li>
|
|
</ul>
|
|
<hr *ngIf="datasetInfo.description">
|
|
<div *ngIf="datasetInfo.description"
|
|
class="uk-text-justify descriptionText uk-height-max-medium uk-overflow-auto">
|
|
<span>{{datasetInfo.description.substring(0, showNumDescription)}}</span
|
|
><span
|
|
*ngIf="showNumDescription == thresholdDescription && datasetInfo.description.length > thresholdDescription">...</span
|
|
><span
|
|
*ngIf="showNumDescription == thresholdDescription && datasetInfo.description.length > thresholdDescription"
|
|
class="uk-text-right">
|
|
<a (click)="showNumDescription = datasetInfo.description.length;">
|
|
View more
|
|
</a>
|
|
</span>
|
|
</div>
|
|
<div *ngIf="datasetInfo.description && showNumDescription > thresholdDescription"
|
|
class="uk-width-1-1 uk-text-right">
|
|
<a (click)="showNumDescription = thresholdDescription;">
|
|
View less
|
|
</a>
|
|
</div>
|
|
|
|
<ul class="custom-accordion" uk-accordion>
|
|
<li *ngIf="datasetInfo.references" (click)="activeTab='References'">
|
|
<a class="uk-accordion-title" href="#">
|
|
References ({{datasetInfo.references.length | number}})
|
|
</a>
|
|
<div class="uk-accordion-content">
|
|
<div>
|
|
<div *ngIf="datasetInfo.references.length > pageSize" class="uk-margin-bottom">
|
|
<span class="uk-h6">{{datasetInfo.references.length | number}}
|
|
references, page {{referencesPage | number}}
|
|
of {{totalPages(datasetInfo.references.length) | number}}</span>
|
|
<paging-no-load class="uk-float-right" [currentPage]="referencesPage"
|
|
[totalResults]="datasetInfo.references.length" [size]="pageSize"
|
|
(pageChange)="updateReferencesPage($event)"></paging-no-load>
|
|
</div>
|
|
|
|
<div
|
|
*ngFor="let item of datasetInfo.references.slice((referencesPage-1)*pageSize, referencesPage*pageSize)">
|
|
<p *ngIf=" item && item['url']"
|
|
class="custom-external custom-icon">
|
|
<a href="{{item['url']}}" target="_blank">
|
|
{{item['name']}}
|
|
</a>
|
|
</p>
|
|
<p *ngIf="!item['url']" class="pseudo-external custom-icon">
|
|
{{item['name']}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
<li *ngIf="datasetInfo.relatedResearchResults" (click)="activeTab='Related Research Results'">
|
|
<a class="uk-accordion-title" href="#">
|
|
Related Research Results
|
|
<!-- <span *ngIf="!datasetInfo.relatedResearchResults" class="uk-badge uk-badge-notification">0</span>
|
|
<span *ngIf="datasetInfo.relatedResearchResults" class="uk-badge uk-badge-notification">
|
|
{{relatedResearchResultsNum | number}}
|
|
</span> -->
|
|
<!-- <span class="uk-badge uk-badge-notification"> -->
|
|
({{relatedResearchResultsNum | number}})
|
|
<!-- </span> -->
|
|
</a>
|
|
<div class="uk-accordion-content">
|
|
<!-- <div *ngIf="!datasetInfo.relatedResearchResults" class = "uk-alert uk-alert-primary">
|
|
No related research results available
|
|
</div>
|
|
<div *ngIf="datasetInfo.relatedResearchResults"> -->
|
|
<div>
|
|
<div *ngFor="let provenanceaction of getKeys(datasetInfo.relatedResearchResults)">
|
|
<div class="uk-text-large">{{provenanceaction}}</div>
|
|
|
|
<tabTable percentageName="trust"
|
|
[info]="datasetInfo.relatedResearchResults.get(provenanceaction)"
|
|
[properties]=properties></tabTable>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
<li *ngIf="datasetInfo.similarResearchResults" (click)="activeTab='Similar Research Results'">
|
|
<a class="uk-accordion-title" href="#">
|
|
Similar Research Results
|
|
<!-- <span *ngIf="!datasetInfo.similarResearchResults" class="uk-badge uk-badge-notification">0</span>
|
|
<span *ngIf="datasetInfo.similarResearchResults" class="uk-badge uk-badge-notification">
|
|
{{datasetInfo.similarResearchResults.length | number}}
|
|
</span> -->
|
|
<!-- <span class="uk-badge uk-badge-notification"> -->
|
|
({{datasetInfo.similarResearchResults.length | number}})
|
|
<!-- </span> -->
|
|
</a>
|
|
<div class="uk-accordion-content">
|
|
<!-- <div *ngIf="!datasetInfo.similarResearchResults" class = "uk-alert uk-alert-primary" >
|
|
No similar research results available
|
|
</div>
|
|
|
|
<div *ngIf="datasetInfo.similarResearchResults"> -->
|
|
<div>
|
|
<tabTable percentageName="similarity" [info]="datasetInfo.similarResearchResults"
|
|
[properties]=properties></tabTable>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
<li (click)="metricsClicked=true; activeTab='Metrics'">
|
|
<a class="uk-accordion-title" href="#">
|
|
Metrics
|
|
</a>
|
|
<div class="uk-accordion-content">
|
|
<metrics [pageViews]="pageViews"
|
|
[id]="datasetId" [entityType]="'results'" [entity]="'Research Data'"
|
|
(metricsResults)="metricsResults($event)" [properties]=properties>
|
|
</metrics>
|
|
<i-frame *ngIf="metricsClicked && totalViews > 0"
|
|
[url]=viewsFrameUrl width="100%" height="250">
|
|
</i-frame>
|
|
<i-frame *ngIf="metricsClicked && totalDownloads > 0"
|
|
[url]=downloadsFrameUrl width="100%" height="250">
|
|
</i-frame>
|
|
</div>
|
|
</li>
|
|
|
|
<li (click)="activeTab='Other Versions'"
|
|
*ngIf="properties.environment != 'production' && datasetInfo.deletedByInferenceIds">
|
|
<a class="uk-accordion-title" href="#">
|
|
Other Versions
|
|
({{datasetInfo.deletedByInferenceIds.length | number}})
|
|
</a>
|
|
<div *ngIf="activeTab=='Other Versions'" class="uk-accordion-content">
|
|
<deletedByInference [id]="datasetId" [ids]="datasetInfo.deletedByInferenceIds"
|
|
[type]="'research data'"></deletedByInference>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-3@m uk-width-1-1@s">
|
|
<div class=" uk-padding-small" *ngIf="isRouteAvailable('participate/direct-claim') ">
|
|
<button class=" uk-button portal-button uk-width-1-1 ">
|
|
<span class="uk-icon">
|
|
<svg icon="link" ratio="1" xmlns="http://www.w3.org/2000/svg" width="25" viewBox="0 0 20 20"
|
|
height="25"><path
|
|
d="M10.625,12.375 L7.525,15.475 C6.825,16.175 5.925,16.175 5.225,15.475 L4.525,14.775 C3.825,14.074 3.825,13.175 4.525,12.475 L7.625,9.375"
|
|
fill="none" stroke="#000" stroke-width="1.1"></path><path
|
|
d="M9.325,7.375 L12.425,4.275 C13.125,3.575 14.025,3.575 14.724,4.275 L15.425,4.975 C16.125,5.675 16.125,6.575 15.425,7.275 L12.325,10.375"
|
|
fill="none" stroke="#000" stroke-width="1.1"></path><path d="M7.925,11.875 L11.925,7.975"
|
|
fill="none" stroke="#000"
|
|
stroke-width="1.1"></path></svg>
|
|
</span> Link this dataset to...
|
|
</button>
|
|
<div class=" uk-text-center uk-margin-expand uk-padding-small uk-margin-auto default-dropdown "
|
|
uk-dropdown="mode:click">
|
|
<div class="uk-grid uk-child-width-1-3 uk-width-large ">
|
|
<div><a
|
|
[queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[datasetId,'dataset','project'])"
|
|
routerLinkActive="router-link-active" routerLink="/participate/direct-claim"
|
|
>
|
|
<button class="uk-icon-button portal-button">
|
|
<span class="uk-icon">
|
|
<svg height="20" icon="album" ratio="1" viewBox="0 0 20 20" width="20"
|
|
xmlns="http://www.w3.org/2000/svg"><rect height="1" width="10" x="5" y="2"></rect><rect
|
|
height="1" width="14" x="3" y="4"></rect><rect fill="none" height="11" stroke="#000"
|
|
width="17" x="1.5" y="6.5"></rect></svg></span>
|
|
</button>
|
|
<div>Projects</div>
|
|
</a></div>
|
|
<div><a
|
|
[queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[datasetId,'dataset','result'])"
|
|
routerLinkActive="router-link-active" routerLink="/participate/direct-claim">
|
|
<button class="uk-icon-button portal-button">
|
|
<span class="uk-icon">
|
|
<svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
|
|
xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
|
|
width="12" x="3.5" y="2.5"></rect><polyline
|
|
fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>
|
|
</button>
|
|
<div>Research results</div>
|
|
</a></div>
|
|
<div><a
|
|
[queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[datasetId,'dataset','context'])"
|
|
routerLinkActive="router-link-active" routerLink="/participate/direct-claim">
|
|
<button class="uk-icon-button portal-button">
|
|
<span class="uk-icon">
|
|
<svg height="20" icon="users" ratio="1" viewBox="0 0 20 20" width="20"
|
|
xmlns="http://www.w3.org/2000/svg"><circle cx="7.7" cy="8.6" fill="none" r="3.5"
|
|
stroke="#000" stroke-width="1.1"></circle><path
|
|
d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3" fill="none"
|
|
stroke="#000" stroke-width="1.1"></path><path
|
|
d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"
|
|
fill="none" stroke="#000" stroke-width="1.1"></path></svg></span>
|
|
</button>
|
|
<div>Communities</div>
|
|
</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share - Bookmark</div>
|
|
<addThis></addThis>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<altmetrics *ngIf="datasetInfo.identifiers && datasetInfo.identifiers.get('doi')"
|
|
id="{{datasetInfo.identifiers.get('doi')[0]}}" type="doi">
|
|
</altmetrics>
|
|
<ul class="uk-list uk-margin-remove-bottom ">
|
|
|
|
<li *ngIf="datasetInfo.hostedBy_collectedFrom && datasetInfo.hostedBy_collectedFrom.length > 0">
|
|
<availableOn [availableOn]="datasetInfo.hostedBy_collectedFrom"></availableOn>
|
|
</li>
|
|
<li *ngIf="datasetInfo.fundedByProjects != undefined && datasetInfo.fundedByProjects.length > 0">
|
|
<fundedBy [fundedByProjects]="datasetInfo.fundedByProjects"></fundedBy>
|
|
</li>
|
|
|
|
<li *ngIf="datasetInfo.contexts && datasetInfo.contexts.length >0 ">
|
|
<dl class="uk-description-list-line">
|
|
<dt class="sideInfoTitle">Related to</dt>
|
|
<dd class="line" *ngFor="let item of datasetInfo.contexts">
|
|
<span *ngIf="!item['inline']">
|
|
<span>{{item['labelContext']}}</span>
|
|
<span *ngIf="item['labelCategory']">-> {{item['labelCategory']}}</span>
|
|
<span *ngIf="item['labelConcept']">: {{item['labelConcept']}}</span>
|
|
</span>
|
|
<mark *ngIf="item['inline']">
|
|
<span>{{item['labelContext']}}</span>
|
|
<span *ngIf="item['labelCategory']">-> {{item['labelCategory']}}</span>
|
|
<span *ngIf="item['labelConcept']">: {{item['labelConcept']}}</span>
|
|
</mark>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</li>
|
|
|
|
<!--li>
|
|
<metrics [pageViews]="pageViews" shortView=true
|
|
[id]="datasetId" [entityType]="'results'" [entity]="'Research Data'"
|
|
(metricsResults)="metricsResults($event)" [(properties)] = properties>
|
|
</metrics>
|
|
</li-->
|
|
|
|
<li>
|
|
|
|
<div class="sideInfoTitle cite-this-button uk-width-1-1" type="button">
|
|
Cite this research data
|
|
</div>
|
|
<div class=" ">
|
|
<citeThis [result]="datasetInfo" [id]="datasetId" type="research data"></citeThis>
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
|
[texts]="pageContents['bottom']" styleName="uk-width-1-1"></helper>
|
|
</div>
|
|
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
|
[texts]="pageContents['bottom']"></helper>
|
|
</div>
|