Skip to content

Type enrichment fix: don't lowercase loc urls before lookup#1266

Merged
barbarahui merged 1 commit intomainfrom
fix-enrich-type-for-loc-urls
Mar 20, 2026
Merged

Type enrichment fix: don't lowercase loc urls before lookup#1266
barbarahui merged 1 commit intomainfrom
fix-enrich-type-for-loc-urls

Conversation

@barbarahui
Copy link
Collaborator

No description provided.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙄 omg.

@barbarahui barbarahui merged commit e43e3e9 into main Mar 20, 2026
3 checks passed
@barbarahui barbarahui deleted the fix-enrich-type-for-loc-urls branch March 20, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oai.samvera UCLA collection is mapping empty text string in type (enrichment chain issue?)

3 participants