Consider MARC Leader 05 - Record status in “d”, "s", "x" as a sign of deleted record as per https://www.loc.gov/marc/authority/adleader.html. See details in
MODOAIPMH-108 ticket. It will be either convenient to synchronize “deleted” parameter of SRS record with its MARC Leader or take out MARC Leader 05 - Record status in additional parameter, so that Leader itself shouldn’t be parsed.
- change parsedRecord content column type to jsonb
- Add leaderRecordStatus column char(1)
- Add trigger to fill this value from parsedRecord->content->leader(5)
- Add this field to query params