You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an EML 2.2.0 record containing structured funding information (awward) but not the old-style funding information and the editor config specifies funding information as a required field, users get a validation error which stops them from saving.
This really only affects the data team right now as they do their typical ticket processing. The current workaround they use is to enter a throwaway value in the field tied to the funding element and remove it programatically after they save in the editor.
As discussed in #1403 and on Slack, prior to getting full structured funding support in, we can relax validation for the presence of funding information in order to prevent users from having to put in throwaway values to get around validation. This quick fix will probably still be useful after structured funding information is put in.
The text was updated successfully, but these errors were encountered:
Closes#1533
The change here checks for the presence of the award element by querying the project's DOM instead of just checking the attribute on the Backbone model like we do for the funding element because EMLProject doesn't currently parse the award element. Once that lands, we can simplify this validation code.
Okay, this is in and moved to the Review/QA column on ZenHub. I ended up having to query the project's objectDOM since the project model doesn't currently parse award. We'll wanna revisit this when we put in support for structured funding in #1403. I'll drop a note over there too.
When an EML 2.2.0 record containing structured funding information (
awward
) but not the old-stylefunding
information and the editor config specifies funding information as a required field, users get a validation error which stops them from saving.This really only affects the data team right now as they do their typical ticket processing. The current workaround they use is to enter a throwaway value in the field tied to the
funding
element and remove it programatically after they save in the editor.As discussed in #1403 and on Slack, prior to getting full structured funding support in, we can relax validation for the presence of funding information in order to prevent users from having to put in throwaway values to get around validation. This quick fix will probably still be useful after structured funding information is put in.
The text was updated successfully, but these errors were encountered: