2020-11-23 13:28:46 +01:00
|
|
|
import {NgModule} from '@angular/core';
|
2021-04-21 14:36:46 +02:00
|
|
|
import {Routes, RouterModule, PreloadAllModules} from '@angular/router';
|
2020-11-23 13:28:46 +01:00
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
2019-05-23 15:38:44 +02:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2021-07-14 13:47:56 +02:00
|
|
|
{path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule)},
|
2020-11-23 13:28:46 +01:00
|
|
|
{
|
|
|
|
path: 'search/result',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/publication',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/dataset',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/software',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/other',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/project',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/dataprovider',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/organization',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/find/libSearch.module').then(m => m.LibMainSearchModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/research-outcomes',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchResearchResults.module').then(m => m.OpenaireSearchResearchResultsModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/projects',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchProjects.module').then(m => m.LibSearchProjectsModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/dataproviders',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchDataProviders.module').then(m => m.LibSearchDataProvidersModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/organizations',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchOrganizations.module').then(m => m.LibSearchOrganizationsModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/research-outcomes',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/searchResearchResults.module').then(m => m.OpenaireAdvancedSearchResearchResultsModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/organizations',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/advancedSearchOrganizations.module').then(m => m.LibAdvancedSearchOrganizationsModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/dataproviders',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/advancedSearchDataProviders.module').then(m => m.LibAdvancedSearchDataProvidersModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/projects',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/advancedSearchProjects.module').then(m => m.LibAdvancedSearchProjectsModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'project-report',
|
2021-07-14 13:47:56 +02:00
|
|
|
loadChildren: () => import('./landingPages/htmlProjectReport/libHtmlProjectReport.module').then(m => m.LibHtmlProjectReportModule)
|
2020-11-23 13:28:46 +01:00
|
|
|
},
|
|
|
|
// Deposit Pages
|
|
|
|
{ path: 'participate/deposit-datasets', redirectTo: 'participate/deposit/learn-how', pathMatch: 'full'},
|
|
|
|
{ path: 'participate/deposit-datasets-result', redirectTo: 'participate/deposit/learn-how', pathMatch: 'full'},
|
|
|
|
{ path: 'participate/deposit-subject-result', redirectTo: 'participate/deposit/learn-how', pathMatch: 'full'},
|
|
|
|
{ path: 'participate/deposit-publications', redirectTo: 'participate/deposit/learn-how', pathMatch: 'full'},
|
|
|
|
{ path: 'participate/deposit-publications-result', redirectTo: 'participate/deposit/learn-how', pathMatch: 'full'},
|
|
|
|
|
2021-07-14 13:47:56 +02:00
|
|
|
{ path: 'participate/deposit/learn-how', loadChildren: () => import('./deposit/deposit.module').then(m => m.LibDepositModule)},
|
|
|
|
{ path: 'participate/deposit/search', loadChildren: () => import('./deposit/searchDataprovidersToDeposit.module').then(m => m.LibSearchDataprovidersToDepositModule)},
|
2020-11-23 13:28:46 +01:00
|
|
|
// Linking Pages
|
2021-07-14 13:47:56 +02:00
|
|
|
{ path: 'myclaims', loadChildren: () => import('./claims/myClaims/myClaims.module').then(m => m.LibMyClaimsModule)},
|
|
|
|
{ path: 'participate/claim', loadChildren: () => import('./claims/linking/linkingGeneric.module').then(m => m.LibLinkingGenericModule)},
|
|
|
|
{ path: 'participate/direct-claim', loadChildren: () => import('./claims/directLinking/directLinking.module').then(m => m.LibDirectLinkingModule)},
|
|
|
|
{path: 'develop', loadChildren: () => import('./develop/develop.module').then(m => m.DevelopModule)},
|
|
|
|
{path: 'user-info', loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule)},
|
2020-11-23 13:28:46 +01:00
|
|
|
{path: 'error', component: OpenaireErrorPageComponent},
|
|
|
|
{path: '**', pathMatch: 'full', component: OpenaireErrorPageComponent}
|
2019-05-23 15:38:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2021-04-21 14:36:46 +02:00
|
|
|
imports: [RouterModule.forRoot(routes, {
|
|
|
|
onSameUrlNavigation: "reload",
|
|
|
|
})],
|
2021-04-01 16:59:03 +02:00
|
|
|
exports: [RouterModule]
|
2019-05-23 15:38:44 +02:00
|
|
|
})
|
2020-11-23 13:28:46 +01:00
|
|
|
export class AppRoutingModule {
|
|
|
|
}
|