From 2ddea2bb1e3707145ef36e6c826f6c65780cfb41 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Tue, 15 May 2018 19:22:03 +0200 Subject: [PATCH] Crossref fix2. --- journals/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/journals/views.py b/journals/views.py index 94f18a5b5..8e33a39be 100644 --- a/journals/views.py +++ b/journals/views.py @@ -751,8 +751,9 @@ def harvest_citedby_links(request, doi_label): # The only required field in Crossref: doi. citation['doi'] = link_el.find(prefix + 'doi').text - if link_el.find(prefix + 'article_title'): - citation['article_title'] = link_el.find(prefix + 'article_title').text + el = link_el.find(prefix + 'article_title') + if el: + citation['article_title'] = el.text if link_el.find(prefix + 'journal_abbreviation'): citation['journal_abbreviation'] = link_el.find(prefix + 'journal_abbreviation').text -- GitLab