2023-11-03 09:51:59 +01:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {Route, RouterModule} from '@angular/router';
|
|
|
|
import {CommonModule} from "@angular/common";
|
|
|
|
import {ResearcherComponent} from "./researcher.component";
|
|
|
|
import {SearchOrcidServiceModule} from "../openaireLibrary/claims/claim-utils/service/searchOrcidService.module";
|
|
|
|
|
|
|
|
const routes: Route[] = [
|
|
|
|
{
|
|
|
|
path: '', component: ResearcherComponent, children: [
|
|
|
|
{path: '', loadChildren: () => import('./search-researcher/search-researcher.module').then(m => m.SearchResearcherModule)},
|
|
|
|
{path: ':stakeholder', loadChildren: () => import('./author/author.module').then(m => m.AuthorModule)},
|
2023-11-13 10:20:58 +01:00
|
|
|
{path: ':stakeholder/search', loadChildren: () => import('../search/resultLanding.module').then(m => m.ResultLandingModule)}
|
2023-11-03 09:51:59 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [CommonModule, RouterModule.forChild(routes), SearchOrcidServiceModule],
|
|
|
|
declarations: [ResearcherComponent],
|
|
|
|
exports: [ResearcherComponent],
|
|
|
|
})
|
|
|
|
export class ResearcherModule { }
|
|
|
|
|
|
|
|
|