Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'set' property to data for objects in a set #9

Open
tacman opened this issue Jul 6, 2024 · 1 comment
Open

Add 'set' property to data for objects in a set #9

tacman opened this issue Jul 6, 2024 · 1 comment

Comments

@tacman
Copy link
Contributor

tacman commented Jul 6, 2024

I'm looking at the JSON records for the set of objects consisting of

They are 3 separate records but belong to the same "set", however, I don't see any json data indicating that. Obviously, I can hard-code something that says "anything with a dot-letter in the accession_number field is part of a set", but that doesn't feel particularly elegant.

Is it possible for you to add a "set" property?

Thank you for your consideration.

@ethanholda
Copy link
Collaborator

Hello @tacman. There are two attributes in the data that will be useful to you. record_type will tell you whether something is a "part", "component", "cover" record for a set, or a standalone "object". If something is a "part" or "component", you can also find the accession number of the cover record in the cover_accession_number attribute. I'm noticing the cover_accession_number field is not in our documentation and I'll get that rectified.

Thanks for your ongoing interest in our API and dataset.

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

No branches or pull requests

2 participants