diff --git a/commentaries/forms.py b/commentaries/forms.py index be071a9fb1b38374e6baf30d1d51a93c7166d0dc..f3b76851090365324caac40c94dc9d9c3d6e87a3 100644 --- a/commentaries/forms.py +++ b/commentaries/forms.py @@ -36,6 +36,7 @@ class DOIToQueryForm(forms.Form): def request_published_article_form_prefill_data(self): additional_form_data = {'pub_DOI': self.cleaned_data['doi']} + self.crossref_data['author_list'] = ", ".join(self.crossref_data['author_list']) return {**self.crossref_data, **additional_form_data} @@ -66,6 +67,7 @@ class ArxivQueryForm(forms.Form): def request_arxiv_preprint_form_prefill_data(self): additional_form_data = {'arxiv_identifier': self.cleaned_data['identifier']} + self.arxiv_data['author_list'] = ", ".join(self.arxiv_data['author_list']) return {**self.arxiv_data, **additional_form_data} diff --git a/commentaries/views.py b/commentaries/views.py index aace26ae67475e847eeb6faec29769b252f069d7..b8eb6d4e4eb4eb75750d08bc98ce1b7af0367e01 100644 --- a/commentaries/views.py +++ b/commentaries/views.py @@ -45,7 +45,7 @@ class RequestPublishedArticle(CreateView): def form_valid(self, form): messages.success(self.request, strings.acknowledge_request_commentary) - return super(RequestArxivPreprint, self).form_valid(form) + return super(RequestPublishedArticle, self).form_valid(form) @method_decorator(permission_required( diff --git a/scipost/test_services.py b/scipost/test_services.py index 4202d7f52b531362fff8de08c1fb37098b604e23..c32d41cc8bb4afaf4a28fa3d17821f47554d95a4 100644 --- a/scipost/test_services.py +++ b/scipost/test_services.py @@ -49,8 +49,6 @@ class DOICallerTest(TestCase): correct_data = { 'pub_date': '2017-04-04', 'journal': 'SciPost Physics', - # Inexplicably, an extra space is added between 'inpenetrable' and 'bosons', but this is a - # Crossref error. 'pub_title': 'One-particle density matrix of trapped one-dimensional impenetrable bosons from conformal invariance', 'pages': '', 'volume': '2',