LP1837656 Org proximity admin disable org filter user/sandbergja/lp1837656-org-prox-admin-grid-fix-signoff
authorBill Erickson <berickxx@gmail.com>
Thu, 22 Aug 2019 14:12:53 +0000 (10:12 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 22 Jan 2020 03:41:59 +0000 (19:41 -0800)
Disable the org unit filter for the auto-generated org unit proximity
adjustment admin page so that it does not automatically filter the grid by
any of the org unit fields.

Modify the IDL to indicate that the 'pos' field on the org unit
proximity adjustement class is required.

To test:

1. Navigate to
   /eg2/en-US/staff/admin/server/actor/org_unit_proximity_adjustment
2. Create an adjustment if non exist.
3. Confirm the 'Position' field is now required.
4. Confirm new adjusment row appears in the grid after it's created.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts

index 75b52a7..428b0b8 100644 (file)
@@ -6135,7 +6135,7 @@ SELECT  usr,
                        <field name="hold_request_lib" reporter:label="Hold Request Lib" reporter:datatype="org_unit"/>
                        <field name="copy_location" reporter:label="Copy Location" reporter:datatype="link"/>
                        <field name="circ_mod" reporter:label="Circ Modifier" reporter:datatype="link"/>
-                       <field name="pos" reporter:label="Position" reporter:datatype="int" />
+                       <field name="pos" reporter:label="Position" reporter:datatype="int" oils_obj:required="true" />
                        <field name="absolute_adjustment" reporter:label="Absolute adjustment?" reporter:datatype="bool" />
                        <field name="prox_adjustment" reporter:label="Proximity Adjustment" reporter:datatype="number" />
                </fields>
index 6ce9365..d806245 100644 (file)
@@ -22,6 +22,11 @@ const routes: Routes = [{
     path: 'actor/org_unit',
     loadChildren: '@eg/staff/admin/server/org-unit.module#OrgUnitModule'
 }, {
+    path: 'actor/org_unit_proximity_adjustment',
+    component: BasicAdminPageComponent,
+    data: [{schema: 'actor',
+        table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
+}, {
     path: ':schema/:table',
     component: BasicAdminPageComponent
 }];