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';
10 const routes: Routes = [{
12 component: AdminServerSplashComponent
14 path: 'actor/org_unit_type',
15 component: OrgUnitTypeComponent
17 path: 'actor/custom_org_unit_trees',
18 component: CustomOrgUnitTreesComponent
20 path: 'config/coded_value_map',
22 import('./coded-value-maps/coded-value-maps.module').then(m => m.CodedValueMapsModule)
24 path: 'config/record_attr_definition',
26 import('./record-attr-definitions/record-attr-definitions.module').then(m => m.RecordAttrDefinitionsModule)
28 path: 'authority/control_set_authority_field',
30 import('./control-set-authority-fields/control-set-authority-fields.module').then(m => m.CSAuthorityFieldsModule)
32 path: 'config/floating_group',
34 import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
36 path: 'config/hard_due_date',
37 component: BasicAdminPageComponent,
40 table: 'hard_due_date',
41 fieldOrder: 'name,owner,ceiling_date,forceto'
44 path: 'config/print_template',
45 component: PrintTemplateComponent
47 path: 'config/rule_max_fine',
48 component: BasicAdminPageComponent,
51 table: 'rule_max_fine',
52 fieldOrder: 'name,amount,is_percent,id'
55 path: 'config/rule_recurring_fine',
56 component: BasicAdminPageComponent,
59 table: 'rule_recurring_fine',
60 fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
63 path: 'config/rule_circ_duration',
64 component: BasicAdminPageComponent,
67 table: 'rule_circ_duration',
68 fieldOrder: 'name,shrt,normal,extended,max_renewals,max_auto_renewals'
71 path: 'config/z3950_source',
72 component: BasicAdminPageComponent,
75 table: 'z3950_source',
76 fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
79 path: 'permission/grp_tree',
80 component: PermGroupTreeComponent
82 path: 'actor/org_unit',
84 import('./org-unit.module').then(m => m.OrgUnitModule)
86 path: 'actor/org_unit_proximity_adjustment',
87 component: BasicAdminPageComponent,
88 data: [{schema: 'actor',
89 table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
91 path: 'asset/call_number_prefix',
92 component: BasicAdminPageComponent,
93 data: [{schema: 'asset',
94 table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
96 path: 'asset/call_number_suffix',
97 component: BasicAdminPageComponent,
98 data: [{schema: 'asset',
99 table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
101 path: ':schema/:table',
102 component: BasicAdminPageComponent
106 imports: [RouterModule.forChild(routes)],
107 exports: [RouterModule]
110 export class AdminServerRoutingModule {}