diff --git a/CHANGELOG.md b/CHANGELOG.md index c38eeee..79690a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - *Fixed (for any bug fixes)* - *Security (in case of vulnerabilities)* +## [3.1.0] - 11/09/2023 +### Added +* Impact-based indicators - Citations, Popularity, Influence, Impulse +### Changed +* Smaller window for the Data Transfer Service - not full screen +* Disabled overwrite params when submitting a job to EOSC Data transfer API +* NEW user interface & structure of the detailed page & specific user interface for small devices i.e. mobiles +* Updated access right icons +* Include Subjects as a new tab +### Fixed +* Too much recursion error in validating destination path of Data transfer - updated check + ## [3.0.0] - 13/06/2023 ### Changed * Upgraded uikit version to 3.13.10 diff --git a/package.json b/package.json index 74e0151..a5fea4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eosc", - "version": "3.0.0", + "version": "3.1.0", "scripts": { "ng": "ng", "start": "ng serve --disable-host-check --host 0.0.0.0 --port 4400", diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 7f707ab..6c12df9 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -120,7 +120,7 @@ export class AppRoutingModule { } } constructor( private config: ConfigurationService, private router: Router){ - this.subs.push(this.config.communityInformationState.subscribe(data => { + this.subs.push(this.config.portalAsObservable.subscribe(data => { if (data) { if (data['pages']) { for (var i = 0; i < data['pages'].length; i++) { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8d6e161..d794d09 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -51,7 +51,7 @@ export class AppComponent { @Inject(DOCUMENT) private document, private rendererFactory: RendererFactory2, private router: Router, private route: ActivatedRoute) { this.agg = PortalAggregators.eoscInfo; this.setStyles(); - this.configurationService.initStaticCommunityInformation(PortalAggregators.getCommunityInfo()); + this.configurationService.initStaticPortal(PortalAggregators.getCommunityInfo()); this.showHeader = this.agg.showHeaderAlways; } diff --git a/src/app/claims/directLinking/directLinking.component.ts b/src/app/claims/directLinking/directLinking.component.ts index 7f34732..efab6dd 100644 --- a/src/app/claims/directLinking/directLinking.component.ts +++ b/src/app/claims/directLinking/directLinking.component.ts @@ -4,9 +4,7 @@ import {properties} from "../../../environments/environment"; @Component({ 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 b9a335b..d7c5b1b 100644 --- a/src/app/claims/linking/linkingGeneric.component.ts +++ b/src/app/claims/linking/linkingGeneric.component.ts @@ -3,11 +3,8 @@ 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 36117d5..c60df6e 100644 --- a/src/app/claims/myClaims/myClaims.component.ts +++ b/src/app/claims/myClaims/myClaims.component.ts @@ -9,7 +9,7 @@ import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-my-claims', template: ` - + ` @@ -18,7 +18,6 @@ import {properties} from "../../../environments/environment"; claimsInfoURL:string; userInfoURL: string; sub; - piwikSiteId = properties.piwikSiteId; constructor (private route: ActivatedRoute) { } diff --git a/src/app/deposit/deposit.component.ts b/src/app/deposit/deposit.component.ts index 094a3b3..e305fd2 100644 --- a/src/app/deposit/deposit.component.ts +++ b/src/app/deposit/deposit.component.ts @@ -1,18 +1,12 @@ import {Component} from '@angular/core'; -import {properties} from "../../environments/environment"; @Component({ selector: 'openaire-deposit', template: ` - + ` }) export class OpenaireDepositComponent { - piwikSiteId = properties.piwikSiteId; - constructor() { - } - - public ngOnInit() {} } diff --git a/src/app/deposit/searchDataprovidersToDeposit.component.ts b/src/app/deposit/searchDataprovidersToDeposit.component.ts index 69b6e5a..f4cffa0 100644 --- a/src/app/deposit/searchDataprovidersToDeposit.component.ts +++ b/src/app/deposit/searchDataprovidersToDeposit.component.ts @@ -1,18 +1,12 @@ import {Component} from '@angular/core'; -import {properties} from "../../environments/environment"; @Component({ selector: 'openaire-search-deposit', template: ` - + ` }) export class OpenaireSearchDataprovidersToDepositComponent { - piwikSiteId = properties.piwikSiteId; - - constructor() {} - - public ngOnInit() {} } diff --git a/src/app/develop/develop.component.ts b/src/app/develop/develop.component.ts index 181d591..e3a892d 100644 --- a/src/app/develop/develop.component.ts +++ b/src/app/develop/develop.component.ts @@ -119,10 +119,7 @@ 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()); - } - + this.subs.push(this._piwikService.trackView(properties, "OpenAIRE").subscribe()); }else { this.navigateToError(); } diff --git a/src/app/landingPages/dataProvider/dataProvider.component.ts b/src/app/landingPages/dataProvider/dataProvider.component.ts index 938df97..361d3e5 100644 --- a/src/app/landingPages/dataProvider/dataProvider.component.ts +++ b/src/app/landingPages/dataProvider/dataProvider.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-dataprovider', - template: ``, + template: ``, }) export class OpenaireDataProviderComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/dataset/dataset.component.ts b/src/app/landingPages/dataset/dataset.component.ts index 9887dc8..6b7f525 100644 --- a/src/app/landingPages/dataset/dataset.component.ts +++ b/src/app/landingPages/dataset/dataset.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-dataset', - template: ``, + template: ``, }) export class OpenaireDatasetComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts b/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts index 0d1c94b..5236c9f 100644 --- a/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts +++ b/src/app/landingPages/htmlProjectReport/htmlProjectReport.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-htmlProjectReport', - template: ``, + template: ``, }) export class OpenaireHtmlProjectReportComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/organization/organization.component.ts b/src/app/landingPages/organization/organization.component.ts index 150642b..bae58be 100644 --- a/src/app/landingPages/organization/organization.component.ts +++ b/src/app/landingPages/organization/organization.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-organization', - template: ``, + template: ``, }) export class OpenaireOrganizationComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/orp/orp.component.ts b/src/app/landingPages/orp/orp.component.ts index 14cd92c..a5d348b 100644 --- a/src/app/landingPages/orp/orp.component.ts +++ b/src/app/landingPages/orp/orp.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-orp', - template: ``, + template: ``, }) export class OpenaireOrpComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/project/project.component.ts b/src/app/landingPages/project/project.component.ts index e0ae715..e1c278b 100644 --- a/src/app/landingPages/project/project.component.ts +++ b/src/app/landingPages/project/project.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-project', - template: ``, + template: ``, }) export class OpenaireProjectComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/publication/publication.component.ts b/src/app/landingPages/publication/publication.component.ts index f4a507c..1d6b86d 100644 --- a/src/app/landingPages/publication/publication.component.ts +++ b/src/app/landingPages/publication/publication.component.ts @@ -1,19 +1,9 @@ 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 7896946..9fa51e2 100644 --- a/src/app/landingPages/result/result.component.ts +++ b/src/app/landingPages/result/result.component.ts @@ -1,11 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-publication', - template: ``, + template: ``, }) export class OpenaireResultComponent{ - piwikSiteId = properties.piwikSiteId; - } diff --git a/src/app/landingPages/service/service.component.ts b/src/app/landingPages/service/service.component.ts index f2c74cf..02d1802 100644 --- a/src/app/landingPages/service/service.component.ts +++ b/src/app/landingPages/service/service.component.ts @@ -1,20 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-dataprovider', - template: ``, + template: ``, }) export class OpenaireServiceComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - - } - - ngOnInit() { -} - - - } diff --git a/src/app/landingPages/software/software.component.ts b/src/app/landingPages/software/software.component.ts index f768724..408862f 100644 --- a/src/app/landingPages/software/software.component.ts +++ b/src/app/landingPages/software/software.component.ts @@ -1,19 +1,8 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-software', - template: ``, + template: ``, }) export class OpenaireSoftwareComponent{ - piwikSiteId = properties.piwikSiteId; - - constructor ( ) { - } - - ngOnInit() { -} - - - } diff --git a/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts b/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts index 0bead0a..273155e 100644 --- a/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts +++ b/src/app/searchPages/advanced/advancedSearchDataProviders.component.ts @@ -8,7 +8,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc selector: 'openaire-advanced-search-dataprovider', template: ` + [hasPrefix]="false" [searchForm]="searchForm"> ` diff --git a/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts b/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts index 1bef7d0..669edfc 100644 --- a/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts +++ b/src/app/searchPages/advanced/advancedSearchOrganizations.component.ts @@ -7,8 +7,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @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 b9ba48d..8dcc913 100644 --- a/src/app/searchPages/advanced/advancedSearchProjects.component.ts +++ b/src/app/searchPages/advanced/advancedSearchProjects.component.ts @@ -6,8 +6,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @Component({ selector: 'openaire-advanced-search-projects', template: ` - + ` diff --git a/src/app/searchPages/advanced/advancedSearchServices.component.ts b/src/app/searchPages/advanced/advancedSearchServices.component.ts index 16a9f7d..e2932bb 100644 --- a/src/app/searchPages/advanced/advancedSearchServices.component.ts +++ b/src/app/searchPages/advanced/advancedSearchServices.component.ts @@ -8,8 +8,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @Component({ selector: 'openaire-advanced-search-service', template: ` - diff --git a/src/app/searchPages/advanced/searchResearchResults.component.ts b/src/app/searchPages/advanced/searchResearchResults.component.ts index 274ef16..c62e7fd 100644 --- a/src/app/searchPages/advanced/searchResearchResults.component.ts +++ b/src/app/searchPages/advanced/searchResearchResults.component.ts @@ -7,7 +7,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc selector: 'openaire-search-results', template: ` + [hasPrefix]="false" [searchForm]="searchForm"> ` }) diff --git a/src/app/searchPages/find/search.component.ts b/src/app/searchPages/find/search.component.ts index 55e4c59..892084c 100644 --- a/src/app/searchPages/find/search.component.ts +++ b/src/app/searchPages/find/search.component.ts @@ -1,17 +1,13 @@ import {Component} from '@angular/core'; -import {properties} from "../../../environments/environment"; import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearchPage.component"; @Component({ selector: 'openaire-search-find', template: ` - `, }) export class OpenaireSearchComponent{ - piwikSiteId = properties.piwikSiteId; public searchForm: SearchForm = {class: 'search-form', dark: true}; - constructor ( ) {} - ngOnInit() {} } diff --git a/src/app/searchPages/simple/searchDataproviders.component.ts b/src/app/searchPages/simple/searchDataproviders.component.ts index 1afff3c..ecef3b8 100644 --- a/src/app/searchPages/simple/searchDataproviders.component.ts +++ b/src/app/searchPages/simple/searchDataproviders.component.ts @@ -6,7 +6,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @Component({ selector: 'openaire-search-dataproviders', template: ` - + ` }) export class OpenaireSearchDataprovidersComponent { diff --git a/src/app/searchPages/simple/searchOrganizations.component.ts b/src/app/searchPages/simple/searchOrganizations.component.ts index b5dab2a..3a81d73 100644 --- a/src/app/searchPages/simple/searchOrganizations.component.ts +++ b/src/app/searchPages/simple/searchOrganizations.component.ts @@ -6,7 +6,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @Component({ selector: 'openaire-search-organizations', template: ` - + ` }) export class OpenaireSearchOrganizationsComponent { diff --git a/src/app/searchPages/simple/searchProjects.component.ts b/src/app/searchPages/simple/searchProjects.component.ts index 2942bf2..b7c9d31 100644 --- a/src/app/searchPages/simple/searchProjects.component.ts +++ b/src/app/searchPages/simple/searchProjects.component.ts @@ -6,7 +6,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @Component({ selector: 'openaire-search-projects', template: ` - + ` }) export class OpenaireSearchProjectsComponent { diff --git a/src/app/searchPages/simple/searchResearchResults.component.ts b/src/app/searchPages/simple/searchResearchResults.component.ts index d581f8f..71238a5 100644 --- a/src/app/searchPages/simple/searchResearchResults.component.ts +++ b/src/app/searchPages/simple/searchResearchResults.component.ts @@ -7,7 +7,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc selector: 'openaire-search-results', template: ` + [hasPrefix]="false" [searchForm]="searchForm"> ` }) export class OpenaireSearchResearchResultsComponent { diff --git a/src/app/searchPages/simple/searchServices.component.ts b/src/app/searchPages/simple/searchServices.component.ts index 22fe433..0e569f5 100644 --- a/src/app/searchPages/simple/searchServices.component.ts +++ b/src/app/searchPages/simple/searchServices.component.ts @@ -7,7 +7,7 @@ import {SearchForm} from "../../openaireLibrary/searchPages/searchUtils/newSearc @Component({ selector: 'openaire-search-services', template: ` - diff --git a/src/app/utils/aggregators.ts b/src/app/utils/aggregators.ts index 5160784..68009c8 100644 --- a/src/app/utils/aggregators.ts +++ b/src/app/utils/aggregators.ts @@ -57,7 +57,7 @@ export class PortalAggregators { } public static getCommunityInfo(): any { - return Portal.getMockCommunityInfo(PortalAggregators.eoscInfo.menuId, PortalAggregators.disabled.entities,PortalAggregators.disabled.pages); + return Portal.getMockCommunityInfo(PortalAggregators.eoscInfo.menuId, PortalAggregators.eoscInfo.title, PortalAggregators.disabled.entities,PortalAggregators.disabled.pages); } } diff --git a/src/environments/environment.beta.ts b/src/environments/environment.beta.ts index 155ef95..886615a 100644 --- a/src/environments/environment.beta.ts +++ b/src/environments/environment.beta.ts @@ -18,6 +18,7 @@ export let properties: EnvProperties = { statisticsAPIURL: "https://beta.services.openaire.eu/stats-api/", statisticsFrameAPIURL: "https://beta.openaire.eu/stats/", statisticsFrameNewAPIURL: "https://beta.services.openaire.eu/stats-tool/", + bipFrameAPIURL: "https://bip.imsi.athenarc.gr/api/impact-chart?id=", useNewStatistisTool: true, claimsAPIURL: "https://beta.services.openaire.eu/claims/rest/claimsService/", searchAPIURLLAst: "https://beta.services.openaire.eu/search/v2/api/", @@ -111,6 +112,7 @@ export let properties: EnvProperties = { reCaptchaSiteKey: null, footerGrantText: "", eoscDataTransferAPI : "https://eosc-data-transfer.vm.fedcloud.eu", + eoscDataTransferLoginUrl:"https://explore.eosc-portal.eu/egi-login-service/openid_connect_login", eoscDataTransferDestinations : [ {label: "EGI dCache (dcache-demo.desy.de)", value: {label : "EGI dCache (dcache-demo.desy.de)", url: "https://dcache-demo.desy.de:2443", id: "dcache", diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 2ce71db..2403203 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -18,6 +18,7 @@ export let properties: EnvProperties = { statisticsAPIURL: "https://beta.services.openaire.eu/stats-api/", statisticsFrameAPIURL: "https://www.openaire.eu/stats/", statisticsFrameNewAPIURL: "https://services.openaire.eu/stats-tool/", + bipFrameAPIURL: "https://bip.imsi.athenarc.gr/api/impact-chart?id=", useNewStatistisTool: true, claimsAPIURL: "https://services.openaire.eu/claims/rest/claimsService/", searchAPIURLLAst: "https://services.openaire.eu/search/v2/api/", diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 93bc491..2b26d4a 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -18,6 +18,7 @@ export let properties: EnvProperties = { statisticsAPIURL: "https://beta.services.openaire.eu/stats-api/", statisticsFrameAPIURL: "https://beta.openaire.eu/stats/", statisticsFrameNewAPIURL: "https://beta.services.openaire.eu/stats-tool/", + bipFrameAPIURL: "https://bip.imsi.athenarc.gr/api/impact-chart?id=", useNewStatistisTool: true, claimsAPIURL: "http://dl170.madgik.di.uoa.gr:8180/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/", searchAPIURLLAst: "http://beta.services.openaire.eu/search/v2/api/",