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
f724cb1f
Commit
f724cb1f
authored
Jan 27, 2020
by
LE GAC Renaud
Browse files
Update invenio_tools ti fix a bug in add_affiliation_key.
parent
c7d9cc54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/invenio_tools/factory.py
modules/invenio_tools/factory.py
+1
-1
No files found.
modules/invenio_tools/factory.py
View file @
f724cb1f
...
...
@@ -46,7 +46,7 @@ def add_affiliation_keys(recjson):
rep
=
requests
.
get
(
url
,
params
=
{
"ot"
:
"110"
,
"of"
:
"txt"
})
# decode the string: '000recid 110__ $$aXXX$$bYYY$$tZZZ\n'
txt
=
rep
.
con
te
n
t
.
replace
(
"
\n
"
,
""
)
txt
=
rep
.
te
x
t
.
replace
(
"
\n
"
,
""
)
li
=
txt
[
txt
.
find
(
"$"
):].
split
(
"$$"
)
di
=
{}
...
...
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