]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts
lp1857911 angularized stat cat admin interfaces
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminLocalSplashComponent} from './admin-local-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {AddressAlertComponent} from './address-alert.component';
6 import {AdminCarouselComponent} from './admin-carousel.component';
7 import {AdminStaffPortalPageComponent} from './staff_portal_page/staff-portal-page.component';
8 import {StandingPenaltyComponent} from './standing-penalty.component';
9 import {CourseTermMapComponent} from './course-reserves/course-term-map.component';
10
11 const routes: Routes = [{
12     path: 'splash',
13     component: AdminLocalSplashComponent
14 }, {
15     path: 'config/hold_matrix_matchpoint',
16     component: BasicAdminPageComponent,
17     data: [{schema: 'config', table: 'hold_matrix_matchpoint', disableOrgFilter: true}]
18 }, {
19     path: 'actor/address_alert',
20     component: AddressAlertComponent
21 }, {
22     path: 'asset/copy_location_order',
23     loadChildren: () =>
24       import('./copy-loc-order/copy-loc-order.module').then(m => m.CopyLocOrderModule)
25 }, {
26     path: 'asset/copy_location',
27     component: BasicAdminPageComponent,
28     data: [{
29         schema: 'asset',
30         table: 'copy_location',
31         enableUndelete: true,
32         readonlyFields: 'deleted',
33         fieldOrder: 'owning_lib,name,opac_visible,circulate,holdable,hold_verify,checkin_alert,deleted,label_prefix,label_suffix,url,id'}]
34 }, {
35     path: 'asset/shelving_location_groups',
36     loadChildren: () =>
37       import('./shelving_location_groups/shelving_location_groups.module').then(m => m.ShelvingLocationGroupsModule)
38 }, {
39     path: 'container/carousel',
40     component: AdminCarouselComponent
41 }, {
42     path: 'asset/course_list',
43     loadChildren: () =>
44       import('./course-reserves/course-reserves.module').then(m => m.CourseReservesModule)
45 }, {
46     path: 'asset/course_module_term_course_map',
47     component: CourseTermMapComponent
48 }, {
49     path: 'actor/search_filter_group',
50     loadChildren: () =>
51       import('./search-filter/search-filter-group.module').then(m => m.SearchFilterGroupModule)
52 }, {
53     path: 'config/circ_limit_set',
54     loadChildren: () =>
55       import('./circ_limit_set/circ_limit_set.module').then(m => m.CircLimitSetModule)
56 }, {
57     path: 'config/openathens_identity',
58     component: BasicAdminPageComponent,
59     data: [{
60         schema: 'config',
61         table: 'openathens_identity',
62         fieldOrder: 'id,org_unit,active,api_key,connection_id,connection_uri,auto_signon_enabled,auto_signout_enabled,' +
63                     'unique_identifier,display_name,release_prefix,release_first_given_name,release_second_given_name,' +
64                     'release_family_name,release_suffix,release_email,release_home_ou,release_barcode',
65         defaultNewRecord: {
66             active: true,
67             auto_signon_enabled: true,
68             unique_identifier: 1,
69             display_name: 1
70         }
71     }]
72 }, {
73     path: 'config/standing_penalty',
74     component: StandingPenaltyComponent,
75 }, {
76     path: 'asset/org_unit_settings',
77     loadChildren: () =>
78       import('./org-unit-settings/org-unit-settings.module').then(m => m.OrgUnitSettingsModule)
79 }, {
80     path: 'config/ui_staff_portal_page_entry',
81     component: AdminStaffPortalPageComponent
82 }, {
83     path: 'action/survey',
84     loadChildren: () =>
85       import('./survey/survey.module').then(m => m.SurveyModule)
86 }, {
87     path: 'action_trigger/event_definition',
88     loadChildren: () =>
89       import('./triggers/triggers.module').then(m => m.TriggersModule)
90 }, {
91     path: 'config/idl_field_doc',
92     loadChildren: () => import('./field-documentation/field-documentation.module')
93       .then(m => m.FieldDocumentationModule)
94 }, {
95     path: 'money/cash_reports',
96     loadChildren: () =>
97       import('./cash-reports/cash-reports.module').then(m => m.CashReportsModule)
98 }, {
99     path: 'negative-balances',
100     loadChildren: () =>
101       import('./negative-balances/negative-balances.module').then(m => m.NegativeBalancesModule)
102 }, {
103     path: 'asset/stat_cat',
104     component: BasicAdminPageComponent,
105     data: [{
106         schema: 'asset',
107         table: 'stat_cat',
108         readonlyFields: 'id',
109         orgDefaultAllowed: 'owner',
110         recordLabel: $localize `Item Statistical Category`,
111         fieldOrder: 'name,owner,required,opac_visible,checkout_archive,sip_field,sip_format'}]
112 }, {
113     path: 'asset/stat_cat_entry',
114     component: BasicAdminPageComponent,
115     data: [{
116         schema: 'asset',
117         table: 'stat_cat_entry',
118         readonlyFields: 'id,stat_cat',
119         orgDefaultAllowed: 'owner',
120         recordLabel: $localize `Item Statistical Category Entry`,
121         hideClearFilters: true,
122         fieldOrder: 'stat_cat,value,owner'}]
123 }, {
124     path: 'actor/stat_cat',
125     component: BasicAdminPageComponent,
126     data: [{
127         schema: 'actor',
128         table: 'stat_cat',
129         readonlyFields: 'id',
130         orgDefaultAllowed: 'owner',
131         recordLabel: $localize `Patron Statistical Category`,
132         fieldOrder: 'name,owner,required,opac_visible,usr_summary,allow_freetext,checkout_archive,sip_field,sip_format'}]
133 }, {
134     path: 'actor/stat_cat_entry',
135     component: BasicAdminPageComponent,
136     data: [{
137         schema: 'actor',
138         table: 'stat_cat_entry',
139         readonlyFields: 'id,stat_cat',
140         orgDefaultAllowed: 'owner',
141         recordLabel: $localize `Patron Statistical Category Entry`,
142         hideClearFilters: true,
143         fieldOrder: 'stat_cat,value,owner'}]
144 }, {
145     path: ':schema/:table',
146     component: BasicAdminPageComponent
147 }
148
149 ];
150
151 @NgModule({
152   imports: [RouterModule.forChild(routes)],
153   exports: [RouterModule]
154 })
155
156 export class AdminLocalRoutingModule {}