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 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.

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


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.