Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
c9b8d605
Commit
c9b8d605
authored
Mar 31, 2020
by
LE GAC Renaud
Browse files
Update InvenioStore.interogate to FIX inspirehep.net → old.inspirehep.net.
parent
6e20fe63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/invenio_tools/inveniostore.py
modules/invenio_tools/inveniostore.py
+7
-1
No files found.
modules/invenio_tools/inveniostore.py
View file @
c9b8d605
...
...
@@ -6,7 +6,6 @@ import requests
from
.exception
import
CdsException
from
requests.adapters
import
HTTPAdapter
CDS_SEARCH_KEYS
=
(
"req"
,
"cc"
,
"c"
,
"ec"
,
"p"
,
"f"
,
"rg"
,
"sf"
,
"so"
,
"sp"
,
"rm"
,
"of"
,
"ot"
,
"as"
,
"p1"
,
"f1"
,
"m1"
,
"op1"
,
"p2"
,
"f2"
,
"m2"
,
"op2"
,
"p3"
,
"f3"
,
"m3"
,
"sc"
,
"jrec"
,
"recid"
,
...
...
@@ -32,6 +31,7 @@ class InvenioStore(object):
* a record identified by its id.
"""
def
__init__
(
self
,
host
=
"cds.cern.ch"
):
"""
Args:
...
...
@@ -300,6 +300,12 @@ class InvenioStore(object):
"""
self
.
_url
=
url
# FIXME March 30, 2020:
# * new version of inspirehep.net
# * API not yet ready
# * recommend to use old.inspirehep.net
url
=
url
.
replace
(
"//inspirehep.net"
,
"//old.inspirehep.net"
)
r
=
self
.
_session
.
get
(
url
,
timeout
=
timeout
,
params
=
kwargs
)
r
.
raise_for_status
()
...
...
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