For atla-hyku when a item is trying to be imported and one of the controlled fields does not match the controlled list vocabulary they need a way to know this and fix the record. Blocking import of the record if the field does not match an item on the list will give them a bulkrax error on that item and let them know they need to fix the item before importing again.
This PR
configures the preexisting functionality in bulkrax that throws a standard error when a controlled field is entered incorrectly on a work.
fixes how the controlled fields were added - we should NOT have been following the samvera docs, and instead looking at how they are added in this current version of hyrax since parts of bulkrax depend on that and we were adding a bunch of extra code
adds a parse method that validates the year field for Etd works, effectively adding the same behavior that throws an error if years are incorrectly entered in that column.
Related
25
Expected Behavior Before Changes
any value could be imported into controlled fields
Expected Behavior After Changes
The following fields will have errors upon import if they are entered incorrectly
[ ] Types
[ ] Resource Type
[ ] Year (should only error for ETDs, non etd works do not have year)
[ ] Format
[ ] Institution
Screenshots / Video
Resource type errorFormat errorInstitution errorTypes errorYear error
Story
For atla-hyku when a item is trying to be imported and one of the controlled fields does not match the controlled list vocabulary they need a way to know this and fix the record. Blocking import of the record if the field does not match an item on the list will give them a bulkrax error on that item and let them know they need to fix the item before importing again.
This PR
year
field forEtd
works, effectively adding the same behavior that throws an error if years are incorrectly entered in that column.Related
25
Expected Behavior Before Changes
any value could be imported into controlled fields
Expected Behavior After Changes
The following fields will have errors upon import if they are entered incorrectly
Screenshots / Video
Resource type error
Format error
Institution error
Types error
Year error