Skip to content

Commit

Permalink
oai: change default for learningresourcetype
Browse files Browse the repository at this point in the history
  • Loading branch information
martinobersteiner committed Nov 13, 2024
1 parent 7bc556d commit 417a84c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_records_lom/resources/serializers/oai/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 417a84c

Please sign in to comment.