Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
2e12a471
Commit
2e12a471
authored
May 11, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to Fix BUG#1593
parent
b11e1f9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
constants.py
gargantext/constants.py
+1
-1
cern.py
moissonneurs/cern.py
+2
-0
No files found.
gargantext/constants.py
View file @
2e12a471
...
...
@@ -194,7 +194,7 @@ RESOURCETYPES = [
'default_language'
:
'en'
,
},
# type 10
{
"name"
:
'C
ERN
'
,
{
"name"
:
'C
ern
'
,
"parser"
:
CernParser
,
"default_language"
:
"en"
,
},
...
...
moissonneurs/cern.py
View file @
2e12a471
...
...
@@ -21,6 +21,7 @@ from collections import defaultdict
from
gargantext.settings
import
API_TOKENS
as
API
#from private import API_PERMISSIONS
API_TOKEN
=
API
[
"CERN"
]
def
query
(
request
):
print
(
request
.
method
)
alist
=
[]
...
...
@@ -195,6 +196,7 @@ class CERN_API(object):
if
chunk
:
# filter out keep-alive new chunks
f
.
write
(
chunk
)
return
filename
def
parse_xml
(
filename
,
MARCXML
):
parser
=
etree
.
XMLParser
()
with
open
(
self
.
filename
,
'r'
)
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment