Revision 61231
Added by Konstantina Galouni almost 3 years ago
parsingFunctions.class.ts | ||
---|---|---|
617 | 617 |
return contexts; |
618 | 618 |
} |
619 | 619 |
public static getEnermapsConceptId(contexts: any): string{ |
620 |
// let enermapsconcepts = contexts.filter(c=> {return c.idCategory == "enermaps::selection" && c.idConcept});
|
|
621 |
// return enermapsconcepts && enermapsconcepts.length > 0?enermapsconcepts[0].idConcept.split("enermaps::selection::")[1]:null;
|
|
622 |
return "hotmaps_heat_tot_curr_density" |
|
620 |
let enermapsconcepts = contexts.filter(c=> {return c.idCategory == "enermaps::selection" && c.idConcept}); |
|
621 |
return enermapsconcepts && enermapsconcepts.length > 0?enermapsconcepts[0].idConcept.split("enermaps::selection::")[1]:null; |
|
622 |
// return "hotmaps_heat_tot_curr_density"
|
|
623 | 623 |
} |
624 | 624 |
parseTypes(types: string[], uniqueTypes: Set<string>, instance: any) { |
625 | 625 |
if (instance && instance.hasOwnProperty("instancetype") && instance['instancetype'].classname) { |
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.