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}}
-