Skip to content

Conversation

@peetucket
Copy link
Member

@peetucket peetucket commented Feb 10, 2022

Why was this change made?

We should be able to map additional ORCID types - will be useful when we harvest works from ORCID. Started by looking at the list of works at ORCID and mapping a few more that we can support with our data model.

Also, some changes to match the pattern of other publication sources.

How was this change tested?

Existing tests

Which documentation and/or configurations were updated?

@peetucket peetucket force-pushed the map-additional-orcid-types branch from 00a4d5c to 5829fcf Compare March 11, 2022 00:34
provenance == Settings.orcid_source
end

def wos_pub?
Copy link
Member Author

Choose a reason for hiding this comment

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

additional convenience method like we have for other sources

'otherPaper' => 'other',
'technicalReport' => 'report',
'workingPaper' => 'working-paper'
}.freeze
Copy link
Member Author

Choose a reason for hiding this comment

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

the extra mappings from ORCID works to pub types in sul-pub

abstract: work.short_description,
provenance: 'orcid',
provenance: Settings.orcid_source,
doi: work.external_id_value('doi'),
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 matches how we set provenance for other source types

- technicalReport # Only set via manual pub submission (provenance = cap) or via ORCID harvest (provenance = orcid)
- workingPaper # Only set via manual pub submission (provenance = cap) or via ORCID harvest (provenance = orcid)
- null # Legacy. Not in current code, likely bad data.
wos_item_id:
Copy link
Member Author

Choose a reason for hiding this comment

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

updates to documentation

let(:pub_hash) do
base_pub_hash.dup.tap { |pub_hash| pub_hash[:type] = 'workingPaper' }
base_pub_hash.dup.tap { |pub_hash| pub_hash[:type] = nil }
end
Copy link
Member Author

@peetucket peetucket Mar 11, 2022

Choose a reason for hiding this comment

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

workingPaper is now mappable so let's use some other bad data type to prove we raise the error

@peetucket peetucket force-pushed the map-additional-orcid-types branch 3 times, most recently from 7f26b6f to bae32ac Compare March 18, 2022 18:46
@peetucket peetucket force-pushed the map-additional-orcid-types branch from bae32ac to c92a741 Compare July 26, 2023 17:15
@peetucket peetucket force-pushed the map-additional-orcid-types branch from c92a741 to ef17cb3 Compare February 25, 2025 19:37
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