]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
LP1843969 Composite Attribute Entry Defs
[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/floating_group',
21     loadChildren: () =>
22       import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
23 }, {
24     path: 'config/hard_due_date',
25     component: BasicAdminPageComponent,
26     data: [{
27         schema: 'config',
28         table: 'hard_due_date',
29         fieldOrder: 'name,owner,ceiling_date,forceto'
30     }]
31 }, {
32     path: 'config/print_template',
33     component: PrintTemplateComponent
34 }, {
35     path: 'config/rule_recurring_fine',
36     component: BasicAdminPageComponent,
37     data: [{
38         schema: 'config',
39         table: 'rule_recurring_fine',
40         fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
41     }]
42 }, {
43     path: 'config/z3950_source',
44     component: BasicAdminPageComponent,
45     data: [{
46         schema: 'config',
47         table: 'z3950_source',
48         fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
49     }]
50 }, {
51     path: 'permission/grp_tree',
52     component: PermGroupTreeComponent
53 }, {
54     path: 'actor/org_unit',
55     loadChildren: () =>
56       import('./org-unit.module').then(m => m.OrgUnitModule)
57 }, {
58     path: 'actor/org_unit_proximity_adjustment',
59     component: BasicAdminPageComponent,
60     data: [{schema: 'actor',
61         table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
62 }, {
63     path: 'asset/call_number_prefix',
64     component: BasicAdminPageComponent,
65     data: [{schema: 'asset',
66         table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
67 }, {
68     path: 'asset/call_number_suffix',
69     component: BasicAdminPageComponent,
70     data: [{schema: 'asset',
71         table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
72 }, {
73     path: ':schema/:table',
74     component: BasicAdminPageComponent
75 }];
76
77 @NgModule({
78   imports: [RouterModule.forChild(routes)],
79   exports: [RouterModule]
80 })
81
82 export class AdminServerRoutingModule {}