Skip to content

Conversation

@peetucket
Copy link
Member

@peetucket peetucket commented Mar 11, 2022

Why was this change made?

When we turn on the code to harvest works from ORCID, we may need to add an additional field to the pub hash to show the original source of the work that came from ORCID (e.g. it came to ORCID via CrossRef, we record "CrossRef"). This data is useful for Profiles to show to users.

This is not a hard requirement yet, just did some research and got started on the work.

This assumes the new pub_hash field to be added will be called orcid_work_source -- need to coordinate with the Profiles team on this.

We also need to look at #1456 once we start harvesting from ORCID.

How was this change tested?

Updated tests

Which documentation and/or configurations were updated?

@peetucket peetucket changed the title updates to harvest from orcid updates to mapping works from orcid Mar 11, 2022
@peetucket peetucket force-pushed the harvest-from-orcid branch from 3d3ee38 to 80cc94f Compare March 11, 2022 00:31
@peetucket peetucket changed the title updates to mapping works from orcid updates for ORCID harvesting Mar 11, 2022
@peetucket peetucket force-pushed the harvest-from-orcid branch from 80cc94f to 0435b05 Compare March 18, 2022 17:37
publisher: work.publisher
publisher: work.publisher,
orcid_work_source: work.work_source
}.compact
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the new pub_hash field we are mapping to

@work_source ||= work_response.dig('source', 'source-name', 'value')
end

def work_type
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the work response from ORCID we pull the new value from

@peetucket peetucket changed the title updates for ORCID harvesting Add new work source field for ORCID harvesting Mar 18, 2022
@peetucket peetucket force-pushed the harvest-from-orcid branch 2 times, most recently from 72b6800 to 8e5e966 Compare July 26, 2023 17:15
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