[Library|Trunk]

Impact factors: Hide them when there is DOI but not found in bip-api



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58752 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-05-25 09:46:37 +00:00
parent 772d9e9410
commit 0bfe1aebdf
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ export class SearchResultComponent implements OnInit, OnChanges {
let url = this.properties.impactFactorsAPIURL + dois;
this.http.get((this.properties.useCache?(this.properties.cacheUrl+(encodeURIComponent(url))):url)).subscribe((data_received) => {
for (let i = 0; i < this.previewResults.length; i++) {
this.previewResults[i].pop_inf = new Array<string>();
if (this.previewResults[i].DOI != '' && this.previewResults[i].DOI != null) {
if (this.previewResults[i].DOI != '' && this.previewResults[i].DOI != null && data_received[i].pop_class!=null && data_received[i].inf_class!=null) {
this.previewResults[i].pop_inf = new Array<string>();
this.previewResults[i].pop_inf.push(data_received[i].pop_class, data_received[i].inf_class);
if(this.previewResults[i].pop_inf[0]=="A"){
// this.previewResults[i].pop_inf.push("High");