Skip to content

Commit

Permalink
oai: rename format etree methods logically
Browse files Browse the repository at this point in the history
  • Loading branch information
yashlamba authored and kpsherva committed Oct 12, 2023
1 parent d7f5670 commit 0174bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_rdm_records/oai.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def dublincore_etree(pid, record, **serializer_kwargs):
return simpledc.dump_etree(obj)


def oai_marcxml_etree(pid, record):
def marcxml_etree(pid, record):
"""OAI MARCXML format for OAI-PMH."""
item = current_rdm_records_service.oai_result_item(g.identity, record["_source"])
# TODO: MARCXMLSerializer should directly be able to dump an etree instead
Expand All @@ -45,7 +45,7 @@ def oai_marcxml_etree(pid, record):
return etree.fromstring(MARCXMLSerializer().serialize_object(item.to_dict()))


def oai_dcat_etree(pid, record):
def dcat_etree(pid, record):
"""OAI DCAT-AP format for OAI-PMH."""
item = current_rdm_records_service.oai_result_item(g.identity, record["_source"])
# TODO: Ditto. See https://github.com/inveniosoftware/flask-resources/issues/117
Expand Down

0 comments on commit 0174bcd

Please sign in to comment.