Skip to content

Commit

Permalink
Map source and language in oai base
Browse files Browse the repository at this point in the history
  • Loading branch information
lthurston authored and amywieliczka committed Dec 20, 2023
1 parent e31a64a commit 2b046fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions metadata_mapper/mappers/oai/oai_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ def map_type(self) -> list:
# type_list.append(mapped_type.lower())
# return type_list

def map_language(self) -> list:
value = self.source_metadata.get("language")

if isinstance(value, list):
return value

return [value]

class OaiVernacular(Vernacular):

Expand Down

0 comments on commit 2b046fe

Please sign in to comment.