Hi there, I am currently using dataverse version 6.2 and in Dataset page Metadata tab the values for Funding Information field in citation metadatablock are not showing, but the values appear when editing the dataset.
I am trying to debug this situation by looking at the code block that starts here in metadataFragment.xhtml, but I don't have any changes there. I am also looking at datafieldvalue table to check if the fields are correctly defined. Everything seems fine but the values don't appear. Any ideas/suggestions?
My configuration in citation.tsv for the fields not showing is as follows:
#datasetField name title description watermark fieldType displayOrder displayFormat advancedSearchField allowControlledVocabulary allowmultiples facetable displayoncreate required parent metadatablock_id termURI
...
grantNumber Funding Information Information about the Dataset's financial support none 46 : FALSE FALSE TRUE FALSE FALSE FALSE citation https://schema.org/sponsor
grantNumberAgency Agency The agency that provided financial support for the Dataset Organization XYZ text 47 #VALUE TRUE FALSE FALSE TRUE FALSE FALSE grantNumber citation
grantNumberValue Identifier The grant identifier or contract identifier of the agency that provided financial support for the Dataset text 48 #VALUE TRUE FALSE FALSE TRUE FALSE FALSE grantNumber citation
Is this a published, public dataset we can look at?
Yes, for example this one: https://qty.polen.fccn.pt/dataset.xhtml?persistentId=doi:10.82210/VFANW5
I can see grantNumberValue, etc when I export as JSON: https://qty.polen.fccn.pt/api/datasets/export?exporter=dataverse_json&persistentId=doi%3A10.82210/VFANW5
Yes, the metadata when exporting as JSON seems correct, but when previewing the metadata tab the Funding Information is empty.
In that case it should appear the grantNumberValue. In this example both fields for grantNumber have values but nothing appears in Metadata and the JSON export has these values https://qty.polen.fccn.pt/api/datasets/export?exporter=dataverse_json&persistentId=doi:10.82210/HIQEKZ
César Ferreira said:
but I don't have any changes there
Did you make other changes? Are you running a fork? If you create a dataset using that JSON on https://demo.dataverse.org, does it look ok?
I think I found the issue, I am using an external controlled vocabulary script for that field. It was supposed to only work in edit mode but somehow it interferes with the loading of that field in view mode. After I changed the condition in the script for when to run, everything is working as intended.
César Ferreira has marked this topic as resolved.
I also had parent field name in the JSON config file for external controlled vocabularies and that was also causing the issue. After I changed it to grantNumberValue it started showing the values.
Ah, CVOC. I should have asked about that. Glad you figured it out!
Last updated: Oct 30 2025 at 06:21 UTC