From 78fed07f439e0c1249f7ab9ce6c190cd67f73bab Mon Sep 17 00:00:00 2001 From: Philipp Gualdi Date: Wed, 28 Feb 2024 09:41:00 +0100 Subject: [PATCH] modification: pretty export records --- invenio_records_marc21/config.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/invenio_records_marc21/config.py b/invenio_records_marc21/config.py index b61caabe..7df860aa 100644 --- a/invenio_records_marc21/config.py +++ b/invenio_records_marc21/config.py @@ -104,6 +104,7 @@ "serializer": ( "invenio_records_marc21.resources.serializers:" "Marc21JSONSerializer" ), + "params": {"options": {"indent": 4, "sort_keys": True}}, "filename": "{id}.json", }, "marcxml": { @@ -111,17 +112,12 @@ "serializer": ( "invenio_records_marc21.resources.serializers:" "Marc21XMLSerializer" ), + "params": {}, "filename": "{id}.xml", }, } """Marc21 Record export serializers.""" -MARC21_RECORD_EXPORTER_OPTIONS = { - "indent": 4, - "sort_keys": True, -} -"""Marc21 Record export options.""" - MARC21_UI_ENDPOINTS = { "record-detail": "/", "record-export": "//export/",