IQSS / IQSS/dataverse

Harvester exporter uses short version of XML

Open
#8,778 10 comments 0 reactions 1 assignee View on GitHub

@lubitchv is already working on this.

Since Jun 7, 2022.

Feature: Harvesting Type: Suggestion User Role: API User
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.