SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3ef0f968 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix possible undefined variable error

parent d510bbb3
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,7 @@ def initiate_publication(request):
if paper_nr > 999:
raise PaperNumberingError(paper_nr)
doi_label = (
current_issue.in_volume.in_journal.get_abbreviation_doi()
current_issue.in_volume.in_journal.name
+ '.' + str(current_issue.in_volume.number)
+ '.' + str(current_issue.number) + '.' + paper_nr_string(paper_nr)
)
......@@ -677,6 +677,7 @@ def harvest_citedby_links(request, doi_string):
item_number = link.find(prefix + 'journal_cite').find(prefix + 'item_number').text
except:
item_number = None
multiauthors = False
for author in link.find(prefix + 'journal_cite').find(
prefix + 'contributors').iter(prefix + 'contributor'):
if author.get('sequence') == 'first':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment