backend.papersource module

class backend.papersource.PaperSource(max_results=None)[source]

Bases: object

Abstract interface for something that adds papers from some metadata source for a given researcher.

fetch_and_save(researcher)[source]

Fetch papers and save them to the database.

Parameters:incremental – When set to true, papers are clustered and commited one after the other. This is useful when papers are fetched on the fly for an user.
fetch_bare(researcher)[source]

This function returns a generator of :class:`BarePaper`s fetched for the given researcher.

fetch_papers(researcher)[source]

This function is the one subclasses should reimplement. Given a researcher, it should yield all the papers it can fetch from the source.

save_paper(bare_paper, researcher)[source]
update_empty_orcid(researcher, val)[source]

Updates the empty_orcid_profile field of the provided Researcher instance.