Use actor.org_lasso for circ and hold policies.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
In our consortium, we would like to be able to use actor.org_lasso and actor.org_lasso_map in config.
To that end, I have identified the following, incomplete list of changes:
1. Add flags to config.global_flag:
a. policy.
b. policy.
2. Modify action.
3. Modify action.
4. Add UI in staff client to edit actor.org_lasso and actor.org_
5. Modify staff client to use actor.org_lasso when editing config.
6. Modify staff client to use actor.org_lasso when editing config.
7. Add trigger code to create actor.org_lasso and actor.org_lasso_map entries for newly created actor.org_units when either flag is set.
8. Add/edit actor.org_unit update trigger to change actor.org_
9. Add cascading delete on actor.org_lasso_map and actor.org_lasso when an actor.org_unit is deleted.
This is a WIP, so doubtless there will be more additions to the list above. I've got a two page list of other code that has to do with these tables, so I still have to go through that.
Hopefully, I'll start adding patches next week.
Changed in evergreen: | |
status: | Won't Fix → Incomplete |
Problem: I'm not sure that this can be made optional.
config. circ_matrix_ matchpoint and config. hold_matrix_ matchpoint both have columns that reference actor.org_unit.id. There's no way in Pg that I'm aware of to make a column reference two columns in other tables. For instance,
copy_circ_lib INT REFERENCES actor.org_unit (id) OR actor.org_lasso (id) DEFERRABLE INITIALLY DEFERRED,
is not valid syntax.
Since the columns can only reference 1 foreign key, EITHER the change will need to be non-optional and the matchpoint tables' columns changed to reference actor.org_lasso OR new columns will need to be added to the matchpoint tables and those used and populated instead when the appropriate global_flag is enabled.