Smithsonian / Smithsonian/caas-aspace-scripts
[FEATURE] Generate Report for Duplicate Record IDs
@crugas is already working on this.
Since Mar 6, 2025.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
Generate a CSV report of all Agents who have duplicate record IDs based on their sources - aka 2 SNAC IDs, 2 NAF IDs. The IDs do not have to match, but there needs to be multiple record IDs from the same source.
Describe the solution you'd like
Generate a CSV report of all agents with duplicative source record IDs. CSV columns should contain:
- Agent URI
- Duplicate Source
- Duplicate ID
- Repeat above for all other duplicative records
Describe alternatives you've considered
We'll need to reconsider how to do this moving forward. Either:
- Modify the LCNAF importer to change the IDs upon import
- Update all NAF record IDs and add (DLC) prefix
Additional context
Upon adding record IDs to Agents from #24, we discovered that some Agents have NAF record IDs that are essentially the same, but the only difference is one contains a "(DLC)" prefix on the ID and the other does not. See the below image. This is going to turn into a bigger issue, since it appears NAF records are coming in with the (DLC) prefix. See https://id.loc.gov/authorities/names/nr2003020629.marcxml.xml
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.