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

Elsevier: parse a group affiliation if there is no affid assigned for… #185

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

ErnestaP
Copy link
Contributor

@ErnestaP ErnestaP commented Dec 7, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8ec127b) 92.49% compared to head (3426bf4) 92.54%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #185      +/-   ##
==========================================
+ Coverage   92.49%   92.54%   +0.05%     
==========================================
  Files         110      110              
  Lines        4821     4828       +7     
==========================================
+ Hits         4459     4468       +9     
+ Misses        362      360       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ErnestaP ErnestaP force-pushed the elsevier-group-affiliation branch 2 times, most recently from 1a70701 to 47940eb Compare December 7, 2023 15:02
@ErnestaP ErnestaP marked this pull request as ready for review December 7, 2023 15:24
@ErnestaP ErnestaP self-assigned this Dec 7, 2023
@drjova
Copy link
Contributor

drjova commented Dec 7, 2023

@ErnestaP instead of changing the code, wouldn't it be enough to filter out the {value: None}?

@ErnestaP
Copy link
Contributor Author

ErnestaP commented Dec 8, 2023

Just noting what I said this morning: we cannot because the authors should have affiliation parsed differently if there is no affid associated with them. We need to take the whole affiliation group. Leaving the code the same and just clean None values, will leave authors without affiliations. While the affiliations are actually in the metadata, just have to be parsed in another way

"journal_artid",
id="test_journal_artid",
),
],
)
def test_elsevier_parsing(parsed_articles, expected, key):
print(parsed_articles[3]["authors"])
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need this :)

@ErnestaP ErnestaP requested a review from drjova December 8, 2023 10:26
* If there is no affid assigned for an author, a group affiliation should be assigned for author
* ref: cern-sis/issues-scoap3#262
@ErnestaP ErnestaP force-pushed the elsevier-group-affiliation branch from 3426bf4 to 5ed8539 Compare December 8, 2023 13:36
@ErnestaP ErnestaP merged commit 43b5912 into main Dec 8, 2023
1 check passed
@drjova drjova deleted the elsevier-group-affiliation branch December 8, 2023 13:51
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.

3 participants