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