]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
LP#1989151: Add links to secondary management interfaces
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / server / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminServerSplashComponent} from './admin-server-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {OrgUnitTypeComponent} from './org-unit-type.component';
6 import {PrintTemplateComponent} from './print-template.component';
7 import {PermGroupTreeComponent} from './perm-group-tree.component';
8
9 const routes: Routes = [{
10     path: 'splash',
11     component: AdminServerSplashComponent
12 }, {
13     path: 'actor/org_unit_type',
14     component: OrgUnitTypeComponent
15 }, {
16     path: 'config/coded_value_map',
17     loadChildren: () =>
18       import('./coded-value-maps/coded-value-maps.module').then(m => m.CodedValueMapsModule)
19 }, {
20     path: 'config/record_attr_definition',
21     loadChildren: () =>
22       import('./record-attr-definitions/record-attr-definitions.module').then(m => m.RecordAttrDefinitionsModule)
23 }, {
24     path: 'authority/control_set_authority_field',
25     loadChildren: () =>
26       import('./control-set-authority-fields/control-set-authority-fields.module').then(m => m.CSAuthorityFieldsModule)
27 }, {
28     path: 'config/floating_group',
29     loadChildren: () =>
30       import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
31 }, {
32     path: 'config/hard_due_date',
33     component: BasicAdminPageComponent,
34     data: [{
35         schema: 'config',
36         table: 'hard_due_date',
37         fieldOrder: 'name,owner,ceiling_date,forceto'
38     }]
39 }, {
40     path: 'config/print_template',
41     component: PrintTemplateComponent
42 }, {
43     path: 'config/rule_recurring_fine',
44     component: BasicAdminPageComponent,
45     data: [{
46         schema: 'config',
47         table: 'rule_recurring_fine',
48         fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
49     }]
50 }, {
51     path: 'config/z3950_source',
52     component: BasicAdminPageComponent,
53     data: [{
54         schema: 'config',
55         table: 'z3950_source',
56         fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
57     }]
58 }, {
59     path: 'permission/grp_tree',
60     component: PermGroupTreeComponent
61 }, {
62     path: 'actor/org_unit',
63     loadChildren: () =>
64       import('./org-unit.module').then(m => m.OrgUnitModule)
65 }, {
66     path: 'actor/org_unit_proximity_adjustment',
67     component: BasicAdminPageComponent,
68     data: [{schema: 'actor',
69         table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
70 }, {
71     path: 'asset/call_number_prefix',
72     component: BasicAdminPageComponent,
73     data: [{schema: 'asset',
74         table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
75 }, {
76     path: 'asset/call_number_suffix',
77     component: BasicAdminPageComponent,
78     data: [{schema: 'asset',
79         table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
80 }, {
81     path: ':schema/:table',
82     component: BasicAdminPageComponent
83 }];
84
85 @NgModule({
86   imports: [RouterModule.forChild(routes)],
87   exports: [RouterModule]
88 })
89
90 export class AdminServerRoutingModule {}