WGBH-MLA / mlavalon

Apache License 2.0
0 stars 0 forks source link

Add Wrapper Validation For Required Fields Within A Fileset #131

Closed foglabs closed 4 years ago

foglabs commented 4 years ago

To allow for empty fileset-field cells within a row (because another row contains data for the fileset column we are trying to validate), this adds a validation method validate_presence_within_fileset, which:

-checks cells to the left and right of the currently-validating field, within the current row, looking for the presence of any data within the current fileset -this allows us to determine whether or not the validate_presence validation should be run for the current field

Also adds gsub to replace tab characters with newlines, because Mars uses vertical tabs in open-ended description fields