IQSS / dataverse

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

Interferences between Dataset Templates and controlled vocabularies added to citation.tsv? #7485

Open BPeuch opened 3 years ago

BPeuch commented 3 years ago

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:

empty

(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:

topcc

(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?

BPeuch commented 3 years ago

Nǐ hǎo,

I was wondering if someone could test this on Demo Dataverse? We cannot do it ourselves because I don't think we may inject an edited .tsv file in the system ourselves.

pdurbin commented 1 year ago

@BPeuch hi! Generally speaking, we don't recommend changing citation.tsv (and other blocks that ship with Dataverse) unless you're making some sort of general improvement and plan to make a pull request.

Have you played around with external vocabularies? They're documented here: https://guides.dataverse.org/en/5.12/admin/metadatacustomization.html#using-external-vocabulary-services

I'm concerned they won't "just work" with Topic Classification (we've gotten Author Affiliation to work with ROR, at least) but hopefully as we work on controlled vocabularies in the following issue, we'll start to make some overall progress:

If you want to keep going with an internal metadata block, I'd suggest making a new one, outside of citation.tsv.

Happy to chat more! It's completely understandable what the end goal is! More vocabularies!