Newer
Older
class Publication:
def __init__(self, pmc_id=None, pm_id=None, doi=None, preprint_id=None, other_id=None):
self.pmc_id = pmc_id
ids = [("PMC_ID", self.pmc_id), ("PUBMED_ID", self.pm_id), ("DOI", self.doi),
("PREPRINT ID", self.preprint_id), ("OTHER ID", self.other_id)]
return ' '.join([str(id) for id in ids if id[1] is not None])