Revision 61231
Added by Konstantina Galouni almost 3 years ago
resultLanding.service.ts | ||
---|---|---|
484 | 484 |
} |
485 | 485 |
|
486 | 486 |
getEnermapsDetails(id: string) { |
487 |
let url = properties.enermapsAPIURL+id;
|
|
487 |
let url = properties.enermapsURL+"/api/datasets_full?shared_id=eq."+id;
|
|
488 | 488 |
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url) |
489 | 489 |
// return this.http.get(url) |
490 | 490 |
.pipe(map(res => this.parseEnermapsDetails(res))); |
Also available in: Unified diff
[Trunk | Library]:
1. env-properties.ts: Deleted property "enermapsAPIURL" (always used enermapsURL).
2. resultLanding.component.ts: Removed all usages of "enermapsAPIURL" and use "enermapsURL".
3. resultLanding.service.ts: In "getEnermapsDetails()" method, set url to properties.enermapsURL+"/api/datasets_full?shared_id=eq."+id;
4. parsingFunctions.class.ts: In "getEnermapsConceptId()" method, uncomment parsing of contexts to find enermaps id and commented a default id which was set.