Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion metadata_mapper/mappers/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,11 @@ def enrich_type(self):
if isinstance(t, dict) else t
for t in record_types
]
record_types = [t.lower().rstrip('s') for t in record_types]
record_types = [
t.lower().rstrip('s')
if not t.startswith('http://id.loc.gov/vocabulary/resourceTypes/') else t
for t in record_types
]

for record_type in record_types:
if record_type in constants.type_map:
Expand Down
Loading