IQSS / dataverse

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

returnDatasetFieldTypes=true not working on non-root collection inheriting "citation" from root #10984

Closed pdurbin closed 2 weeks ago

pdurbin commented 3 weeks ago

To reproduce:

Expected results: "fields" should be populated with title, etc. from the citation block.

Actual results: "fields" is an empty object

{
  "status": "OK",
  "data": [
    {
      "id": 1,
      "name": "citation",
      "displayName": "Citation Metadata",
      "displayOnCreate": true,
      "fields": {}
    }
  ]
}

See also:

You can see this in action at https://beta.dataverse.org/api/dataverses/testCollection/metadatablocks?onlyDisplayedOnCreate=true&returnDatasetFieldTypes=true

If you go to https://beta.dataverse.org/spa/datasets/testCollection/create not how no fields are available to fill in:

Screenshot 2024-10-30 at 5 59 01 PM