Skip to content

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

@christinklez

Description

@christinklez

Testing with this collection on -stage: https://calisphere-stage.cdlib.org/item/ark:/21198/z1r57166/
Registry: https://registry.cdlib.org/admin/library_collection/collection/28486/change/
Rikolti-data: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#28486/vernacular_metadata_2026-02-17T19:34:50/

constants.py was recently updated to translate LoC URIs: https://github.com/ucldc/rikolti/blob/main/metadata_mapper/mappers/constants.py
oai.samvera mapper: https://github.com/ucldc/rikolti/blob/main/metadata_mapper/mappers/oai/samvera_mapper.py

Summary of issue

The vernacular data in this collection includes this type: <dc:type>http://id.loc.gov/vocabulary/resourceTypes/not</dc:type>

We want the type vocab/enrichments to translate this URI to: text

The validation report indicates that all required fields are mapped:

All 18 candidate records contain all required fields.
Analyzed the following required fields: id, calisphere-id, title, type, rights, is_shown_by, is_shown_at

However, the mapped metadata indicates an empty string:

"type": [
      ""
    ],

Questions

  1. Why does the mapped metadata include an empty string? (The validation report indicates that all required type field are present in the mapped metadata.)
  2. Why is <dc:type> not translating to text?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions