Revision 58443
Added by Konstantina Galouni about 4 years ago
curator.service.ts | ||
---|---|---|
16 | 16 |
return this.http.get<Curator[]>((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url); |
17 | 17 |
} |
18 | 18 |
|
19 |
public updateCurator(url: string, curator: Curator) { |
|
19 |
public updateCurator(properties: EnvProperties, curator: Curator) { |
|
20 |
let url: string = properties.adminToolsAPIURL + "curator"; |
|
20 | 21 |
return this.http.post<Curator>(url, curator, CustomOptions.getAuthOptions()); |
21 | 22 |
} |
22 | 23 |
|
23 |
public getCurator(properties: EnvProperties, url: string): Observable<Curator> { |
|
24 |
public getCurator(properties: EnvProperties, curatorId: string): Observable<Curator> { |
|
25 |
let url: string = properties.adminToolsAPIURL + 'curator/'+curatorId; |
|
24 | 26 |
return this.http.get<Curator>((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url); |
25 | 27 |
} |
26 | 28 |
|
Also available in: Unified diff
[Trunk | Library]:
1. searchDataproviders.service.ts & searchProjects.service.ts & searchZenodoCommunities.service.ts & email.service.ts: Rename "communityId" to "pid".
2. curator.service.ts: create request path in service.
3. help-content.service.ts: Added method "statisticsIsActiveToggle()" (already added in help-content.service.ts in Admin portal).
4. layout.service.ts: "properties" as first parameter in methods | build request path in service.