Publication landing page: fixing progress bar in similar publications, add an extra chech for citations
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@43145 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
9fb43d9db6
commit
ee3948b614
|
@ -132,9 +132,10 @@ import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/
|
||||||
</a>
|
</a>
|
||||||
({{publicationInfo.similarPublications.get(key)[1]}})
|
({{publicationInfo.similarPublications.get(key)[1]}})
|
||||||
</td>
|
</td>
|
||||||
<td class="progress">
|
<td>
|
||||||
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="29" aria-valuemin="0" aria-valuemax="100" [style.width] = "publicationInfo.similarPublications.get(key)[2]">
|
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="29" aria-valuemin="0" aria-valuemax="100" [style.width] = "publicationInfo.similarPublications.get(key)[2]">
|
||||||
{{publicationInfo.similarPublications.get(key)[2]}}
|
{{publicationInfo.similarPublications.get(key)[2]}}</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -212,18 +213,24 @@ import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/
|
||||||
|
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<dl class="functionsSection" *ngIf="publicationInfo.fundedByProjects == undefined">
|
||||||
|
<dt class="title">Funded By</dt>
|
||||||
</dl>
|
</dl>
|
||||||
<button (click)="toggleClaimProject()" class = "btn btn-default btn-xs" >Add more Projects</button>
|
<button (click)="toggleClaimProject()" class = "btn btn-default btn-xs" >Add more Projects</button>
|
||||||
<inline-claim-project *ngIf="result " inline="true" inlineType ="publication" [inlineEntity]="result" (projectAdded)="projectAdded($event)" ></inline-claim-project>
|
<inline-claim-project *ngIf="result " inline="true" inlineType ="publication" [inlineEntity]="result" (projectAdded)="projectAdded($event)" ></inline-claim-project>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<dl class="functionsSection" *ngIf="publicationInfo.fundedByProjects != undefined">
|
<dl class="functionsSection" *ngIf="publicationInfo.contexts != undefined">
|
||||||
<dt class="title">Related to </dt>
|
<dt class="title">Related to </dt>
|
||||||
<dd class="line" >
|
<dd class="line" >
|
||||||
|
<!-- TODO add contexts here -->
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
<dl class="functionsSection" *ngIf="publicationInfo.contexts == undefined">
|
||||||
|
<dt class="title">Related to </dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
<button (click)=" toggleClaimContext()" class = "btn btn-default btn-xs" >Add Contexts</button>
|
<button (click)=" toggleClaimContext()" class = "btn btn-default btn-xs" >Add Contexts</button>
|
||||||
<inline-claim-context inline="true" inlineType ="publication" [inlineEntity]="result" ></inline-claim-context>
|
<inline-claim-context inline="true" inlineType ="publication" [inlineEntity]="result" ></inline-claim-context>
|
||||||
</li>
|
</li>
|
||||||
|
@ -322,15 +329,6 @@ console.info("do request");
|
||||||
if(contexts){
|
if(contexts){
|
||||||
for(var i=0; i < contexts.length; i++){
|
for(var i=0; i < contexts.length; i++){
|
||||||
|
|
||||||
// if(this.publicationInfo.fundedByProjects == undefined) {
|
|
||||||
// this.publicationInfo.fundedByProjects = new Map<string, string[]>();
|
|
||||||
// }
|
|
||||||
// var context =contexts[i];
|
|
||||||
// this.publicationInfo.fundedByProjects.set(project.projectId, new Array<string>());
|
|
||||||
// this.publicationInfo.fundedByProjects.get(project.projectId)[0] = project.projectAcronym;
|
|
||||||
// this.publicationInfo.fundedByProjects.get(project.projectId)[1] = project.projectName;
|
|
||||||
// this.publicationInfo.fundedByProjects.get(project.projectId)[2] =project.selectedFunderId;
|
|
||||||
// this.publicationInfo.fundedByProjects.get(project.projectId)[3] = project.selectedFunderName;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ export class PublicationService {
|
||||||
res['result']['metadata']['oaf:entity']['oaf:result']['subject'],
|
res['result']['metadata']['oaf:entity']['oaf:result']['subject'],
|
||||||
res['result']['metadata']['oaf:entity']['oaf:result']['bestlicense'],
|
res['result']['metadata']['oaf:entity']['oaf:result']['bestlicense'],
|
||||||
res['result']['metadata']['oaf:entity']['oaf:result']['collectedfrom'],
|
res['result']['metadata']['oaf:entity']['oaf:result']['collectedfrom'],
|
||||||
res['result']['metadata']['oaf:entity']['extraInfo']['citations']['citation']
|
(res['result']['metadata']['oaf:entity']['extraInfo']!= undefined && res['result']['metadata']['oaf:entity']['extraInfo']['citations']!= undefined)? res['result']['metadata']['oaf:entity']['extraInfo']['citations']['citation']:null
|
||||||
])
|
])
|
||||||
.map(res => this.parsePublicationInfo(res));
|
.map(res => this.parsePublicationInfo(res));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue