Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BFP 272] ComplexValues #124

Merged
merged 5 commits into from
Nov 15, 2024
Merged

[BFP 272] ComplexValues #124

merged 5 commits into from
Nov 15, 2024

Conversation

f-osorio
Copy link
Contributor

Jira: https://staff.loc.gov/tasks/browse/BFP-272

Fixes issue with not being able to edit complex values. The issue was demonstrated as being with names, but other complex values were also showing the issue such as "Geographic Coverage." The issue was that if there was existing data, it would be maintained when the new data was added. The fixes empties out the component before adding the new data.

Also fixes some issues:

  • Literal names could cause an error when trying to parse marcKeys
  • complexLookupValue() would throw an error when populating an empty complex value. Related commit has details.

The complex values were maintaining existing values when they were
updated.
The error occured when populating an empty complexValue. The function
tries to data from an empty component.

This mostly didn't seem to cause an issue, but might have been causing
some freeze with the cutter tool. Also, why not catch the error.
@f-osorio f-osorio merged commit b5be0fd into main Nov 15, 2024
@f-osorio f-osorio deleted the bfp-272-name-updates branch November 20, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant