1 |
60772
|
k.triantaf
|
import {NgModule} from '@angular/core';
|
2 |
61012
|
argiro.kok
|
import { RouterModule, Routes} from '@angular/router';
|
3 |
60772
|
k.triantaf
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
4 |
58392
|
argiro.kok
|
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
5 |
60016
|
argiro.kok
|
import {IsCommunity} from "./openaireLibrary/connect/communityGuard/isCommunity.guard";
|
6 |
50681
|
argiro.kok
|
|
7 |
|
|
const routes: Routes = [
|
8 |
60879
|
konstantin
|
// ORCID Pages
|
9 |
61109
|
k.triantaf
|
{path: 'orcid', loadChildren: () => import('./orcid/orcid.module').then(m => m.LibOrcidModule)},
|
10 |
|
|
{path: 'my-orcid-links', loadChildren: () => import('./orcid/my-orcid-links/myOrcidLinks.module').then(m => m.LibMyOrcidLinksModule)},
|
11 |
60879
|
konstantin
|
|
12 |
60772
|
k.triantaf
|
/** Other Pages */
|
13 |
61109
|
k.triantaf
|
{path: '', loadChildren: () => import('./communitywrapper/communityWrapper.module').then(m => m.CommunityWrapperModule)},
|
14 |
60772
|
k.triantaf
|
{path: 'about', redirectTo: 'about/learn-how', pathMatch: 'full'},
|
15 |
61109
|
k.triantaf
|
{path: 'about/learn-how', loadChildren: () => import('./learn-how/learn-how.module').then(m => m.LearnHowModule)},
|
16 |
|
|
{path: 'about/learn-in-depth', loadChildren: () => import('./learn-how/learnInDepth/learn-in-depth.module').then(m => m.LearnInDepthModule)},
|
17 |
|
|
{path: 'about/faq', loadChildren: () => import('./learn-how/faqs/faqs.module').then(m => m.FaqsModule)},
|
18 |
|
|
{path: 'contact-us', loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule)},
|
19 |
|
|
{path: 'invite', loadChildren: () => import('./utils/subscribe/invite/invite.module').then(m => m.InviteModule)},
|
20 |
|
|
{path: 'content', loadChildren: () => import('./content/contentPage.module').then(m => m.ContentPageModule), canActivate: [IsCommunity]},
|
21 |
60772
|
k.triantaf
|
{
|
22 |
|
|
path: 'organizations',
|
23 |
61109
|
k.triantaf
|
loadChildren: () => import('./htmlPages/organizations/organizationsPage.module').then(m => m.OrganizationsPageModule),
|
24 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
25 |
|
|
},
|
26 |
|
|
{
|
27 |
|
|
path: 'publications',
|
28 |
61109
|
k.triantaf
|
loadChildren: () => import('./htmlPages/publications/publications-page.module').then(m => m.PublicationsPageModule),
|
29 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
30 |
|
|
},
|
31 |
|
|
{
|
32 |
|
|
path: 'projects',
|
33 |
61109
|
k.triantaf
|
loadChildren: () => import('./htmlPages/projects/projectsPage.module').then(m => m.ProjectsPageModule),
|
34 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
35 |
|
|
},
|
36 |
|
|
{
|
37 |
|
|
path: 'national-bulletins',
|
38 |
61109
|
k.triantaf
|
loadChildren: () => import('./htmlPages/nationalBulletins/nationalBulletinsPage.module').then(m => m.NaionalBulletinPageModule),
|
39 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
40 |
|
|
},
|
41 |
61109
|
k.triantaf
|
{path: 'curators', loadChildren: () => import('./curators/curators.module').then(m => m.CuratorsModule), canActivate: [IsCommunity]},
|
42 |
|
|
{path: 'subjects', loadChildren: () => import('./subjects/subjects.module').then(m => m.SubjectsModule), canActivate: [IsCommunity]},
|
43 |
|
|
{path: 'myCommunities', loadChildren: () => import('./my-communities/my-communities.module').then(m => m.MyCommunitiesModule)},
|
44 |
60772
|
k.triantaf
|
/** Testing Page for help contents */
|
45 |
61109
|
k.triantaf
|
{path: 'helper-test', loadChildren: () => import('./helper-test/helper-test.module').then(m => m.HelperTestModule)},
|
46 |
60772
|
k.triantaf
|
/** Landing Pages */
|
47 |
|
|
{
|
48 |
|
|
path: 'search/result',
|
49 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule),
|
50 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
51 |
|
|
},
|
52 |
|
|
{
|
53 |
|
|
path: 'search/publication',
|
54 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule),
|
55 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
56 |
|
|
},
|
57 |
|
|
{
|
58 |
|
|
path: 'search/dataset',
|
59 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule),
|
60 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
61 |
|
|
},
|
62 |
|
|
{
|
63 |
|
|
path: 'search/software',
|
64 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule),
|
65 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
66 |
|
|
},
|
67 |
61109
|
k.triantaf
|
{path: 'search/other', loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule), canActivate: [IsCommunity]},
|
68 |
60772
|
k.triantaf
|
{
|
69 |
|
|
path: 'search/project',
|
70 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule),
|
71 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
72 |
|
|
},
|
73 |
|
|
{
|
74 |
|
|
path: 'search/dataprovider',
|
75 |
61109
|
k.triantaf
|
loadChildren: () => import('././landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule),
|
76 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
77 |
|
|
},
|
78 |
|
|
{
|
79 |
|
|
path: 'search/organization',
|
80 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule),
|
81 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
82 |
|
|
},
|
83 |
|
|
{
|
84 |
|
|
path: 'project-report',
|
85 |
61109
|
k.triantaf
|
loadChildren: () => import('./landingPages/htmlProjectReport/libHtmlProjectReport.module').then(m => m.LibHtmlProjectReportModule)
|
86 |
60772
|
k.triantaf
|
},
|
87 |
|
|
/** Search Pages */
|
88 |
|
|
{path: 'search/find', redirectTo: 'search/find/research-outcomes', pathMatch: 'full'},
|
89 |
|
|
|
90 |
|
|
{
|
91 |
|
|
path: 'search/find/communities',
|
92 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/communities/searchCommunities.module').then(m => m.SearchCommunitiesModule)
|
93 |
60772
|
k.triantaf
|
},
|
94 |
|
|
{
|
95 |
|
|
path: 'search/find/research-outcomes',
|
96 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/simple/searchResearchResults.module').then(m => m.OpenaireSearchResearchResultsModule),
|
97 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
98 |
|
|
},
|
99 |
|
|
{path: 'search/find/publications', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
100 |
|
|
{path: 'search/find/datasets', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
101 |
|
|
{path: 'search/find/software', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
102 |
|
|
{path: 'search/find/other', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
103 |
|
|
{
|
104 |
|
|
path: 'search/find/projects',
|
105 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/simple/searchProjects.module').then(m => m.LibSearchProjectsModule),
|
106 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
107 |
|
|
},
|
108 |
|
|
{
|
109 |
|
|
path: 'search/find/dataproviders',
|
110 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/simple/searchDataProviders.module').then(m => m.LibSearchDataProvidersModule),
|
111 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
112 |
|
|
},
|
113 |
|
|
/** Advanced Search Pages */
|
114 |
|
|
{
|
115 |
|
|
path: 'search/advanced/research-outcomes',
|
116 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/advanced/searchResearchResults.module').then(m => m.OpenaireAdvancedSearchResearchResultsModule),
|
117 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
118 |
|
|
},
|
119 |
|
|
{path: 'search/advanced/publications', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
120 |
|
|
{path: 'search/advanced/datasets', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
121 |
|
|
{path: 'search/advanced/software', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
122 |
|
|
{path: 'search/advanced/other', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
123 |
|
|
{
|
124 |
|
|
path: 'search/advanced/organizations',
|
125 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/advanced/advancedSearchOrganizations.module').then(m => m.LibAdvancedSearchOrganizationsModule),
|
126 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
127 |
|
|
},
|
128 |
|
|
{
|
129 |
|
|
path: 'search/advanced/dataproviders',
|
130 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/advanced/advancedSearchDataProviders.module').then(m => m.LibAdvancedSearchDataProvidersModule),
|
131 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
132 |
|
|
},
|
133 |
|
|
{
|
134 |
|
|
path: 'search/advanced/projects',
|
135 |
61109
|
k.triantaf
|
loadChildren: () => import('./searchPages/advanced/advancedSearchProjects.module').then(m => m.LibAdvancedSearchProjectsModule),
|
136 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
137 |
|
|
},
|
138 |
|
|
/** Deposit Pages */
|
139 |
61119
|
k.triantaf
|
{ path: 'participate/deposit-datasets',
|
140 |
60772
|
k.triantaf
|
redirectTo: 'participate/deposit/learn-how',
|
141 |
61119
|
k.triantaf
|
pathMatch: 'full' },
|
142 |
|
|
{ path: 'participate/deposit-datasets-result',
|
143 |
60772
|
k.triantaf
|
redirectTo: 'participate/deposit/learn-how',
|
144 |
61119
|
k.triantaf
|
pathMatch: 'full' },
|
145 |
|
|
{ path: 'participate/deposit-subject-result',
|
146 |
60772
|
k.triantaf
|
redirectTo: 'participate/deposit/learn-how',
|
147 |
61119
|
k.triantaf
|
pathMatch: 'full' },
|
148 |
|
|
{ path: 'participate/deposit-publications',
|
149 |
60772
|
k.triantaf
|
redirectTo: 'participate/deposit/learn-how',
|
150 |
61119
|
k.triantaf
|
pathMatch: 'full' },
|
151 |
|
|
{ path: 'participate/deposit-publications-result',
|
152 |
60772
|
k.triantaf
|
redirectTo: 'participate/deposit/learn-how',
|
153 |
61119
|
k.triantaf
|
pathMatch: 'full' },
|
154 |
|
|
{ path: 'participate/share-zenodo',
|
155 |
60772
|
k.triantaf
|
redirectTo: '/participate/deposit/zenodo',
|
156 |
61119
|
k.triantaf
|
pathMatch: 'full' },
|
157 |
60772
|
k.triantaf
|
{
|
158 |
|
|
path: 'participate/deposit/learn-how',
|
159 |
61109
|
k.triantaf
|
loadChildren: () => import('./deposit/deposit.module').then(m => m.LibDepositModule),
|
160 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
161 |
|
|
},
|
162 |
|
|
{
|
163 |
|
|
path: 'participate/deposit/search',
|
164 |
61109
|
k.triantaf
|
loadChildren: () => import('./deposit/searchDataprovidersToDeposit.module').then(m => m.LibSearchDataprovidersToDepositModule),
|
165 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
166 |
|
|
},
|
167 |
|
|
{
|
168 |
|
|
path: 'participate/deposit/zenodo',
|
169 |
61109
|
k.triantaf
|
loadChildren: () => import('./deposit/zenodo/shareInZenodo.module').then(m => m.ShareInZenodoModule),
|
170 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
171 |
|
|
},
|
172 |
|
|
/** Linking Pages */
|
173 |
61109
|
k.triantaf
|
{path: 'myclaims', loadChildren: () => import('./claims/myClaims/myClaims.module').then(m => m.LibMyClaimsModule), canActivate: [IsCommunity]},
|
174 |
60772
|
k.triantaf
|
{
|
175 |
|
|
path: 'participate/claim',
|
176 |
61109
|
k.triantaf
|
loadChildren: () => import('./claims/linking/linkingGeneric.module').then(m => m.LibLinkingGenericModule),
|
177 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
178 |
|
|
},
|
179 |
|
|
{
|
180 |
|
|
path: 'participate/direct-claim',
|
181 |
61109
|
k.triantaf
|
loadChildren: () => import('./claims/directLinking/directLinking.module').then(m => m.LibDirectLinkingModule),
|
182 |
60772
|
k.triantaf
|
canActivate: [IsCommunity]
|
183 |
|
|
},
|
184 |
60815
|
argiro.kok
|
{
|
185 |
|
|
path: 'preview',
|
186 |
61109
|
k.triantaf
|
loadChildren: () => import('./demo/demo.module').then(m => m.DemoModule),
|
187 |
60815
|
argiro.kok
|
canActivate: [IsCommunity]
|
188 |
|
|
},
|
189 |
60772
|
k.triantaf
|
/** help pages - do not exist in Admin portal/api/db */
|
190 |
61109
|
k.triantaf
|
{path: 'reload', loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule)},
|
191 |
|
|
{path: 'user-info', loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule)},
|
192 |
60772
|
k.triantaf
|
{path: 'error', component: OpenaireErrorPageComponent},
|
193 |
61109
|
k.triantaf
|
{path: 'theme', loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule)},
|
194 |
60772
|
k.triantaf
|
{path: '**', pathMatch: 'full', component: OpenaireErrorPageComponent}
|
195 |
50681
|
argiro.kok
|
];
|
196 |
|
|
|
197 |
|
|
@NgModule({
|
198 |
60927
|
k.triantaf
|
imports: [RouterModule.forRoot(routes, {
|
199 |
61119
|
k.triantaf
|
onSameUrlNavigation: "reload"
|
200 |
60927
|
k.triantaf
|
})],
|
201 |
60772
|
k.triantaf
|
exports: [RouterModule]
|
202 |
50681
|
argiro.kok
|
})
|
203 |
60772
|
k.triantaf
|
export class AppRoutingModule {
|
204 |
|
|
}
|