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

Notify author with too many publications to update their settings #1148

Open
peetucket opened this issue Mar 19, 2020 · 3 comments
Open

Notify author with too many publications to update their settings #1148

peetucket opened this issue Mar 19, 2020 · 3 comments

Comments

@peetucket
Copy link
Member

peetucket commented Mar 19, 2020

From https://app.honeybadger.io/projects/50046/faults/49773157, we should look at author # 53490 and investigate the name queried being generated to understand why so many publications are being returned. May need to ask the author to update their name data.

Resources for confirming queries for a given author: https://github.com/sul-dlss/sul_pub/wiki/Useful-console-commands-(harvest,-WoS,-Pubmed,-others) - look at "
Query Inspection Sanity Test"

{"message" => "Pubmed::Harvester: Pubmed::Harvester - Pubmed harvest returned more than 3000 for author 53490 and was aborted"}

@peetucket
Copy link
Member Author

Looks like the user has a period for a first name, and should be asked to fill in a full first name. But we should also not generate this kind of query if a first name is just a period. Note how the query has no author (AU) clause. This is not correct.

author=Author.find(53490)
puts "CAP_PROFILE_ID: #{author.cap_profile_id}";puts "NUM PUBS: #{author.contributions.count}";puts "PRIMARY AUTHOR NAME: #{author.cap_first_name} #{author.cap_last_name}";author_query = WebOfScience::QueryAuthor.new(author);puts "ALL NAMES: #{author_query.send(:names).join(";")}";puts "INSTITUTIONS: #{author_query.send(:institutions).join(";")}";puts "WOS: #{author_query.send(:author_query)[:queryParameters][:userQuery]}";pm_query = Pubmed::QueryAuthor.new(author, {});puts "Pubmed: #{pm_query.send(:term)}";nil
CAP_PROFILE_ID: 69115
NUM PUBS: 1
PRIMARY AUTHOR NAME: . Rituraj
ALL NAMES:
INSTITUTIONS: stanford
WOS: AU=() AND AD=("stanford")
Pubmed: () AND (Stanford University[Affiliation])
=> nil

@peetucket peetucket self-assigned this Mar 19, 2020
@peetucket
Copy link
Member Author

Action: tell Profiles project manager to ask this person to update their profile name.

@peetucket
Copy link
Member Author

peetucket commented Jun 15, 2020

Query won't produce too many publications anymore after being fixed with #1153 (issue #1149)

@peetucket peetucket changed the title Investigate an author with too many publications Notify author with too many publications to update their settings Jun 15, 2020
@peetucket peetucket removed their assignment May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant