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

Fails for items with many authors #3

Open
vince-p opened this issue Jun 3, 2021 · 0 comments
Open

Fails for items with many authors #3

vince-p opened this issue Jun 3, 2021 · 0 comments

Comments

@vince-p
Copy link

vince-p commented Jun 3, 2021

The extension seems to fail when the search string is very long.
I can see from the debug log that this URL is being searched:

https://scholar.google.com/scholar?hl=en&as_q=Safety,+tolerability,+pharmacokinetics,+and+pharmacodynamics+of+low+dose+lysergic+acid+diethylamide+(LSD)+in+healthy+older+volunteers&as_epq=&as_occt=title&num=1&as_sauthors=Family+Maillet+Williams+Krediet+Carhart-Harris+Williams+Nichols+Goble+Raz&as_ylo=2020&as_yhi=2020

But when I visit that web page, I can see that google truncates the main part of the search string. This is what is visible in the search box on the google scholar website when visiting that link:

allintitle: Safety, tolerability, pharmacokinetics, and pharmacodynamics of low dose lysergic acid diethylamide (LSD) in healthy older volunteers author:Family author:Maillet author:Williams author:Krediet author:Carhart-Harris author:Williams author:Nicho

ie, google is truncating the search string to 476 characters (despite the full URL being correct). This is odd as google does search the correct year, even though that information is at the end of the URL.

This could be fixed by checking the length of the search string and not adding any new search terms that would result in a length >476

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

No branches or pull requests

1 participant