Revision 44766
Added by Argiro Kokogiannaki over 7 years ago
searchPeople.service.ts | ||
---|---|---|
18 | 18 |
|
19 | 19 |
console.info("In searchProjects"); |
20 | 20 |
|
21 |
let link = OpenaireProperties.getSearchAPIURL()+"people"; |
|
21 |
let link = OpenaireProperties.getSearchAPIURLLast()+"people";
|
|
22 | 22 |
|
23 | 23 |
let url = link+"?"; |
24 | 24 |
if(params!= null && params != '' ) { |
... | ... | |
27 | 27 |
if(refineParams!= null && params != '' ) { |
28 | 28 |
url += refineParams; |
29 | 29 |
} |
30 |
url += "&page="+page+"&size="+size;
|
|
30 |
url += "&page="+(page-1)+"&size="+size + "&format=json";
|
|
31 | 31 |
let key = url; |
32 | 32 |
if (this._cache.has(key)) { |
33 | 33 |
return Observable.of(this._cache.get(key)); |
... | ... | |
90 | 90 |
|
91 | 91 |
numOfEntityPeople(id: string, entity: string):any { |
92 | 92 |
|
93 |
//OpenaireProperties.getSearchAPIURL() |
|
93 |
//OpenaireProperties.getSearchAPIURLLast()
|
|
94 | 94 |
//"http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/" |
95 |
let url = OpenaireProperties.getSearchAPIURL()+entity+id+"/people/count"
|
|
95 |
let url = OpenaireProperties.getSearchAPIURLLast()+entity+id+"/people/count"+ "?format=json";
|
|
96 | 96 |
let key = url; |
97 | 97 |
if (this._cache.has(key)) { |
98 | 98 |
return Observable.of(this._cache.get(key)); |
... | ... | |
107 | 107 |
|
108 | 108 |
numOfSearchPeople(params: string):any { |
109 | 109 |
|
110 |
//OpenaireProperties.getSearchAPIURL() |
|
110 |
//OpenaireProperties.getSearchAPIURLLast()
|
|
111 | 111 |
//"http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/" |
112 |
let url = OpenaireProperties.getSearchAPIURL()+"people/count?q="+params;
|
|
112 |
let url = OpenaireProperties.getSearchAPIURLLast()+"people/count?q="+params+ "&format=json";
|
|
113 | 113 |
let key = url; |
114 | 114 |
if (this._cache.has(key)) { |
115 | 115 |
return Observable.of(this._cache.get(key)); |
Also available in: Unified diff
Use the new API - not only in Publications but also in any other component