diff --git a/journals/views.py b/journals/views.py index a0aec70a3a39d85dec00399cedb61fea24bed4e5..5a0d9ad5ddbb8b9bd403147907f911fe12d53cbb 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 f7f7fbdc01cda03fbb6bc10195e9829760a6eba5..ad09959d78e7f6c24a8e8dcbeb54dcedf36ba180 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,