diff --git a/portal-2/src/app/landingPages/dataset/dataset.component.html b/portal-2/src/app/landingPages/dataset/dataset.component.html index 17ab2649..18c278ed 100644 --- a/portal-2/src/app/landingPages/dataset/dataset.component.html +++ b/portal-2/src/app/landingPages/dataset/dataset.component.html @@ -3,19 +3,19 @@
- +
Funder | -Project Name | +Funder | +Project Name |
---|
- +
The results below are discovered through our pilot algorithms. Let us know how we are doing! @@ -184,25 +183,25 @@
Bio Entity | -Site Name | +Bio Entity | +Site Name |
---|---|---|---|
+ | {{keyIn}} | -+ | {{key}} |
The results below are discovered through our pilot algorithms. Let us know how we are doing! @@ -210,12 +209,12 @@
Site Name | +Site Name |
---|---|
+ | {{item.name}} @@ -223,9 +222,12 @@ |
no trust found
diff --git a/portal-2/src/app/services/login.service.ts b/portal-2/src/app/services/login.service.ts index a07092bc..b6a182e9 100644 --- a/portal-2/src/app/services/login.service.ts +++ b/portal-2/src/app/services/login.service.ts @@ -1,5 +1,5 @@ import {Injectable} from '@angular/core'; -import {Http, Response} from '@angular/http'; +import {Http, Response, Headers, RequestOptions} from '@angular/http'; import {Observable} from 'rxjs/Observable'; import 'rxjs/add/observable/of'; import 'rxjs/add/operator/do'; @@ -15,22 +15,33 @@ export class LoginService { constructor(private http: Http, public _cache: CacheService) {} - authenticate (user: User):any { + authenticate (/*user: User*/username: string, password: string):any { +/* + let headers = new Headers({ 'Content-Type': 'application/json' }); + let options = new RequestOptions({ headers: headers }); - let url = OpenaireProperties.getLoginAPIURL()+user.username+"&password="+user.password; + return this.http.post(this.heroesUrl, { name }, options) + .map(this.extractData) + .catch(this.handleError); +*/ + let url = OpenaireProperties.getLoginAPIURL()+username+"&password="+password; let key = url; if (this._cache.has(key)) { return Observable.of(this._cache.get(key)); } return this.http.get(url) .map(res =>