]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts
lp1857911 follow-up tweaks
[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         orgFieldsDefaultingToContextOrg: 'owner',
111         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
112         contextOrgSelectorPersistKey: 'admin.item_stat_cat.main_org_selector',
113         recordLabel: $localize `Item Statistical Category`,
114         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.`,
115         fieldOrder: 'name,owner,required,opac_visible,checkout_archive,sip_field,sip_format'}]
116 }, {
117     path: 'asset/stat_cat_entry',
118     component: BasicAdminPageComponent,
119     data: [{
120         schema: 'asset',
121         table: 'stat_cat_entry',
122         readonlyFields: 'id,stat_cat',
123         orgDefaultAllowed: 'owner',
124         orgFieldsDefaultingToContextOrg: 'owner',
125         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
126         contextOrgSelectorPersistKey: 'admin.item_stat_cat.main_org_selector',
127         disableEdit: true,
128         disableDelete: true,
129         recordLabel: $localize `Item Statistical Category Entry`,
130         hideClearFilters: true,
131         fieldOrder: 'stat_cat,value,owner'}]
132 }, {
133     path: 'actor/stat_cat',
134     component: BasicAdminPageComponent,
135     data: [{
136         schema: 'actor',
137         table: 'stat_cat',
138         readonlyFields: 'id',
139         orgDefaultAllowed: 'owner',
140         orgFieldsDefaultingToContextOrg: 'owner',
141         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
142         contextOrgSelectorPersistKey: 'admin.patron_stat_cat.main_org_selector',
143         recordLabel: $localize `Patron Statistical Category`,
144         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.`,
145         fieldOrder: 'name,owner,required,opac_visible,usr_summary,allow_freetext,checkout_archive,sip_field,sip_format'}]
146 }, {
147     path: 'actor/stat_cat_entry',
148     component: BasicAdminPageComponent,
149     data: [{
150         schema: 'actor',
151         table: 'stat_cat_entry',
152         readonlyFields: 'id,stat_cat',
153         orgDefaultAllowed: 'owner',
154         orgFieldsDefaultingToContextOrg: 'owner',
155         fieldOptions: {owner: {persistKey: 'admin.stat_cat.owner' } },
156         contextOrgSelectorPersistKey: 'admin.patron_stat_cat.main_org_selector',
157         disableEdit: true,
158         disableDelete: true,
159         recordLabel: $localize `Patron Statistical Category Entry`,
160         hideClearFilters: true,
161         fieldOrder: 'stat_cat,value,owner'}]
162 }, {
163     path: ':schema/:table',
164     component: BasicAdminPageComponent
165 }
166
167 ];
168
169 @NgModule({
170   imports: [RouterModule.forChild(routes)],
171   exports: [RouterModule]
172 })
173
174 export class AdminLocalRoutingModule {}