348 lines
22 KiB
HTML
348 lines
22 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 software">
|
|
|
|
<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="softwareInfo != null" class="uk-grid">
|
|
|
|
<div class="uk-width-2-3@m uk-width-1-1@s uk-margin-bottom">
|
|
<schema2jsonld *ngIf="softwareInfo.record" [data]=softwareInfo.record
|
|
[URL]="properties.baseLink+'/search/software?softwareId='+softwareId"></schema2jsonld>
|
|
<showTitle [titleName]="softwareInfo.title"></showTitle>
|
|
<span *ngIf="softwareInfo.types && softwareInfo.types.length > 0"
|
|
class="uk-label custom-label label-software "
|
|
title="Type">{{softwareInfo.types.join(", ")}}</span>{{" "}}
|
|
<span *ngIf="softwareInfo.programmingLanguages && softwareInfo.programmingLanguages.length > 0"
|
|
class="uk-label custom-label label-progrLanguage "
|
|
title="Programming Language">{{softwareInfo.programmingLanguages.join(", ")}}</span>{{" "}}
|
|
<span *ngIf="softwareInfo.languages && softwareInfo.languages.length > 0"
|
|
class="uk-label custom-label label-language "
|
|
title="Language">{{softwareInfo.languages.join(", ")}}</span>{{" "}}
|
|
<span *ngIf="softwareInfo.countries && softwareInfo.countries.length > 0"
|
|
class="uk-label custom-label label-country "
|
|
title="Country">{{softwareInfo.countries.join(", ")}}</span>{{" "}}
|
|
<!-- <span *ngIf="softwareInfo.title && softwareInfo.title.accessMode" [class]="'uk-label custom-label label-'+ softwareInfo.title.accessMode " title="Access Mode">{{softwareInfo.title.accessMode}}</span> -->
|
|
<span *ngIf="softwareInfo.accessMode" [class]="'uk-label custom-label label-'+ softwareInfo.accessMode "
|
|
title="Access Mode">{{softwareInfo.accessMode}}</span>{{" "}}
|
|
<span *ngIf="softwareInfo.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="softwareInfo.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]="softwareInfo.authors"></showAuthors>
|
|
<span *ngIf="softwareInfo.date != ''">({{softwareInfo.date}})</span>
|
|
</div>
|
|
|
|
<ul class="uk-list">
|
|
<showPublisher [publisher]="softwareInfo.publisher" [properties]="properties"
|
|
[journal]="softwareInfo.journal"></showPublisher>
|
|
|
|
<li *ngIf="softwareInfo.embargoEndDate"><span
|
|
class="uk-text-bold">Embargo end date:</span> {{softwareInfo.embargoEndDate}}</li>
|
|
<li *ngIf="softwareInfo.identifiers && softwareInfo.identifiers.size > 0">
|
|
<showIdentifiers [identifiers]="softwareInfo.identifiers"></showIdentifiers>
|
|
</li>
|
|
<li *ngIf="softwareInfo.subjects ||softwareInfo.otherSubjects || softwareInfo.classifiedSubjects">
|
|
<showSubjects [subjects]="softwareInfo.subjects"
|
|
[otherSubjects]="softwareInfo.otherSubjects"
|
|
[classifiedSubjects]="softwareInfo.classifiedSubjects">
|
|
</showSubjects>
|
|
</li>
|
|
</ul>
|
|
<hr *ngIf="softwareInfo.description">
|
|
<div *ngIf="softwareInfo.description"
|
|
class="uk-text-justify descriptionText uk-height-max-medium uk-overflow-auto">
|
|
<span>{{softwareInfo.description.substring(0, showNumDescription)}}</span
|
|
><span
|
|
*ngIf="showNumDescription == thresholdDescription && softwareInfo.description.length > thresholdDescription">...</span
|
|
><span
|
|
*ngIf="showNumDescription == thresholdDescription && softwareInfo.description.length > thresholdDescription"
|
|
class="uk-text-right">
|
|
<a (click)="showNumDescription = softwareInfo.description.length;">
|
|
View more
|
|
</a>
|
|
</span>
|
|
</div>
|
|
<div *ngIf="softwareInfo.description && showNumDescription > thresholdDescription"
|
|
class="uk-width-1-1 uk-text-right">
|
|
<a (click)="showNumDescription = thresholdDescription;">
|
|
View less
|
|
</a>
|
|
</div>
|
|
|
|
<!-- <div class="uk-clearfix"><div class="uk-button-group uk-float-right uk-margin-top">
|
|
<button class="uk-button uk-button-small uk-button-action">
|
|
<span class="uk-icon" >
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="link" ratio="1"><path fill="none" stroke="#000" stroke-width="1.1" 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"></path><path fill="none" stroke="#000" stroke-width="1.1" 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"></path><path fill="none" stroke="#000" stroke-width="1.1" d="M7.925,11.875 L11.925,7.975"></path></svg></span>
|
|
Link this software to
|
|
</button>
|
|
<div class="uk-inline">
|
|
<button class="uk-button uk-button-small uk-button-action" type="button">
|
|
<span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="triangle-down" ratio="1"><polygon points="5 7 15 7 10 12"></polygon></svg></span>
|
|
</button>
|
|
<div uk-dropdown="mode: click; boundary: ! .uk-button-group; boundary-align: true;"
|
|
class="uk-dropdown uk-dropdown-boundary uk-dropdown-bottom-left" style="top: 40px; left: -236.5px;">
|
|
<ul class="uk-nav uk-dropdown-nav uk-padding-small" >
|
|
<li><a class="uk-width-1-1" [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','project'])" routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
|
|
Projects</a></li>
|
|
<li><a class="uk-width-1-1"[queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','context'])" routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
|
|
Communities</a></li>
|
|
<li><a class="uk-width-1-1" [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','result'])" routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
|
|
Other research results</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div></div> -->
|
|
|
|
<ul class="custom-accordion " uk-accordion>
|
|
|
|
<li *ngIf="softwareInfo.relatedResearchResults" (click)="activeTab='Related Research Results'">
|
|
<a class="uk-accordion-title" href="#">
|
|
Related Research Results
|
|
<!-- <span *ngIf="!softwareInfo.relatedResearchResults" class="uk-badge uk-badge-notification">0</span>
|
|
<span *ngIf="softwareInfo.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="!softwareInfo.relatedResearchResults" class = "uk-alert uk-alert-primary">
|
|
No related research results available
|
|
</div>
|
|
<div *ngIf="softwareInfo.relatedResearchResults"> -->
|
|
<div>
|
|
<div *ngFor="let provenanceaction of getKeys(softwareInfo.relatedResearchResults)">
|
|
<div class="uk-text-large">{{provenanceaction}}</div>
|
|
|
|
<tabTable percentageName="trust"
|
|
[info]="softwareInfo.relatedResearchResults.get(provenanceaction)"
|
|
[properties]=properties></tabTable>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
<li *ngIf="softwareInfo.similarResearchResults" (click)="activeTab='Similar Research Results'">
|
|
<a class="uk-accordion-title" href="#">
|
|
Similar Research Results
|
|
<!-- <span *ngIf="!softwareInfo.similarResearchResults" class="uk-badge uk-badge-notification">0</span>
|
|
<span *ngIf="softwareInfo.similarResearchResults" class="uk-badge uk-badge-notification">
|
|
{{softwareInfo.similarResearchResults.length | number}}
|
|
</span> -->
|
|
<!-- <span class="uk-badge uk-badge-notification"> -->
|
|
({{softwareInfo.similarResearchResults.length | number}})
|
|
<!-- </span> -->
|
|
</a>
|
|
<div class="uk-accordion-content">
|
|
<!-- <div *ngIf="!softwareInfo.similarResearchResults" class = "uk-alert uk-alert-primary" >
|
|
No similar research results available
|
|
</div>
|
|
|
|
<div *ngIf="softwareInfo.similarResearchResults"> -->
|
|
<div>
|
|
<tabTable percentageName="similarity" [info]="softwareInfo.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]="softwareId" [entityType]="'results'" [entity]="'Software'"
|
|
(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' && softwareInfo.deletedByInferenceIds">
|
|
<a class="uk-accordion-title" href="#">
|
|
Other Versions
|
|
({{softwareInfo.deletedByInferenceIds.length | number}})
|
|
</a>
|
|
<div *ngIf="activeTab=='Other Versions'" class="uk-accordion-content">
|
|
<deletedByInference [id]="softwareId" [ids]="softwareInfo.deletedByInferenceIds"
|
|
[type]="'software'"></deletedByInference>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-3@m uk-width-1-1@s">
|
|
<div *ngIf="isRouteAvailable('participate/direct-claim') " class=" uk-padding-small">
|
|
<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 software 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'],[softwareId,'software','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'],[softwareId,'software','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'],[softwareId,'software','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 class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share - Bookmark</div>
|
|
<addThis></addThis>
|
|
|
|
<altmetrics *ngIf="softwareInfo.identifiers && softwareInfo.identifiers.get('doi')"
|
|
id="{{softwareInfo.identifiers.get('doi')[0]}}" type="doi">
|
|
</altmetrics>
|
|
<ul class="uk-list uk-margin-remove-bottom">
|
|
|
|
<li *ngIf="softwareInfo.hostedBy_collectedFrom && softwareInfo.hostedBy_collectedFrom.length > 0">
|
|
<availableOn [availableOn]="softwareInfo.hostedBy_collectedFrom"></availableOn>
|
|
</li>
|
|
<li *ngIf="softwareInfo.fundedByProjects != undefined && softwareInfo.fundedByProjects.length > 0">
|
|
<fundedBy [fundedByProjects]="softwareInfo.fundedByProjects"></fundedBy>
|
|
</li>
|
|
|
|
<li *ngIf="softwareInfo.contexts && softwareInfo.contexts.length >0 ">
|
|
<dl class="uk-description-list-line">
|
|
<dt class="sideInfoTitle">Related to</dt>
|
|
<dd class="line" *ngFor="let item of softwareInfo.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]="softwareId" [entityType]="'results'" [entity]="'Software'"
|
|
(metricsResults)="metricsResults($event)" [(properties)] = properties>
|
|
</metrics>
|
|
</li-->
|
|
|
|
<li>
|
|
|
|
<div class=" sideInfoTitle cite-this-button uk-width-1-1" type="button">
|
|
Cite this software
|
|
</div>
|
|
<div class="">
|
|
<citeThis [result]="softwareInfo" [id]="softwareId" type="software"></citeThis>
|
|
</div>
|
|
</li>
|
|
<!--li>
|
|
<ul uk-accordion class="uk-padding-remove">
|
|
<li>
|
|
<button class="uk-button uk-button-primary uk-accordion-title link-to-button uk-width-1-1" type="button">
|
|
<span class="uk-icon" >
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="link" ratio="1"><path fill="none" stroke="#000" stroke-width="1.1" 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"></path><path fill="none" stroke="#000" stroke-width="1.1" 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"></path><path fill="none" stroke="#000" stroke-width="1.1" d="M7.925,11.875 L11.925,7.975"></path></svg></span>
|
|
<span class="uk-margin-right">Link this software to</span>
|
|
</button>
|
|
<div class="uk-accordion-content">
|
|
<ul class="uk-nav uk-dropdown-nav uk-padding-small" >
|
|
<li><a class="uk-width-1-1" [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','project'])" routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
|
|
Projects</a></li>
|
|
<li><a class="uk-width-1-1" [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','context'])" routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
|
|
Communities</a></li>
|
|
<li><a class="uk-width-1-1" [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[softwareId,'software','result'])" routerLinkActive="router-link-active" routerLink="/participate/direct-claim" >
|
|
Other research results</a></li>
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</li-->
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
|
[texts]="pageContents['bottom']"></helper>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|