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 extra metadata elements to record_summary and strip unicode characters #4

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

skybristol
Copy link
Contributor

I did two more things that I found I needed in this package. You are welcome to incorporate these if you think they make sense.

For my use cases, I really wanted to include the ORCID identifier in the summary response so that I always have that value in the object returned when running a bunch of these to build a dataset. I also added the last-modified-date property and included a new function to convert the timestamp values to an ISO8601 date string.

The other thing I found when looking through the responses (and validating this in the raw ORCID API response) were Unicode characters in some strings. I added a function to "deunicode" these, incorporated that into __get_value_from_keys function, and added a new function to handle this in the three cases where we need to put keys from an address object together. You may have a more elegant way of handling this, but it works well for my test cases.

Copy link
Owner

@sri0606 sri0606 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Glad this package helped you. I will approve the changes as they seem relevant to general cases too.

@sri0606 sri0606 merged commit 46d9323 into sri0606:main Jan 21, 2024
2 checks passed
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.

2 participants