Skip to content

Harvester exporter uses short version of XML #8778

@lubitchv

Description

@lubitchv

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

  • What happens?

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions