diff --git a/src/app/claims/directLinking/directLinking.component.ts b/src/app/claims/directLinking/directLinking.component.ts
index afabe0a..7f34732 100644
--- a/src/app/claims/directLinking/directLinking.component.ts
+++ b/src/app/claims/directLinking/directLinking.component.ts
@@ -1,8 +1,12 @@
-import {Component, Input} from '@angular/core';
+import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
- selector: 'openaire-directLinking',
- template: ``
+ selector: 'openaire-directLinking',
+ template: `
+ `
})
export class OpenaireDirectLinkingComponent {
+ piwikSiteId = properties.piwikSiteId;
+
}
diff --git a/src/app/claims/linking/linkingGeneric.component.ts b/src/app/claims/linking/linkingGeneric.component.ts
index edfeb87..b9a335b 100644
--- a/src/app/claims/linking/linkingGeneric.component.ts
+++ b/src/app/claims/linking/linkingGeneric.component.ts
@@ -1,10 +1,13 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-linking-generic',
- template: ``
+ template: ``
})
export class OpenaireLinkingComponent {
+ piwikSiteId = properties.piwikSiteId;
+
}
diff --git a/src/app/claims/myClaims/myClaims.component.ts b/src/app/claims/myClaims/myClaims.component.ts
index ec94692..36117d5 100644
--- a/src/app/claims/myClaims/myClaims.component.ts
+++ b/src/app/claims/myClaims/myClaims.component.ts
@@ -2,13 +2,14 @@ import {Component} from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
import {Subscriber} from "rxjs";
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-my-claims',
template: `
-
+
`
@@ -17,6 +18,8 @@ import {Subscriber} from "rxjs";
claimsInfoURL:string;
userInfoURL: string;
sub;
+ piwikSiteId = properties.piwikSiteId;
+
constructor (private route: ActivatedRoute) {
}
ngOnDestroy() {
diff --git a/src/app/deposit/deposit.component.ts b/src/app/deposit/deposit.component.ts
index 2d4ff8b..094a3b3 100644
--- a/src/app/deposit/deposit.component.ts
+++ b/src/app/deposit/deposit.component.ts
@@ -1,15 +1,16 @@
import {Component} from '@angular/core';
+import {properties} from "../../environments/environment";
@Component({
selector: 'openaire-deposit',
template: `
-
+
`
})
export class OpenaireDepositComponent {
-
- constructor() {
+ piwikSiteId = properties.piwikSiteId;
+ constructor() {
}
public ngOnInit() {}
diff --git a/src/app/deposit/searchDataprovidersToDeposit.component.ts b/src/app/deposit/searchDataprovidersToDeposit.component.ts
index 51ae338..69b6e5a 100644
--- a/src/app/deposit/searchDataprovidersToDeposit.component.ts
+++ b/src/app/deposit/searchDataprovidersToDeposit.component.ts
@@ -1,13 +1,15 @@
import {Component} from '@angular/core';
+import {properties} from "../../environments/environment";
@Component({
selector: 'openaire-search-deposit',
template: `
-
+
`
})
export class OpenaireSearchDataprovidersToDepositComponent {
+ piwikSiteId = properties.piwikSiteId;
constructor() {}
diff --git a/src/app/develop/develop.component.ts b/src/app/develop/develop.component.ts
index 3c7cdc2..d40b17a 100644
--- a/src/app/develop/develop.component.ts
+++ b/src/app/develop/develop.component.ts
@@ -5,6 +5,8 @@ import {properties} from "../../environments/environment";
import {Router} from "@angular/router";
import {AggregatorInfo, PortalAggregators} from "../utils/aggregators";
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
+import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
+import {Subscription} from "rxjs";
@Component({
selector: 'develop',
@@ -88,15 +90,20 @@ import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
styleUrls: ['develop.component.css']
})
export class DevelopComponent implements OnInit {
-
+
public aggregator: AggregatorInfo = null;
+ subs: Subscription[] = [];
constructor(private seoService: SEOService,
private _meta: Meta,
private _router: Router,
- private _title: Title) {
+ private _title: Title, private _piwikService:PiwikService,) {
+ }
+ public ngOnDestroy() {
+ for (let sub of this.subs) {
+ sub.unsubscribe();
+ }
}
-
ngOnInit() {
let id = ConnectHelper.getCommunityFromDomain(properties.domain);
@@ -113,6 +120,9 @@ export class DevelopComponent implements OnInit {
this._meta.updateTag({content: description}, "property='og:description'");
this._meta.updateTag({content: title}, "property='og:title'");
this._title.setTitle(title);
+ if(properties.enablePiwikTrack && (typeof document !== 'undefined')){
+ this.subs.push(this._piwikService.trackView(properties, "OpenAIRE").subscribe());
+ }
}else {
this.navigateToError();
@@ -123,6 +133,6 @@ export class DevelopComponent implements OnInit {
private navigateToError() {
this._router.navigate(['/error'], {queryParams: {'page': this._router.url}});
}
-
+
}
diff --git a/src/app/landingPages/dataProvider/dataProvider.component.ts b/src/app/landingPages/dataProvider/dataProvider.component.ts
index b9d6af7..938df97 100644
--- a/src/app/landingPages/dataProvider/dataProvider.component.ts
+++ b/src/app/landingPages/dataProvider/dataProvider.component.ts
@@ -1,10 +1,13 @@
-import {Component, ViewChild, ElementRef} from '@angular/core';
+import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-dataprovider',
- template: ``,
+ template: ``,
})
export class OpenaireDataProviderComponent{
+ piwikSiteId = properties.piwikSiteId;
+
constructor ( ) {
}
diff --git a/src/app/landingPages/dataset/dataset.component.ts b/src/app/landingPages/dataset/dataset.component.ts
index dfb6bbb..9887dc8 100644
--- a/src/app/landingPages/dataset/dataset.component.ts
+++ b/src/app/landingPages/dataset/dataset.component.ts
@@ -1,10 +1,13 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-dataset',
- template: ``,
+ template: ``,
})
export class OpenaireDatasetComponent{
+ piwikSiteId = properties.piwikSiteId;
+
constructor ( ) {
}
diff --git a/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts b/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts
index e834441..0d1c94b 100644
--- a/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts
+++ b/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts
@@ -1,10 +1,13 @@
-import {Component, ViewChild, ElementRef} from '@angular/core';
+import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-htmlProjectReport',
- template: ``,
+ template: ``,
})
export class OpenaireHtmlProjectReportComponent{
+ piwikSiteId = properties.piwikSiteId;
+
constructor ( ) {
}
diff --git a/src/app/landingPages/organization/organization.component.ts b/src/app/landingPages/organization/organization.component.ts
index 467b895..150642b 100644
--- a/src/app/landingPages/organization/organization.component.ts
+++ b/src/app/landingPages/organization/organization.component.ts
@@ -1,10 +1,13 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-organization',
- template: ``,
+ template: ``,
})
export class OpenaireOrganizationComponent{
+ piwikSiteId = properties.piwikSiteId;
+
constructor ( ) {
}
diff --git a/src/app/landingPages/orp/orp.component.ts b/src/app/landingPages/orp/orp.component.ts
index f1dea70..14cd92c 100644
--- a/src/app/landingPages/orp/orp.component.ts
+++ b/src/app/landingPages/orp/orp.component.ts
@@ -1,10 +1,13 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-orp',
- template: ``,
+ template: ``,
})
export class OpenaireOrpComponent{
+ piwikSiteId = properties.piwikSiteId;
+
constructor ( ) {
}
diff --git a/src/app/landingPages/project/project.component.ts b/src/app/landingPages/project/project.component.ts
index a3964da..e0ae715 100644
--- a/src/app/landingPages/project/project.component.ts
+++ b/src/app/landingPages/project/project.component.ts
@@ -1,10 +1,13 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-project',
- template: ``,
+ template: ``,
})
export class OpenaireProjectComponent{
+ piwikSiteId = properties.piwikSiteId;
+
constructor ( ) {
}
diff --git a/src/app/landingPages/publication/publication.component.ts b/src/app/landingPages/publication/publication.component.ts
index ca8a2cf..f4a507c 100644
--- a/src/app/landingPages/publication/publication.component.ts
+++ b/src/app/landingPages/publication/publication.component.ts
@@ -1,12 +1,15 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-publication',
template: `
- `,
+ `,
})
export class OpenairePublicationComponent {
-
+ piwikSiteId = properties.piwikSiteId;
+
+
constructor() {}
ngOnInit() {
diff --git a/src/app/landingPages/result/result.component.ts b/src/app/landingPages/result/result.component.ts
index 860e401..7896946 100644
--- a/src/app/landingPages/result/result.component.ts
+++ b/src/app/landingPages/result/result.component.ts
@@ -1,7 +1,11 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-publication',
- template: ``,
+ template: ``,
})
-export class OpenaireResultComponent{}
+export class OpenaireResultComponent{
+ piwikSiteId = properties.piwikSiteId;
+
+}
diff --git a/src/app/landingPages/software/software.component.ts b/src/app/landingPages/software/software.component.ts
index 3e445b3..f768724 100644
--- a/src/app/landingPages/software/software.component.ts
+++ b/src/app/landingPages/software/software.component.ts
@@ -1,12 +1,14 @@
import {Component} from '@angular/core';
+import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-software',
- template: ``,
+ template: ``,
})
export class OpenaireSoftwareComponent{
- constructor ( ) {
+ piwikSiteId = properties.piwikSiteId;
+ constructor ( ) {
}
ngOnInit() {
diff --git a/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts b/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts
index 0b843a9..2767355 100644
--- a/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts
+++ b/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts
@@ -9,14 +9,14 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
@Component({
selector: 'openaire-advanced-search-dataprovider',
template: `
-
+
`
})
export class OpenaireAdvancedSearchDataProvidersComponent {
-
customFilter: SearchCustomFilter = null;
properties: EnvProperties;
constructor ( ) {}
diff --git a/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts b/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts
index 8974dde..347463d 100644
--- a/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts
+++ b/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts
@@ -9,7 +9,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
@Component({
selector: 'openaire-advanced-search-organizations',
template: `
-
+
`
diff --git a/src/app/searchPages/advanced/advancedSearchProjects.component.ts b/src/app/searchPages/advanced/advancedSearchProjects.component.ts
index 8ca0cdd..d0ec510 100644
--- a/src/app/searchPages/advanced/advancedSearchProjects.component.ts
+++ b/src/app/searchPages/advanced/advancedSearchProjects.component.ts
@@ -8,7 +8,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
@Component({
selector: 'openaire-advanced-search-projects',
template: `
-
+
`
diff --git a/src/app/searchPages/advanced/searchResearchResults.component.ts b/src/app/searchPages/advanced/searchResearchResults.component.ts
index 9bb5fa8..b16447d 100644
--- a/src/app/searchPages/advanced/searchResearchResults.component.ts
+++ b/src/app/searchPages/advanced/searchResearchResults.component.ts
@@ -8,7 +8,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
@Component({
selector: 'openaire-search-results',
template: `
-
+
`
})
diff --git a/src/app/searchPages/find/search.component.ts b/src/app/searchPages/find/search.component.ts
index a642e4e..63d4c60 100644
--- a/src/app/searchPages/find/search.component.ts
+++ b/src/app/searchPages/find/search.component.ts
@@ -7,11 +7,12 @@ import {properties} from "../../../environments/environment";
@Component({
selector: 'openaire-search-find',
template: `
-
+
`,
})
export class OpenaireSearchComponent{
customFilter:SearchCustomFilter= null;
+ piwikSiteId = properties.piwikSiteId;
constructor ( ) {}
ngOnInit() {
let id = ConnectHelper.getCommunityFromDomain(properties.domain);
diff --git a/src/app/searchPages/simple/searchDataproviders.component.ts b/src/app/searchPages/simple/searchDataproviders.component.ts
index ea3329f..5217a3f 100644
--- a/src/app/searchPages/simple/searchDataproviders.component.ts
+++ b/src/app/searchPages/simple/searchDataproviders.component.ts
@@ -9,7 +9,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
selector: 'openaire-search-dataproviders',
template: `
-
+
`
diff --git a/src/app/searchPages/simple/searchOrganizations.component.ts b/src/app/searchPages/simple/searchOrganizations.component.ts
index 6ab4874..3b5a088 100644
--- a/src/app/searchPages/simple/searchOrganizations.component.ts
+++ b/src/app/searchPages/simple/searchOrganizations.component.ts
@@ -9,7 +9,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
selector: 'openaire-search-organizations',
template: `
-
+
`
diff --git a/src/app/searchPages/simple/searchProjects.component.ts b/src/app/searchPages/simple/searchProjects.component.ts
index 4e4d9a1..7ade782 100644
--- a/src/app/searchPages/simple/searchProjects.component.ts
+++ b/src/app/searchPages/simple/searchProjects.component.ts
@@ -9,7 +9,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
selector: 'openaire-search-projects',
template: `
-
+
`
diff --git a/src/app/searchPages/simple/searchResearchResults.component.ts b/src/app/searchPages/simple/searchResearchResults.component.ts
index ed213bb..f889b53 100644
--- a/src/app/searchPages/simple/searchResearchResults.component.ts
+++ b/src/app/searchPages/simple/searchResearchResults.component.ts
@@ -8,7 +8,8 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
@Component({
selector: 'openaire-search-results',
template: `
-
+
`
})
diff --git a/src/environments/environment.beta.ts b/src/environments/environment.beta.ts
index 43d79a0..79604c6 100644
--- a/src/environments/environment.beta.ts
+++ b/src/environments/environment.beta.ts
@@ -4,7 +4,7 @@ export let properties: EnvProperties = {
environment: "beta",
adminToolsPortalType: "aggregator",
dashboard: "explore",
- enablePiwikTrack: false,
+ enablePiwikTrack: true,
useCache: false,
useLongCache: true,
showAddThis: true,
@@ -41,23 +41,23 @@ export let properties: EnvProperties = {
helpdesk: "https://www.openaire.eu/support/helpdesk",
helpdeskEmail: "helpdesk@openaire.eu",
utilsService: "https://demo.openaire.eu/utils-service",
-
+
vocabulariesAPI: "https://beta.services.openaire.eu/provision/mvc/vocabularies/",
-
+
piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
- piwikSiteId: null,
+ piwikSiteId: "553",
loginUrl: "https://beta.services.openaire.eu/explore-login/openid_connect_login",
-
+
userInfoUrl: "https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
-
+
logoutUrl: "https://beta.services.openaire.eu/explore-login/openid_logout",
-
+
cookieDomain: ".openaire.eu",
-
+
feedbackmail: "feedback@openaire.eu",
-
+
cacheUrl: "https://demo.openaire.eu/cache/get?url=",
-
+
datasourcesAPI: "https://beta.services.openaire.eu/openaire/ds/search/",
adminToolsCommunity: "aggregator",
@@ -65,14 +65,14 @@ export let properties: EnvProperties = {
useHelpTexts: false,
contextsAPI: "https://beta.services.openaire.eu/openaire/context",
communityAPI: "https://beta.services.openaire.eu/openaire/community/",
-
+
csvLimit: 2000,
pagingLimit: 20,
resultsPerPage: 10,
"baseLink" : "",
- "domain":"https://beta.explore.openaire.eu",
-
+ "domain":"https://beta.canada.explore.openaire.eu",
+
searchLinkToResult: "/search/result?id=",
searchLinkToPublication: "/search/publication?articleId=",
searchLinkToProject: "/search/project?projectId=",
@@ -81,7 +81,7 @@ export let properties: EnvProperties = {
searchLinkToSoftwareLanding: "/search/software?softwareId=",
searchLinkToOrp: "/search/other?orpId=",
searchLinkToOrganization: "/search/organization?organizationId=",
-
+
searchLinkToPublications: "/search/find/publications",
searchLinkToDataProviders: "/search/find/dataproviders",
searchLinkToProjects: "/search/find/projects",
@@ -95,7 +95,7 @@ export let properties: EnvProperties = {
searchLinkToJournals: "/search/journals",
searchLinkToJournalsTable: "/search/journals-table",
searchLinkToResults: "/search/find/research-outcomes",
-
+
searchLinkToAdvancedPublications: "/search/advanced/publications",
searchLinkToAdvancedProjects: "/search/advanced/projects",
searchLinkToAdvancedDatasets: "/search/advanced/datasets",
@@ -104,14 +104,14 @@ export let properties: EnvProperties = {
searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders",
searchLinkToAdvancedOrganizations: "/search/advanced/organizations",
searchLinkToAdvancedResults: "/search/advanced/research-outcomes",
-
+
lastIndexInformationLink: "https://beta.openaire.eu/aggregation-and-content-provision-workflows",
showLastIndexInformationLink: true,
widgetLink: "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
claimsInformationLink: "https://beta.openaire.eu/linking",
lastIndexUpdate: "2020-05-11",
indexInfoAPI: "https://beta.services.openaire.eu/openaire/info/",
-
+
depositLearnHowPage: "/participate/deposit/learn-how",
depositSearchPage: "/participate/deposit/search",
altMetricsAPIURL: "https://api.altmetric.com/v1/doi/",
diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts
index 71eb6f8..e145686 100644
--- a/src/environments/environment.prod.ts
+++ b/src/environments/environment.prod.ts
@@ -41,40 +41,40 @@ export let properties: EnvProperties = {
helpdesk: "https://www.openaire.eu/support/helpdesk",
helpdeskEmail: "helpdesk@openaire.eu",
utilsService: "https://explore.openaire.eu/utils-service",
-
+
vocabulariesAPI: "https://services.openaire.eu/provision/mvc/vocabularies/",
-
+
piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
- piwikSiteId: "109",
+ piwikSiteId: "553",
loginUrl: "https://services.openaire.eu/uoa-user-management/openid_connect_login",
-
+
userInfoUrl: " https://services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
-
+
logoutUrl: "https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
-
+
cookieDomain: ".openaire.eu",
-
+
feedbackmail: "feedback@openaire.eu",
-
+
cacheUrl: "https://explore.openaire.eu/cache/get?url=",
-
+
datasourcesAPI: "https://services.openaire.eu/openaire/ds/search/",
adminToolsCommunity: "aggregator",
adminToolsAPIURL: "https://services.openaire.eu/uoa-admin-tools/",
useHelpTexts:false,
-
+
contextsAPI: "https://services.openaire.eu/openaire/context",
-
+
communityAPI: "https://services.openaire.eu/openaire/community/",
-
+
csvLimit: 2000,
pagingLimit: 20,
resultsPerPage: 10,
"baseLink" : "/",
- "domain": "https://explore.openaire.eu",
-
+ "domain": "https://canada.explore.openaire.eu",
+
searchLinkToResult: "/search/result?id=",
searchLinkToPublication: "/search/publication?articleId=",
searchLinkToProject: "/search/project?projectId=",
@@ -83,7 +83,7 @@ export let properties: EnvProperties = {
searchLinkToSoftwareLanding: "/search/software?softwareId=",
searchLinkToOrp: "/search/other?orpId=",
searchLinkToOrganization: "/search/organization?organizationId=",
-
+
searchLinkToPublications: "/search/find/publications",
searchLinkToDataProviders: "/search/find/dataproviders",
searchLinkToProjects: "/search/find/projects",
@@ -97,7 +97,7 @@ export let properties: EnvProperties = {
searchLinkToJournals: "/search/journals",
searchLinkToJournalsTable: "/search/journals-table",
searchLinkToResults: "/search/find/research-outcomes",
-
+
searchLinkToAdvancedPublications: "/search/advanced/publications",
searchLinkToAdvancedProjects: "/search/advanced/projects",
searchLinkToAdvancedDatasets: "/search/advanced/datasets",
@@ -106,14 +106,14 @@ export let properties: EnvProperties = {
searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders",
searchLinkToAdvancedOrganizations: "/search/advanced/organizations",
searchLinkToAdvancedResults: "/search/advanced/research-outcomes",
-
+
lastIndexInformationLink: "https://www.openaire.eu/aggregation-and-content-provision-workflows",
showLastIndexInformationLink: true,
widgetLink: "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
claimsInformationLink: "https://www.openaire.eu/linking",
lastIndexUpdate: "2020-06-15",
indexInfoAPI: "https://services.openaire.eu/openaire/info/",
-
+
depositLearnHowPage: "/participate/deposit/learn-how",
depositSearchPage: "/participate/deposit/search",
altMetricsAPIURL: "https://api.altmetric.com/v1/doi/",