From 06ba39f0beec7597b4bd9a98504069c58b2c7a94 Mon Sep 17 00:00:00 2001 From: "Jochens, Florian" <fj@andaco.de> Date: Thu, 11 Nov 2021 21:17:05 +0100 Subject: [PATCH] add publication class template --- input/pub.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 input/pub.py diff --git a/input/pub.py b/input/pub.py new file mode 100644 index 0000000..745a504 --- /dev/null +++ b/input/pub.py @@ -0,0 +1,32 @@ +class Publication: + #_registry = [] + #_citations = [] + #_references = [] + + def __init__(self, title, publication_date, contributors, doi_url, + subjects, num_citations): + #self._registry.append(self) + self.title = title + self.publication_date = publication_date + self.contributors = contributors + self.doi_url = doi_url + self.subjects = subjects + self.num_citations = num_citations + self.num_references = num_references + self._citations = [] + self._references = [] + +class Citation: + def __init__(self, title, journal, contributors, doi_url): + self.title = title + self.journal = journal + self.contributors = contributors + self.doi_url = doi_url + +class References: + def __init__(self, title, journal, contributors, doi_url): + self.title = title + self.journal = journal + self.contributors = contributors + self.doi_url = doi_url + -- GitLab