What steps does it take to reproduce the issue?
- When does this issue occur?
It occurs during harvesting dataverse via oai, for example:
curl http:/localhost:8080/oai?metadataPrefix=oai_ddi&verb=GetRecord&identifier=$PERSISTENT_ID
Harvesting through OAI_DDIExporter only harvests short version of DDI without fileDscr and dataDscr sections.
It uses datasetJson2ddi(JsonObject datasetDtoAsJson, OutputStream outputStream) with dtoddi(DatasetDTO datasetDto, OutputStream outputStream) instead of datasetJson2ddi(JsonObject datasetDtoAsJson, DatasetVersion version, OutputStream outputStream)
The solution maybe to replace datasetJson2ddi with 2 parameters to datasetJson2ddi with 3 parameters.
- What did you expect to happen?
To get full xml with fileDscr and dataDscr sections. The same xml, one will get through api dataverse export metadata.