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';
9 const routes: Routes = [{
11 component: AdminServerSplashComponent
13 path: 'actor/org_unit_type',
14 component: OrgUnitTypeComponent
16 path: 'config/coded_value_map',
18 import('./coded-value-maps/coded-value-maps.module').then(m => m.CodedValueMapsModule)
20 path: 'config/floating_group',
22 import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
24 path: 'config/hard_due_date',
25 component: BasicAdminPageComponent,
28 table: 'hard_due_date',
29 fieldOrder: 'name,owner,ceiling_date,forceto'
32 path: 'config/print_template',
33 component: PrintTemplateComponent
35 path: 'config/rule_recurring_fine',
36 component: BasicAdminPageComponent,
39 table: 'rule_recurring_fine',
40 fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
43 path: 'config/z3950_source',
44 component: BasicAdminPageComponent,
47 table: 'z3950_source',
48 fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
51 path: 'permission/grp_tree',
52 component: PermGroupTreeComponent
54 path: 'actor/org_unit',
56 import('./org-unit.module').then(m => m.OrgUnitModule)
58 path: 'actor/org_unit_proximity_adjustment',
59 component: BasicAdminPageComponent,
60 data: [{schema: 'actor',
61 table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
63 path: 'asset/call_number_prefix',
64 component: BasicAdminPageComponent,
65 data: [{schema: 'asset',
66 table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
68 path: 'asset/call_number_suffix',
69 component: BasicAdminPageComponent,
70 data: [{schema: 'asset',
71 table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
73 path: ':schema/:table',
74 component: BasicAdminPageComponent
78 imports: [RouterModule.forChild(routes)],
79 exports: [RouterModule]
82 export class AdminServerRoutingModule {}