Project

General

Profile

« Previous | Next » 

Revision 61231

[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.

View differences:

resultLanding.component.ts
321 321
      this.activeTab = 'related';
322 322
    } else if (this.resultLandingInfo.bioentities && this.bioentitiesNum > 0) {
323 323
      this.activeTab = 'bioentities';
324
    } else if(this.enermapsId && this.properties.enermapsURL && this.properties.enermapsAPIURL) {
324
    } else if(this.enermapsId && this.properties.enermapsURL) {
325 325
      this.activeTab = "enermaps";
326 326
    }
327 327
  }
......
698 698
  public onSelectActiveTab(activeTabId) {
699 699
    if (this.activeTab != activeTabId) {   // tab really changed
700 700
      this.activeTab = activeTabId;
701
      if (activeTabId == 'enermaps' && this.properties.enermapsAPIURL) {
701
      if (activeTabId == 'enermaps' && this.properties.enermapsURL) {
702 702
        this.getEnermapsDetails(this.enermapsId);
703 703
      }
704 704
    }

Also available in: Unified diff