]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
LP1839875 Circulation Duration Rule Fields - User-Friendly Order
[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 {CustomOrgUnitTreesComponent} from './custom-org-unit-trees.component';
7 import {PrintTemplateComponent} from './print-template.component';
8 import {PermGroupTreeComponent} from './perm-group-tree.component';
9
10 const routes: Routes = [{
11     path: 'splash',
12     component: AdminServerSplashComponent
13 }, {
14     path: 'actor/org_unit_type',
15     component: OrgUnitTypeComponent
16 }, {
17     path: 'actor/custom_org_unit_trees',
18     component: CustomOrgUnitTreesComponent
19 }, {
20     path: 'config/coded_value_map',
21     loadChildren: () =>
22         import('./coded-value-maps/coded-value-maps.module').then(m => m.CodedValueMapsModule)
23 }, {
24     path: 'config/record_attr_definition',
25     loadChildren: () =>
26         import('./record-attr-definitions/record-attr-definitions.module').then(m => m.RecordAttrDefinitionsModule)
27 }, {
28     path: 'authority/control_set_authority_field',
29     loadChildren: () =>
30         import('./control-set-authority-fields/control-set-authority-fields.module').then(m => m.CSAuthorityFieldsModule)
31 }, {
32     path: 'config/floating_group',
33     loadChildren: () =>
34         import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
35 }, {
36     path: 'config/hard_due_date',
37     component: BasicAdminPageComponent,
38     data: [{
39         schema: 'config',
40         table: 'hard_due_date',
41         fieldOrder: 'name,owner,ceiling_date,forceto'
42     }]
43 }, {
44     path: 'config/print_template',
45     component: PrintTemplateComponent
46 }, {
47     path: 'config/rule_max_fine',
48     component: BasicAdminPageComponent,
49     data: [{
50         schema: 'config',
51         table: 'rule_max_fine',
52         fieldOrder: 'name,amount,is_percent,id'
53     }]
54 }, {
55     path: 'config/rule_recurring_fine',
56     component: BasicAdminPageComponent,
57     data: [{
58         schema: 'config',
59         table: 'rule_recurring_fine',
60         fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
61     }]
62 }, {
63     path: 'config/rule_circ_duration',
64     component: BasicAdminPageComponent,
65     data: [{
66         schema: 'config',
67         table: 'rule_circ_duration',
68         fieldOrder: 'name,shrt,normal,extended,max_renewals,max_auto_renewals'
69     }]
70 }, {
71     path: 'config/z3950_source',
72     component: BasicAdminPageComponent,
73     data: [{
74         schema: 'config',
75         table: 'z3950_source',
76         fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
77     }]
78 }, {
79     path: 'permission/grp_tree',
80     component: PermGroupTreeComponent
81 }, {
82     path: 'actor/org_unit',
83     loadChildren: () =>
84         import('./org-unit.module').then(m => m.OrgUnitModule)
85 }, {
86     path: 'actor/org_unit_proximity_adjustment',
87     component: BasicAdminPageComponent,
88     data: [{schema: 'actor',
89         table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
90 }, {
91     path: 'asset/call_number_prefix',
92     component: BasicAdminPageComponent,
93     data: [{schema: 'asset',
94         table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
95 }, {
96     path: 'asset/call_number_suffix',
97     component: BasicAdminPageComponent,
98     data: [{schema: 'asset',
99         table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
100 }, {
101     path: ':schema/:table',
102     component: BasicAdminPageComponent
103 }];
104
105 @NgModule({
106     imports: [RouterModule.forChild(routes)],
107     exports: [RouterModule]
108 })
109
110 export class AdminServerRoutingModule {}