]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts
LP2023579 - Fix for renaming new statistical catergories editor
[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         initialFilterValues: {deleted: 'f'},
34         fieldOrder: 'owning_lib,name,opac_visible,circulate,holdable,hold_verify,checkin_alert,deleted,label_prefix,label_suffix,url,id'}]
35 }, {
36     path: 'asset/shelving_location_groups',
37     loadChildren: () =>
38       import('./shelving_location_groups/shelving_location_groups.module').then(m => m.ShelvingLocationGroupsModule)
39 }, {
40     path: 'container/carousel',
41     component: AdminCarouselComponent
42 }, {
43     path: 'asset/course_list',
44     loadChildren: () =>
45       import('./course-reserves/course-reserves.module').then(m => m.CourseReservesModule)
46 }, {
47     path: 'asset/course_module_term_course_map',
48     component: CourseTermMapComponent
49 }, {
50     path: 'actor/search_filter_group',
51     loadChildren: () =>
52       import('./search-filter/search-filter-group.module').then(m => m.SearchFilterGroupModule)
53 }, {
54     path: 'config/circ_limit_set',
55     loadChildren: () =>
56       import('./circ_limit_set/circ_limit_set.module').then(m => m.CircLimitSetModule)
57 }, {
58     path: 'config/openathens_identity',
59     component: BasicAdminPageComponent,
60     data: [{
61         schema: 'config',
62         table: 'openathens_identity',
63         fieldOrder: 'id,org_unit,active,api_key,connection_id,connection_uri,auto_signon_enabled,auto_signout_enabled,' +
64                     'unique_identifier,display_name,release_prefix,release_first_given_name,release_second_given_name,' +
65                     'release_family_name,release_suffix,release_email,release_home_ou,release_barcode',
66         defaultNewRecord: {
67             active: true,
68             auto_signon_enabled: true,
69             unique_identifier: 1,
70             display_name: 1
71         }
72     }]
73 }, {
74     path: 'config/standing_penalty',
75     component: StandingPenaltyComponent,
76 }, {
77     path: 'asset/org_unit_settings',
78     loadChildren: () =>
79       import('./org-unit-settings/org-unit-settings.module').then(m => m.OrgUnitSettingsModule)
80 }, {
81     path: 'config/ui_staff_portal_page_entry',
82     component: AdminStaffPortalPageComponent
83 }, {
84     path: 'action/survey',
85     loadChildren: () =>
86       import('./survey/survey.module').then(m => m.SurveyModule)
87 }, {
88     path: 'action_trigger/event_definition',
89     loadChildren: () =>
90       import('./triggers/triggers.module').then(m => m.TriggersModule)
91 }, {
92     path: 'config/idl_field_doc',
93     loadChildren: () => import('./field-documentation/field-documentation.module')
94       .then(m => m.FieldDocumentationModule)
95 }, {
96     path: 'money/cash_reports',
97     loadChildren: () =>
98       import('./cash-reports/cash-reports.module').then(m => m.CashReportsModule)
99 }, {
100     path: 'negative-balances',
101     loadChildren: () =>
102       import('./negative-balances/negative-balances.module').then(m => m.NegativeBalancesModule)
103 }, {
104     path: 'asset/stat_cat',
105     component: BasicAdminPageComponent,
106     data: [{
107         schema: 'asset',
108         table: 'stat_cat',
109         readonlyFields: 'id',
110         orgDefaultAllowed: 'owner',
111         orgFieldsDefaultingToContextOrg: 'owner',
112         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
113         contextOrgSelectorPersistKey: 'admin.item_stat_cat.main_org_selector',
114         recordLabel: $localize `Statistical Category Editor - Item`,
115         deleteConfirmation: $localize `Are you sure you wish to delete the selected statistical categories?  This will also remove the affected stat cats from any item records using them.`,
116         fieldOrder: 'name,owner,required,opac_visible,checkout_archive,sip_field,sip_format'}]
117 }, {
118     path: 'asset/stat_cat_entry',
119     component: BasicAdminPageComponent,
120     data: [{
121         schema: 'asset',
122         table: 'stat_cat_entry',
123         readonlyFields: 'id,stat_cat',
124         orgDefaultAllowed: 'owner',
125         orgFieldsDefaultingToContextOrg: 'owner',
126         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
127         contextOrgSelectorPersistKey: 'admin.item_stat_cat.main_org_selector',
128         disableEdit: true,
129         disableDelete: true,
130         recordLabel: $localize `Statistical Category Entry - Item`,
131         hideClearFilters: true,
132         fieldOrder: 'stat_cat,value,owner'}]
133 }, {
134     path: 'actor/stat_cat',
135     component: BasicAdminPageComponent,
136     data: [{
137         schema: 'actor',
138         table: 'stat_cat',
139         readonlyFields: 'id',
140         orgDefaultAllowed: 'owner',
141         orgFieldsDefaultingToContextOrg: 'owner',
142         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
143         contextOrgSelectorPersistKey: 'admin.patron_stat_cat.main_org_selector',
144         recordLabel: $localize `Statistical Category Editor - Patron`,
145         deleteConfirmation: $localize `Are you sure you wish to delete the selected statistical categories?  This will also remove the affected stat cats from any patron records using them.`,
146         fieldOrder: 'name,owner,required,opac_visible,usr_summary,allow_freetext,checkout_archive,sip_field,sip_format'}]
147 }, {
148     path: 'actor/stat_cat_entry',
149     component: BasicAdminPageComponent,
150     data: [{
151         schema: 'actor',
152         table: 'stat_cat_entry',
153         readonlyFields: 'id,stat_cat',
154         orgDefaultAllowed: 'owner',
155         orgFieldsDefaultingToContextOrg: 'owner',
156         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
157         contextOrgSelectorPersistKey: 'admin.patron_stat_cat.main_org_selector',
158         disableEdit: true,
159         disableDelete: true,
160         recordLabel: $localize `Statistical Category Entry - Patron`,
161         hideClearFilters: true,
162         fieldOrder: 'stat_cat,value,owner'}]
163 }, {
164     path: ':schema/:table',
165     component: BasicAdminPageComponent
166 }
167
168 ];
169
170 @NgModule({
171   imports: [RouterModule.forChild(routes)],
172   exports: [RouterModule]
173 })
174
175 export class AdminLocalRoutingModule {}