Skip to content

Commit

Permalink
map_language wound up defined twice in rebase process
Browse files Browse the repository at this point in the history
  • Loading branch information
amywieliczka committed Dec 20, 2023
1 parent 4e79dc6 commit 9eb9743
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions metadata_mapper/mappers/oai/oai_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def map_language(self) -> list:

return [value]


def map_type(self) -> list:
"""
Iterates the `type` values. If they are part of the controlled vocabulary
Expand All @@ -130,13 +131,6 @@ 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 9eb9743

Please sign in to comment.