item and patron stat cat admin pages collab/phasefx/stat-cat-admin-wip-alternative
authorJason Etheridge <jason@EquinoxOLI.org>
Wed, 14 Dec 2022 05:58:29 +0000 (00:58 -0500)
committerJason Etheridge <jason@EquinoxOLI.org>
Wed, 14 Dec 2022 13:47:49 +0000 (08:47 -0500)
commit7490c919360e40c5245ebe9d981ec5a591547e58
tree2b0601afabcb5caa06a9f913a4250bab674c358e
parent5b456dac37186590a63d38ba733fa4b8ea931c78
item and patron stat cat admin pages

Leverages the BasicAdminPage component, with some tweaks.

Changes to the BasicAdminPage and AdminPage components all default to off, so should not affect existing interfaces:

* add an option to hide the Clear Filters action from subordinate admin pages (when you follow config fields)
* add an option to propagate recordLabel to the fmEditor component, and also use said label within the admin page
* add an option to propagate orgDefaultAllowed to the fmEditor component

For the stat cat and entry admin pages specifically, we leverage these to:

* hide Clear Filters so that we don't let the user get into a situation where they try to create a new stat cat entry but have a blank and unsettable stat cat field (because we mark that field as read-only in the fmEditor)
* default the Owner field for new stat cats and entries to the workstation library
* use Item and Patron instead of Asset and Actor in various labels (at least until we're ready to make that change wholesale in the IDL)

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.spec.ts
Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts
Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.html
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts