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_recurring_fine',
48 component: BasicAdminPageComponent,
51 table: 'rule_recurring_fine',
52 fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
55 path: 'config/z3950_source',
56 component: BasicAdminPageComponent,
59 table: 'z3950_source',
60 fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
63 path: 'permission/grp_tree',
64 component: PermGroupTreeComponent
66 path: 'actor/org_unit',
68 import('./org-unit.module').then(m => m.OrgUnitModule)
70 path: 'actor/org_unit_proximity_adjustment',
71 component: BasicAdminPageComponent,
72 data: [{schema: 'actor',
73 table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
75 path: 'asset/call_number_prefix',
76 component: BasicAdminPageComponent,
77 data: [{schema: 'asset',
78 table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
80 path: 'asset/call_number_suffix',
81 component: BasicAdminPageComponent,
82 data: [{schema: 'asset',
83 table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
85 path: ':schema/:table',
86 component: BasicAdminPageComponent
90 imports: [RouterModule.forChild(routes)],
91 exports: [RouterModule]
94 export class AdminServerRoutingModule {}