Skip to content

OAItoDatahub does not work correctly #2

@netsensei

Description

@netsensei

The example OAI to Datahub tries to fetch a LIDO record from the YBCA OAI endpoint and pushes it to the Datahub API. Since the OAI provides LIDO records, there's no need for processing or transforming. The XML structure should be passed on as is.

However, Catmandu will grok the XML and transform it internally into JSON before changing it again into XML. These (redundant) operations break the immutability of the XML structure in this use case. It's not possible to predict if the conversion of JSON > XML will generate the same XML structure which was the original input.

Remove or deprecate the example until the Datahub::Factory supports this use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions