|
|
|
@ -2,68 +2,56 @@ import {NgModule} from '@angular/core';
|
|
|
|
|
import {Router, RouterModule, Routes} from '@angular/router';
|
|
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
|
|
|
|
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
|
|
|
|
|
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule)},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/result',
|
|
|
|
|
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/publication',
|
|
|
|
|
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/dataset',
|
|
|
|
|
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/software',
|
|
|
|
|
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/other',
|
|
|
|
|
loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/project',
|
|
|
|
|
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/dataprovider',
|
|
|
|
|
loadChildren: () => import('./landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/service',
|
|
|
|
|
loadChildren: () => import('./landingPages/service/libService.module').then(m => m.LibServiceModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/service/libService.module').then(m => m.LibServiceModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/organization',
|
|
|
|
|
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule), data: { showHeader: true}
|
|
|
|
|
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule), data: { showHeader: true, hasMenuSearchBar: true}
|
|
|
|
|
},
|
|
|
|
|
// Search Pages
|
|
|
|
|
{
|
|
|
|
|
path: 'search/find',
|
|
|
|
|
loadChildren: () => import('./searchPages/find/libSearch.module').then(m => m.LibMainSearchModule)
|
|
|
|
|
path: 'search/find', loadChildren: () => import('./searchPages/find/libSearch.module').then(m => m.LibMainSearchModule)
|
|
|
|
|
},
|
|
|
|
|
{path: 'search/find/publications', component: PageURLResolverComponent},
|
|
|
|
|
{path: 'search/find/datasets', component: PageURLResolverComponent},
|
|
|
|
|
{path: 'search/find/software', component: PageURLResolverComponent},
|
|
|
|
|
{path: 'search/find/other', component: PageURLResolverComponent},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/find/research-outcomes',
|
|
|
|
|
loadChildren: () => import('./searchPages/simple/searchResearchResults.module').then(m => m.OpenaireSearchResearchResultsModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/find/projects',
|
|
|
|
|
loadChildren: () => import('./searchPages/simple/searchProjects.module').then(m => m.LibSearchProjectsModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/find/dataproviders',
|
|
|
|
|
loadChildren: () => import('./searchPages/simple/searchDataProviders.module').then(m => m.LibSearchDataProvidersModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/find/services',
|
|
|
|
|
loadChildren: () => import('./searchPages/simple/searchServices.module').then(m => m.LibSearchServicesModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/find/organizations',
|
|
|
|
|
loadChildren: () => import('./searchPages/simple/searchOrganizations.module').then(m => m.LibSearchOrganizationsModule)
|
|
|
|
|
path: 'search/find/:entity', loadChildren: () => import('./searchPages/find/libSearch.module').then(m => m.LibMainSearchModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'search/advanced/research-outcomes',
|
|
|
|
|