Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields in metadata block TSV files have allowControlledVocabulary property set to true, but no CV terms #8857

Closed
jggautier opened this issue Jul 25, 2022 · 2 comments

Comments

@jggautier
Copy link
Contributor

jggautier commented Jul 25, 2022

Fields in a few of metadata block TSV files that ship with the Dataverse software have their allowControlledVocabulary property set to TRUE. For example in the Citation metadata block, the software name field has allowControlledVocabulary as TRUE:

Screen Shot 2022-07-25 at 10 52 04 AM

But the TSV file's #controlledVocabulary section has no terms listed for those fields. These fields weren't meant to have controlled vocabularies. Maybe at one point it was being considered, so the allowControlledVocabulary properties were set to TRUE and never set back to FALSE?

In the UI, those fields are free text fields:

Screen Shot 2022-07-25 at 10 55 37 AM

So it looks like the Dataverse software creates single-line text boxes for these fields since they don't have terms in the TSVs' controlled vocabulary sections. Or maybe the Dataverse software is looking at the metadata block's properties files, which also list controlled vocabulary terms but would does not list terms for these fields.

In the example used here, the Citation metadata block's software name field has had allowControlledVocabulary set to TRUE for as far back in the TSV file's history as I can tell.

There are one or more fields like this in other metadata blocks that ship with the Dataverse software.

I think at least to avoid confusion, the allowControlledVocabulary property of these fields should be changed to FALSE. And maybe that could be the "definition of done" for this GitHub issue.

Also maybe the Dataverse software can return some error when it tries to load a TSV file that has any fields where allowControlledVocabulary is TRUE but no terms are listed for that field in the TSV file's #controlledVocabulary section.

@scolapasta
Copy link
Contributor

scolapasta commented Apr 3, 2024

I think that was done in #9984 (except for the error of loading)

@jggautier
Copy link
Contributor Author

Awesome. Closing this issue.

#10461 is related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants