aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-21 11:49:56 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 11:49:56 -0700
commite14e039c4c0ccbc0db3c58cd71c09e8c3146f6fe (patch)
tree0d764e74f393a869baca82a6a57e4ec877c34f96 /python
parent0988ac6fed7f1d1ba41233bde56b455ba6cba204 (diff)
downloadfatcat-e14e039c4c0ccbc0db3c58cd71c09e8c3146f6fe.tar.gz
fatcat-e14e039c4c0ccbc0db3c58cd71c09e8c3146f6fe.zip
correct JSTOR fix
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/jstor.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/fatcat_tools/importers/jstor.py b/python/fatcat_tools/importers/jstor.py
index 7d630b6b..d8f0463e 100644
--- a/python/fatcat_tools/importers/jstor.py
+++ b/python/fatcat_tools/importers/jstor.py
@@ -49,6 +49,12 @@ class JstorImporter(EntityImporter):
extra = dict()
extra_jstor = dict()
+ title = article_meta.find("article-title")
+ if title:
+ title = title.string.strip()
+ if title.endswith('.'):
+ title = title[:-1]
+
release_type = "article-journal"
if "[Abstract]" in title:
# TODO: strip the "[Abstract]" bit?
@@ -104,12 +110,6 @@ class JstorImporter(EntityImporter):
if jstor_id:
jstor_id = jstor_id.string
- title = article_meta.find("article-title")
- if title:
- title = title.string.strip()
- if title.endswith('.'):
- title = title[:-1]
-
contribs = []
cgroup = article_meta.find("contrib-group")
if cgroup: