[Trunk | Library]: searchResult.component.ts: Remove check if environment is not production when requesting impact factors (show them in production from now on).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60146 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
0df3f39609
commit
e7de14592d
|
@ -39,7 +39,7 @@ export class SearchResultComponent implements OnInit, OnChanges {
|
|||
// console.log(data[1]);
|
||||
let dois = encodeURIComponent(this.results.map((result) => result.DOIs).join(","));
|
||||
// console.log(dois);
|
||||
if(dois.length > 0 && this.showImpactFactors && this.properties.environment != "production" && (this.properties.impactFactorsAPIURL && this.properties.impactFactorsAPIURL.length > 0) ) {
|
||||
if(dois.length > 0 && this.showImpactFactors && (this.properties.impactFactorsAPIURL && this.properties.impactFactorsAPIURL.length > 0) ) {
|
||||
let url = this.properties.impactFactorsAPIURL + dois;
|
||||
this.sub = this.http.get((this.properties.useCache?(this.properties.cacheUrl+(encodeURIComponent(url))):url)).subscribe((data_received:any[]) => {
|
||||
let impact =[];
|
||||
|
|
Loading…
Reference in New Issue