IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
878 stars 486 forks source link

Citation.tsv: set displayOnCreate=TRUE for depositor and dateOfDeposit #10850

Closed ekraffmiller closed 10 hours ago

ekraffmiller commented 1 week ago

This code change is needed to have the metadata fields in the SPA Create Dataset form match what is in the JSF form.

In the JSF Create Dataset form, metadata fields are displayed if displayOnCreate = TRUE, or if the metadata field has been prefilled with a value. Metadata fields are preset if either with user information or a default value defined in the dataset template (if it exists). The backing bean for the Create Dataset form prefills depositor with the current user, and dateOfDeposit with the current date.

In the SPA, metadata fields are only displayed if displayOnCreate = TRUE. The logic for getting default values from a dataset template hasn't been implemented yet. The prefills for displayed fields are set in the UI, not from the API.

So to match the SPA with the JSF, we need to update depositor and dateOfDeposit with create=TRUE.