Commit fd88233b authored by delanoe's avatar delanoe

[RENAME] scrapers -> scrappers -> moissonneurs (in French).

parent 27d3b588
......@@ -26,7 +26,7 @@ from annotations.views import main as annotations_main_view
import graphExplorer.urls
# Module Scrapers
import scrapers.urls
import moissonneurs.urls
urlpatterns = [ url(r'^admin/' , admin.site.urls )
......@@ -43,6 +43,6 @@ urlpatterns = [ url(r'^admin/' , admin.site.urls )
, url(r'^annotations/', include( annotations_urls ) )
, url(r'^projects/(\d+)/corpora/(\d+)/documents/(\d+)/$', annotations_main_view)
# Module Scrapers
, url(r'^scrapers/' , include( scrapers.urls ) )
# Module Scrapers (Moissonneurs in French)
, url(r'^moissonneurs/' , include( moissonneurs.urls ) )
]
......@@ -15,7 +15,7 @@ from gargantext.util.http import JsonHttpResponse
from gargantext.util.scheduling import scheduled
from gargantext.util.toolchain import parse_extract_indexhyperdata
from scrapers.util import Scraper
from moissonneurs.util import Scraper
......
......@@ -26,7 +26,7 @@ from gargantext.util.http import JsonHttpResponse
from gargantext.util.scheduling import scheduled
from gargantext.util.toolchain import parse_extract_indexhyperdata
from scrapers.util import Scraper
from moissonneurs.util import Scraper
......
......@@ -7,7 +7,7 @@
#
# Scrapers == getting data from external databases
# moissonneurs == getting data from external databases
# Available databases :
......@@ -18,19 +18,19 @@
from django.conf.urls import url
import scrapers.pubmed as pubmed
import scrapers.istex as istex
import moissonneurs.pubmed as pubmed
import moissonneurs.istex as istex
# TODO
#import scrapers.cern as cern
#import moissonneurs.cern as cern
# TODO
#import scrapers.hal as hal
#import scrapers.revuesOrg as revuesOrg
#import moissonneurs.hal as hal
#import moissonneurs.revuesOrg as revuesOrg
# TODO ?
# REST API for the scrapers
# REST API for the moissonneurs
# /!\ urls patterns here are *without* the trailing slash
urlpatterns = [ url(r'^pubmed/query$' , pubmed.query )
......
......@@ -293,7 +293,7 @@
$.ajax({
// contentType: "application/json",
url: window.location.origin+"/scrapers/pubmed/save/"+projectid,
url: window.location.origin+"/moissonneurs/pubmed/save/"+projectid,
data: pubmedifiedQuery,
type: 'POST',
beforeSend: function(xhr) {
......@@ -365,7 +365,7 @@
if(theType=="Pubmed (XML format)") {
$.ajax({
// contentType: "application/json",
url: window.location.origin+"/scrapers/pubmed/query",
url: window.location.origin+"/moissonneurs/pubmed/query",
data: formData,
type: 'POST',
beforeSend: function(xhr) {
......@@ -403,10 +403,10 @@
}
if(theType=="ISTex") {
console.log(window.location.origin+"scrapers/istex/query")
console.log(window.location.origin+"moissonneurs/istex/query")
$.ajax({
// contentType: "application/json",
url: window.location.origin+"/scrapers/istex/query",
url: window.location.origin+"/moissonneurs/istex/query",
data: formData,
type: 'POST',
beforeSend: function(xhr) {
......@@ -537,7 +537,7 @@
$.ajax({
// contentType: "application/json",
url: window.location.origin+"/scrapers/istex/save/"+projectid,
url: window.location.origin+"/moissonneurs/istex/save/"+projectid,
data: postQuery,
type: 'POST',
beforeSend: function(xhr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment