From 417a84cc4b4672363760cd319dc198acc4a36552 Mon Sep 17 00:00:00 2001 From: Martin Obersteiner Date: Tue, 12 Nov 2024 11:10:31 +0100 Subject: [PATCH] oai: change default for learningresourcetype --- invenio_records_lom/resources/serializers/oai/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invenio_records_lom/resources/serializers/oai/schema.py b/invenio_records_lom/resources/serializers/oai/schema.py index 4371ace..999693e 100644 --- a/invenio_records_lom/resources/serializers/oai/schema.py +++ b/invenio_records_lom/resources/serializers/oai/schema.py @@ -309,12 +309,12 @@ class LearningResourceTypeSchema(ExcludeUnknownOrderedSchema): validate=validate.Equal(LANGSTRING_KIM_HCRT_SCHEME), dump_default=LANGSTRING_KIM_HCRT_SCHEME, ) - id = fields.Str(required=True, dump_default="N/A") + id = fields.Str(required=True, dump_default="https://w3id.org/kim/hcrt/other") @classmethod def dump_default(cls) -> dict: """Dump default.""" - obj = {"id": "N/A"} + obj = {"id": "https://w3id.org/kim/hcrt/other"} obj |= {"source": LANGSTRING_KIM_HCRT_SCHEME} return obj