JSON-LD for agent records can result in "We're sorry, something went wrong" errors if a Date of Existence subrecord is utilized without specifying a begin date.

Description

Looks like I'm responsible for this bug, sorry! I tried to introduce a step in the JSON-LD bits that removes empty values from the hash. This usually worked fine, aside from the possibility that a value would be nil, which can happen for the agent records right now (and the current mapping) if a user adds a dates of existence record without specifying a begin date.

As reported on the listserv, there are a couple of ways to fix this bug:

Not sure what would be best, but maybe doing both would be good 🙂 I won't have time to submit a pull request for a while, but I wanted to log this issue now while it was fresh in my mind.

Environment

None

Assignee

Mark Custer

Reporter

Mark Custer

Fix versions

Priority

Major
Configure