Add communityAPI link in properties class and Move service's calls in route.data
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51164 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
547d7b56ca
commit
1459dda5fa
|
@ -8,9 +8,9 @@ import { ErrorCodes} from '../openaireLibrary/utils/properties/errorCodes';
|
|||
import {Properties} from '../utils/properties';
|
||||
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
|
||||
import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
|
||||
import {Meta} from '../openaireLibrary/sharedComponents/metaService';
|
||||
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
|
||||
import {SearchEntriesService} from '../searchEntries/searchEntries.service';
|
||||
|
||||
|
||||
|
@ -18,6 +18,7 @@ import {SearchEntriesService} from '../searchEntries/searchEntries.service';
|
|||
selector: 'community',
|
||||
templateUrl: 'community.component.html',
|
||||
})
|
||||
|
||||
export class CommunityComponent {
|
||||
public piwiksub: any;
|
||||
public subfunders: any;
|
||||
|
@ -48,8 +49,8 @@ export class CommunityComponent {
|
|||
private _piwikService:PiwikService,
|
||||
private config: ConfigurationService,
|
||||
private _communityService:CommunityService,
|
||||
private _searchEntriesService:SearchEntriesService,
|
||||
) {
|
||||
private _searchEntriesService:SearchEntriesService) {
|
||||
|
||||
var description = "open access, research, scientific publication, European Commission, EC, FP7, ERC, Horizon 2020, H2020, search, projects ";
|
||||
var title = "OpenAIRE";
|
||||
|
||||
|
@ -69,8 +70,6 @@ export class CommunityComponent {
|
|||
this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE").subscribe();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
this.route.queryParams.subscribe(
|
||||
communityId => {
|
||||
this.communityId = communityId['communityId'];
|
||||
|
@ -131,7 +130,7 @@ export class CommunityComponent {
|
|||
softwareResults => {
|
||||
this.softwareResults = softwareResults;
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public ngOnDestroy() {
|
||||
|
|
|
@ -11,7 +11,7 @@ import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
|
|||
import {Meta} from '../openaireLibrary/sharedComponents/metaService';
|
||||
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
|
||||
import {SearchEntriesService} from '../searchEntries/searchEntries.service';
|
||||
import { CommunityService } from '../openaireLibrary/connect/community/community.service';
|
||||
import {CommunityService} from '../openaireLibrary/connect/community/community.service';
|
||||
|
||||
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
|
|
|
@ -2,4 +2,6 @@ export class Properties {
|
|||
public static adminToolsAPIURL = "http://duffy.di.uoa.gr:8080/uoa-admin-tools";
|
||||
public static adminToolsAPIURL_pm = "http://duffy.di.uoa.gr:8080/uoa-admin-tools";
|
||||
public static adminToolsCommunity = "egi";
|
||||
|
||||
public static communityAPI = "https://dev-openaire.d4science.org/openaire/community/";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue