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";
|
2023-11-13 16:43:54 +01:00
|
|
|
import {SearchResearchResultsServiceModule} from "../openaireLibrary/services/searchResearchResultsService.module";
|
2023-11-14 14:07:34 +01:00
|
|
|
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
|
2023-12-06 11:30:32 +01:00
|
|
|
import {IconsModule} from '../openaireLibrary/utils/icons/icons.module';
|
2023-12-12 08:51:30 +01:00
|
|
|
import {IconsService} from '../openaireLibrary/utils/icons/icons.service';
|
|
|
|
import {open_access} from '../openaireLibrary/utils/icons/icons';
|
2023-11-03 09:51:59 +01:00
|
|
|
|
|
|
|
const routes: Route[] = [
|
|
|
|
{
|
|
|
|
path: '', component: ResearcherComponent, children: [
|
|
|
|
{path: '', loadChildren: () => import('./search-researcher/search-researcher.module').then(m => m.SearchResearcherModule)},
|
2023-12-19 16:23:59 +01:00
|
|
|
{path: ':stakeholder', loadChildren: () => import('./author/author.module').then(m => m.AuthorModule)},
|
|
|
|
{path: ':stakeholder/search', loadChildren: () => import('../search/resultLanding.module').then(m => m.ResultLandingModule)}
|
2023-11-03 09:51:59 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2023-12-06 11:30:32 +01:00
|
|
|
imports: [CommonModule, RouterModule.forChild(routes), SearchOrcidServiceModule, SearchResearchResultsServiceModule, LoadingModule, IconsModule],
|
2023-11-03 09:51:59 +01:00
|
|
|
declarations: [ResearcherComponent],
|
|
|
|
exports: [ResearcherComponent],
|
|
|
|
})
|
2023-12-12 08:51:30 +01:00
|
|
|
export class ResearcherModule {
|
|
|
|
constructor(private iconsService: IconsService) {
|
|
|
|
this.iconsService.registerIcons([open_access]);
|
|
|
|
}
|
|
|
|
}
|
2023-11-03 09:51:59 +01:00
|
|
|
|
|
|
|
|