From f0108696323914825d73c661b0f0bcdb6d702359 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Tue, 10 Apr 2018 12:39:04 +0200 Subject: [PATCH] Fix citation prop --- journals/views.py | 2 +- submissions/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/journals/views.py b/journals/views.py index a0aec70a3..5a0d9ad5d 100644 --- a/journals/views.py +++ b/journals/views.py @@ -1152,6 +1152,6 @@ def arxiv_doi_feed(request, doi_label): for publication in publications: feedxml += ('\n<article preprint_id="%s" doi="%s" journal_ref="%s" />' % ( publication.accepted_submission.arxiv_identifier_wo_vn_nr, publication.doi_string, - publication.citation())) + publication.citation) feedxml += '\n</preprint>' return HttpResponse(feedxml, content_type='text/xml') diff --git a/submissions/views.py b/submissions/views.py index f7f7fbdc0..ad09959d7 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -736,7 +736,7 @@ def select_referee(request, arxiv_identifier_w_vn_nr): sub_auth_boolean_str += '+OR+' + author['name'].split()[-1] sub_auth_boolean_str += ')+AND+' search_str = sub_auth_boolean_str + ref_search_form.cleaned_data['last_name'] + ')' - queryurl = ('http://export.arxiv.org/api/query?search_query=au:%s' + queryurl = ('https://export.arxiv.org/api/query?search_query=au:%s' % search_str + '&sortBy=submittedDate&sortOrder=descending' '&max_results=5') arxivquery = feedparser.parse(queryurl) @@ -1424,7 +1424,7 @@ def prepare_for_voting(request, rec_id): queryurl = queryurl.replace(' ', '+') # Fallback for some last names with spaces queryresults = feedparser.parse(queryurl) if queryresults.entries: - coauthorships[fellow.contributor.user.last_name] = queryresults + coauthorships[fellow.contributor.user.last_name] = queryresults.entries context = { 'recommendation': recommendation, -- GitLab