]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts
LP1842297: follow-up to use BasicAdminPageComponent for openathens screen
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminLocalSplashComponent} from './admin-local-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {AddressAlertComponent} from './address-alert.component';
6 import {AdminCarouselComponent} from './admin-carousel.component';
7 import {AdminStaffPortalPageComponent} from './staff_portal_page/staff-portal-page.component';
8 import {StandingPenaltyComponent} from './standing-penalty.component';
9 import {CourseTermMapComponent} from './course-reserves/course-term-map.component';
10
11 const routes: Routes = [{
12     path: 'splash',
13     component: AdminLocalSplashComponent
14 }, {
15     path: 'config/hold_matrix_matchpoint',
16     component: BasicAdminPageComponent,
17     data: [{schema: 'config', table: 'hold_matrix_matchpoint', disableOrgFilter: true}]
18 }, {
19     path: 'actor/address_alert',
20     component: AddressAlertComponent
21 }, {
22     path: 'asset/copy_location_order',
23     loadChildren: () =>
24       import('./copy-loc-order/copy-loc-order.module').then(m => m.CopyLocOrderModule)
25 }, {
26     path: 'asset/copy_location',
27     component: BasicAdminPageComponent,
28     data: [{
29         schema: 'asset',
30         table: 'copy_location',
31         fieldOrder: 'owning_lib,name,opac_visible,circulate,holdable,hold_verify,checkin_alert,deleted,label_prefix,label_suffix,url,id'}]
32 }, {
33     path: 'asset/shelving_location_groups',
34     loadChildren: () =>
35       import('./shelving_location_groups/shelving_location_groups.module').then(m => m.ShelvingLocationGroupsModule)
36 }, {
37     path: 'container/carousel',
38     component: AdminCarouselComponent
39 }, {
40     path: 'asset/course_list',
41     loadChildren: () =>
42       import('./course-reserves/course-reserves.module').then(m => m.CourseReservesModule)
43 }, {
44     path: 'asset/course_module_term_course_map',
45     component: CourseTermMapComponent
46 }, {
47     path: 'actor/search_filter_group',
48     loadChildren: () =>
49       import('./search-filter/search-filter-group.module').then(m => m.SearchFilterGroupModule)
50 }, {
51     path: 'config/circ_limit_set',
52     loadChildren: () =>
53       import('./circ_limit_set/circ_limit_set.module').then(m => m.CircLimitSetModule)
54 }, {
55     path: 'config/openathens_identity',
56     component: BasicAdminPageComponent,
57     data: [{
58         schema: 'config',
59         table: 'openathens_identity',
60         fieldOrder: 'id,org_unit,active,api_key,connection_id,connection_uri,auto_signon_enabled,auto_signout_enabled,' +
61                     'unique_identifier,display_name,release_prefix,release_first_given_name,release_second_given_name,' +
62                     'release_family_name,release_suffix,release_email,release_home_ou,release_barcode',
63         defaultNewRecord: {
64             active: true,
65             auto_signon_enabled: true,
66             unique_identifier: 1,
67             display_name: 1
68         }
69     }]
70 }, {
71     path: 'config/standing_penalty',
72     component: StandingPenaltyComponent
73 }, {
74     path: 'config/ui_staff_portal_page_entry',
75     component: AdminStaffPortalPageComponent
76 }, {
77     path: 'action/survey',
78     loadChildren: () =>
79       import('./survey/survey.module').then(m => m.SurveyModule)
80 }, {
81     path: 'action_trigger/event_definition',
82     loadChildren: () =>
83       import('./triggers/triggers.module').then(m => m.TriggersModule)
84 }, {
85     path: 'config/idl_field_doc',
86     loadChildren: () => import('./field-documentation/field-documentation.module')
87       .then(m => m.FieldDocumentationModule)
88 }, {
89     path: ':schema/:table',
90     component: BasicAdminPageComponent
91 }];
92
93 @NgModule({
94   imports: [RouterModule.forChild(routes)],
95   exports: [RouterModule]
96 })
97
98 export class AdminLocalRoutingModule {}