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>
|
||||
({{publicationInfo.similarPublications.get(key)[1]}})
|
||||
</td>
|
||||
<td 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]">
|
||||
{{publicationInfo.similarPublications.get(key)[2]}}
|
||||
<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]">
|
||||
{{publicationInfo.similarPublications.get(key)[2]}}</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -212,18 +213,24 @@ import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/
|
|||
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="functionsSection" *ngIf="publicationInfo.fundedByProjects == undefined">
|
||||
<dt class="title">Funded By</dt>
|
||||
</dl>
|
||||
<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>
|
||||
</li>
|
||||
<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>
|
||||
<dd class="line" >
|
||||
|
||||
|
||||
<!-- TODO add contexts here -->
|
||||
</dd>
|
||||
</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>
|
||||
<inline-claim-context inline="true" inlineType ="publication" [inlineEntity]="result" ></inline-claim-context>
|
||||
</li>
|
||||
|
@ -321,16 +328,7 @@ console.info("do request");
|
|||
var contexts =$event.value;
|
||||
if(contexts){
|
||||
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']['bestlicense'],
|
||||
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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue