jonatasgrosman / findpapers

Findpapers: A tool for helping researchers who are looking for related works
MIT License
211 stars 31 forks source link

Complex query for pubmed #8

Open pdecazes opened 3 weeks ago

pdecazes commented 3 weeks ago

Dear Jonatas,

I really like your software.

I would like to do a search by journal with, for example on pubmed, the search “J Nucl Med”[jour].

However, the ", [ and ] symbols in the request are redundant with the findpapers symbols and it returns : "Invalid query format"

This can be annoying, as searches of the type “XX XX”[XXXX] are also possible in other situations on pubmed.

Is there a solution?

Best regards,

Pierre Decazes

pdecazes commented 2 weeks ago

I modified in pubmed_searcher.py

query = query_util.replace_search_term_enclosures(query, '"', '"[TIAB]')

to

query = query_util.replace_search_term_enclosures(query, '"', '"[jour]')

it works, even if it's more of a workaround than a permanent solution.

by the way, I didn't manage to build the software with make. Is this still the build method outside of pip installation?