inveniosoftware / invenio-records-rest

Invenio records REST API module.
https://invenio-records-rest.readthedocs.io
MIT License
4 stars 62 forks source link

Dublin Core serializer needs update #315

Open jma opened 2 years ago

jma commented 2 years ago

Describe the bug

serialize_oaipmh serializer (https://github.com/inveniosoftware/invenio-records-rest/blob/82dc6e086fbd616a8d9676874ca08d39033f6108/invenio_records_rest/serializers/dc.py#L56) causes a crash of invenio-oaiserver.

invenio-oaiserver has been change, the serializer is called with a python dict instead of a Record instance.

This serializer should be updated in a similar way than invenio-rdm: https://github.com/inveniosoftware/invenio-rdm-records/blob/89e63fe293a28204f678a0de81f2e2614943b800/invenio_rdm_records/resources/serializers/dublincore/__init__.py#L36