Revision 60233
Added by Konstantina Galouni about 3 years ago
modules/uoa-services-portal/trunk/explore/src/app/orcid/orcid.component.ts | ||
---|---|---|
1 |
import { Component } from '@angular/core'; |
|
2 |
|
|
3 |
@Component({ |
|
4 |
selector: 'openaire-orcid', |
|
5 |
template: ` |
|
6 |
<orcid></orcid> |
|
7 |
` |
|
8 |
}) |
|
9 |
|
|
10 |
export class OpenaireOrcidComponent {} |
modules/uoa-services-portal/trunk/explore/src/app/orcid/orcid.module.ts | ||
---|---|---|
1 |
import { NgModule } from '@angular/core'; |
|
2 |
import { CommonModule } from '@angular/common'; |
|
3 |
|
|
4 |
import {OpenaireOrcidComponent} from './orcid.component'; |
|
5 |
import {OrcidRoutingModule} from './orcid-routing.module'; |
|
6 |
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; |
|
7 |
import {FormsModule} from "@angular/forms"; |
|
8 |
import {OrcidModule} from "../openaireLibrary/orcid/orcid.module"; |
|
9 |
|
|
10 |
@NgModule({ |
|
11 |
imports: [ |
|
12 |
CommonModule, FormsModule, |
|
13 |
OrcidModule, OrcidRoutingModule |
|
14 |
], |
|
15 |
declarations: [ |
|
16 |
OpenaireOrcidComponent |
|
17 |
], |
|
18 |
providers: [PreviousRouteRecorder], |
|
19 |
exports: [ |
|
20 |
OpenaireOrcidComponent |
|
21 |
] |
|
22 |
}) |
|
23 |
export class LibOrcidModule { } |
modules/uoa-services-portal/trunk/explore/src/app/orcid/orcid-routing.module.ts | ||
---|---|---|
1 |
import { NgModule } from '@angular/core'; |
|
2 |
import { RouterModule } from '@angular/router'; |
|
3 |
|
|
4 |
import {OpenaireOrcidComponent} from './orcid.component'; |
|
5 |
import {FreeGuard} from "../openaireLibrary/login/freeGuard.guard"; |
|
6 |
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; |
|
7 |
|
|
8 |
@NgModule({ |
|
9 |
imports: [ |
|
10 |
RouterModule.forChild([ |
|
11 |
{ path: '', component: OpenaireOrcidComponent, canActivate: [FreeGuard], |
|
12 |
canDeactivate: [PreviousRouteRecorder] } |
|
13 |
|
|
14 |
]) |
|
15 |
] |
|
16 |
}) |
|
17 |
export class OrcidRoutingModule { } |
modules/uoa-services-portal/trunk/explore/src/environments/environment.beta.ts | ||
---|---|---|
23 | 23 |
searchDataciteAPIURL: "https://api.datacite.org/works", |
24 | 24 |
searchOrcidURL: "https://pub.orcid.org/v2.1/", |
25 | 25 |
orcidURL: "https://orcid.org/", |
26 |
orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", |
|
26 | 27 |
doiURL: "https://dx.doi.org/", |
27 | 28 |
pmcURL: "http://europepmc.org/articles/", |
28 | 29 |
pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", |
modules/uoa-services-portal/trunk/explore/src/environments/environment.test.ts | ||
---|---|---|
23 | 23 |
searchDataciteAPIURL: "https://api.datacite.org/works", |
24 | 24 |
searchOrcidURL: "https://pub.orcid.org/v2.1/", |
25 | 25 |
orcidURL: "https://orcid.org/", |
26 |
orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", |
|
26 | 27 |
doiURL: "https://dx.doi.org/", |
27 | 28 |
pmcURL: "http://europepmc.org/articles/", |
28 | 29 |
pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", |
modules/uoa-services-portal/trunk/explore/src/environments/environment.ts | ||
---|---|---|
28 | 28 |
searchDataciteAPIURL: "https://api.datacite.org/works", |
29 | 29 |
searchOrcidURL: "https://pub.orcid.org/v2.1/", |
30 | 30 |
orcidURL: "https://orcid.org/", |
31 |
orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", |
|
31 | 32 |
doiURL: "https://dx.doi.org/", |
32 | 33 |
pmcURL: "http://europepmc.org/articles/", |
33 | 34 |
pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", |
modules/uoa-services-portal/trunk/explore/src/environments/environment.prod.ts | ||
---|---|---|
23 | 23 |
searchDataciteAPIURL: "https://api.datacite.org/works", |
24 | 24 |
searchOrcidURL: "https://pub.orcid.org/v2.1/", |
25 | 25 |
orcidURL: "https://orcid.org/", |
26 |
orcidAPIURL: "http://duffy.di.uoa.gr:8080/uoa-orcid-service/orcid/", |
|
26 | 27 |
doiURL: "https://dx.doi.org/", |
27 | 28 |
pmcURL: "http://europepmc.org/articles/", |
28 | 29 |
pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", |
Also available in: Unified diff
[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".