[x] This isn't a duplicate of an existing pull request
Description
Publication dates are now optional.
This PR makes the following changes:
Publication year is now an optional field.
Whenever publication year, month, or day fields are modified, the hidden lc_resource_publication_date field is updated to a string in the format YYYY(-MM-DD) OR the string ongoing if year, month, and day are unset.
Steps to test
While editing a resource, inspect the page and find the hidden lc_resource_publication_date field.
Modify the year, month, and day and observe the field's value updating.
Expected behavior: The publication date field updates in sync with changes to year, month, and day.
Description
Publication dates are now optional.
This PR makes the following changes:
lc_resource_publication_date
field is updated to a string in the formatYYYY(-MM-DD)
OR the stringongoing
if year, month, and day are unset.Steps to test
lc_resource_publication_date
field.Expected behavior: The publication date field updates in sync with changes to year, month, and day.
Additional information
Not applicable.
Related issues
Not applicable.