I've pushed a working branch for this to: user/rogan/lp1387722_set_leader_delete_status
Following Mike's advice I did it as a database trigger on the biblio.record_entry row. I've tested it under current master and it works cleanly.
On insert it sets it to 'n', on update and delete flag is false (including undelete) it sets to 'c' and on update with delete set to true it sets it to 'd'.
I've pushed a working branch for this to: user/rogan/ lp1387722_ set_leader_ delete_ status
Following Mike's advice I did it as a database trigger on the biblio.record_entry row. I've tested it under current master and it works cleanly.
On insert it sets it to 'n', on update and delete flag is false (including undelete) it sets to 'c' and on update with delete set to true it sets it to 'd'.