Revision 59973
Added by Argiro Kokogiannaki over 3 years ago
searchDataproviders.component.ts | ||
---|---|---|
1 | 1 |
import {Component} from '@angular/core'; |
2 | 2 |
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class"; |
3 |
import {ActivatedRoute} from "@angular/router"; |
|
4 | 3 |
import {FilterInfo, PortalAggregators} from "../../utils/aggregators"; |
5 | 4 |
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper"; |
6 | 5 |
import {properties} from "../../../environments/environment"; |
6 |
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties"; |
|
7 | 7 |
|
8 | 8 |
@Component({ |
9 | 9 |
selector: 'openaire-search-dataproviders', |
10 | 10 |
template: ` |
11 | 11 |
|
12 |
<search-dataproviders [customFilter]="customFilter"> |
|
12 |
<search-dataproviders [customFilter]="customFilter" [openaireLink]="'https://'+(properties.environment != 'production'?'beta.':'')+'explore.openaire.eu/search/find/dataproviders'">
|
|
13 | 13 |
</search-dataproviders> |
14 | 14 |
|
15 | 15 |
` |
16 | 16 |
}) |
17 | 17 |
export class OpenaireSearchDataprovidersComponent { |
18 | 18 |
customFilter: SearchCustomFilter = null; |
19 |
|
|
20 |
constructor(private route: ActivatedRoute) { |
|
21 |
|
|
22 |
} |
|
23 |
|
|
19 |
properties: EnvProperties; |
|
20 |
constructor ( ) {} |
|
24 | 21 |
ngOnInit() { |
22 |
this.properties = properties; |
|
25 | 23 |
let id = ConnectHelper.getCommunityFromDomain(properties.domain); |
26 | 24 |
let agg: FilterInfo = PortalAggregators.getFilterInfoByMenuId(id); |
27 | 25 |
this.customFilter = PortalAggregators.getSearchCustomFilterByAggregator(agg); |
Also available in: Unified diff
[Aggregator| Trunk]
- update aggregator custom filter
- add link to explore for search pages
- remove aggregator parameters from menu links