From ec84153e744b8f025e39a3ccdae3fdb9e70bf409 Mon Sep 17 00:00:00 2001 From: Vitor Freitas Date: Tue, 9 Mar 2021 23:28:10 -0300 Subject: [PATCH] Disable science direct search --- .../templates/conducting/conducting_search_studies.html | 2 ++ parsifal/reviews/conducting/views.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/parsifal/reviews/conducting/templates/conducting/conducting_search_studies.html b/parsifal/reviews/conducting/templates/conducting/conducting_search_studies.html index 2e5a1112..79d6d42d 100644 --- a/parsifal/reviews/conducting/templates/conducting/conducting_search_studies.html +++ b/parsifal/reviews/conducting/templates/conducting/conducting_search_studies.html @@ -272,6 +272,7 @@

+ {% comment %}

@@ -369,6 +370,7 @@

+ {% endcomment %} diff --git a/parsifal/reviews/conducting/views.py b/parsifal/reviews/conducting/views.py index 51a736c6..4312a02f 100644 --- a/parsifal/reviews/conducting/views.py +++ b/parsifal/reviews/conducting/views.py @@ -9,7 +9,7 @@ from django.views.decorators.http import require_POST from django.core.urlresolvers import reverse as r -from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden +from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, Http404 from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User @@ -146,7 +146,8 @@ def search_scopus(request): @author_required @login_required def search_science_direct(request): - return elsevier_search(request, 'science_direct') + raise Http404 + # return elsevier_search(request, 'science_direct') @author_required @login_required