From 7b48445a5521ebb895d65f720f8b068c79ad1f1d Mon Sep 17 00:00:00 2001
From: "argiro.kokogiannaki"
Date: Mon, 4 May 2020 14:11:50 +0000
Subject: [PATCH] [Library|Trunk]
Impact factors:
update according to the mocks
show them also in beta
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58591 d315682c-612b-4755-9ff5-7f18f6832af3
---
.../searchUtils/searchResult.component.ts | 2 +-
.../result-preview.component.html | 65 +++++++++++++++++--
2 files changed, 62 insertions(+), 5 deletions(-)
diff --git a/searchPages/searchUtils/searchResult.component.ts b/searchPages/searchUtils/searchResult.component.ts
index 411f573e..3a9b4605 100644
--- a/searchPages/searchUtils/searchResult.component.ts
+++ b/searchPages/searchUtils/searchResult.component.ts
@@ -34,7 +34,7 @@ export class SearchResultComponent implements OnInit, OnChanges {
// console.log(data[1]);
let dois = encodeURIComponent(this.results.map((result) => result.DOI).join(","));
// console.log(dois);
- if(dois.length > 0 && this.showImpactFactors && this.properties.environment == "development") {
+ if(dois.length > 0 && this.showImpactFactors && this.properties.environment != "production") {
let url = 'http://bip.imis.athena-innovation.gr:4000/paper/scores/batch/' + dois;
this.http.get(url).subscribe((data_received) => {
for (let i = 0; i < this.previewResults.length; i++) {
diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html
index bc2115f3..3a845869 100644
--- a/utils/result-preview/result-preview.component.html
+++ b/utils/result-preview/result-preview.component.html
@@ -271,8 +271,65 @@
{{result.description}}
-