Interferences between Dataset Templates and controlled vocabularies added to citation.tsv?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Version: 4.20
Zdravo,
We think there might intereferences between dataset templates and controlled vocabularies.
We tried to add a controlled vocabulary for the Topic Classification > Term field (based on the CESSDA Topic Classification) by modifying the citation.tsv file.
Everything seemed to work fine when we got to the Add Data > New Dataset form: the field had become a dropdown menu and the input values could be selected.
But then, after saving the changes, the field was empty in the metadata:

(And the content of the Vocabulary URL field also appears between quotation marks.)
Interestingly, if we add more instances of Topic Classification by clicking the + button, the value put in those new instances are saved, but never the first one.
We tried creating a new dataset but this time without any dataset template (we have one selected by default). Then the information was properly saved in the dataset's metadata.
I should also specify that, in our templates (all of them), the Topic Classification > Vocabulary and Topic Classification > Vocabulary URL are prepopulated, but not the case of the Topic Classification > Term field:

(There is also a custom watermark as you can see, but we added it only after observing the problem.)
We could perhaps try to replicate this issue on Demo Dataverse?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the problem in Add Data > New Dataset with a dataset template and the controlled vocabulary from citation.tsv. Compare the first Topic Classification instance with instances added using the + button, including the Vocabulary URL value. Done means the initial Term and Vocabulary URL values are saved correctly when a template is selected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100