From 1f075b3a79a1ab33424b0ca0aafc462657ccd18d Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 13 Jan 2021 18:46:30 +0000 Subject: [PATCH] [Trunk | Explore]: 1. app/orcid: Add orcid folder and files (calling library files from src/app/openaireLibrary/orcid). 2. environment.ts & environment.test.ts & environment.prod.ts & environment.beta.ts: Set "orcidAPIURL". git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@60233 d315682c-612b-4755-9ff5-7f18f6832af3 --- explore/src/app/orcid/orcid-routing.module.ts | 17 ++++++++++++++ explore/src/app/orcid/orcid.component.ts | 10 ++++++++ explore/src/app/orcid/orcid.module.ts | 23 +++++++++++++++++++ explore/src/environments/environment.beta.ts | 1 + explore/src/environments/environment.prod.ts | 1 + explore/src/environments/environment.test.ts | 1 + explore/src/environments/environment.ts | 1 + 7 files changed, 54 insertions(+) create mode 100644 explore/src/app/orcid/orcid-routing.module.ts create mode 100644 explore/src/app/orcid/orcid.component.ts create mode 100644 explore/src/app/orcid/orcid.module.ts diff --git a/explore/src/app/orcid/orcid-routing.module.ts b/explore/src/app/orcid/orcid-routing.module.ts new file mode 100644 index 00000000..3768510b --- /dev/null +++ b/explore/src/app/orcid/orcid-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { RouterModule } from '@angular/router'; + +import {OpenaireOrcidComponent} from './orcid.component'; +import {FreeGuard} from "../openaireLibrary/login/freeGuard.guard"; +import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; + +@NgModule({ + imports: [ + RouterModule.forChild([ + { path: '', component: OpenaireOrcidComponent, canActivate: [FreeGuard], + canDeactivate: [PreviousRouteRecorder] } + + ]) + ] +}) +export class OrcidRoutingModule { } diff --git a/explore/src/app/orcid/orcid.component.ts b/explore/src/app/orcid/orcid.component.ts new file mode 100644 index 00000000..65976b8a --- /dev/null +++ b/explore/src/app/orcid/orcid.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'openaire-orcid', + template: ` + + ` +}) + +export class OpenaireOrcidComponent {} \ No newline at end of file diff --git a/explore/src/app/orcid/orcid.module.ts b/explore/src/app/orcid/orcid.module.ts new file mode 100644 index 00000000..04c36917 --- /dev/null +++ b/explore/src/app/orcid/orcid.module.ts @@ -0,0 +1,23 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import {OpenaireOrcidComponent} from './orcid.component'; +import {OrcidRoutingModule} from './orcid-routing.module'; +import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; +import {FormsModule} from "@angular/forms"; +import {OrcidModule} from "../openaireLibrary/orcid/orcid.module"; + +@NgModule({ + imports: [ + CommonModule, FormsModule, + OrcidModule, OrcidRoutingModule + ], + declarations: [ + OpenaireOrcidComponent + ], + providers: [PreviousRouteRecorder], + exports: [ + OpenaireOrcidComponent + ] +}) +export class LibOrcidModule { } diff --git a/explore/src/environments/environment.beta.ts b/explore/src/environments/environment.beta.ts index 2acb8e9b..9a4719ca 100644 --- a/explore/src/environments/environment.beta.ts +++ b/explore/src/environments/environment.beta.ts @@ -23,6 +23,7 @@ export let properties: EnvProperties = { searchDataciteAPIURL: "https://api.datacite.org/works", searchOrcidURL: "https://pub.orcid.org/v2.1/", orcidURL: "https://orcid.org/", + orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", doiURL: "https://dx.doi.org/", pmcURL: "http://europepmc.org/articles/", pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", diff --git a/explore/src/environments/environment.prod.ts b/explore/src/environments/environment.prod.ts index dcd4176e..c9a93b7b 100644 --- a/explore/src/environments/environment.prod.ts +++ b/explore/src/environments/environment.prod.ts @@ -23,6 +23,7 @@ export let properties: EnvProperties = { searchDataciteAPIURL: "https://api.datacite.org/works", searchOrcidURL: "https://pub.orcid.org/v2.1/", orcidURL: "https://orcid.org/", + orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", doiURL: "https://dx.doi.org/", pmcURL: "http://europepmc.org/articles/", pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", diff --git a/explore/src/environments/environment.test.ts b/explore/src/environments/environment.test.ts index dfb83880..76ddc857 100644 --- a/explore/src/environments/environment.test.ts +++ b/explore/src/environments/environment.test.ts @@ -23,6 +23,7 @@ export let properties: EnvProperties = { searchDataciteAPIURL: "https://api.datacite.org/works", searchOrcidURL: "https://pub.orcid.org/v2.1/", orcidURL: "https://orcid.org/", + orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", doiURL: "https://dx.doi.org/", pmcURL: "http://europepmc.org/articles/", pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", diff --git a/explore/src/environments/environment.ts b/explore/src/environments/environment.ts index c0920c0e..14512358 100644 --- a/explore/src/environments/environment.ts +++ b/explore/src/environments/environment.ts @@ -28,6 +28,7 @@ export let properties: EnvProperties = { searchDataciteAPIURL: "https://api.datacite.org/works", searchOrcidURL: "https://pub.orcid.org/v2.1/", orcidURL: "https://orcid.org/", + orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", doiURL: "https://dx.doi.org/", pmcURL: "http://europepmc.org/articles/", pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/",