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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
28b2ec83
Commit
28b2ec83
authored
Jun 30, 2017
by
LE GAC Renaud
Browse files
Update RecordPubli to fix a bug in preprint_number.
parent
f5403c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/invenio_tools/recordpubli.py
modules/invenio_tools/recordpubli.py
+3
-2
No files found.
modules/invenio_tools/recordpubli.py
View file @
28b2ec83
...
...
@@ -657,7 +657,8 @@ class RecordPubli(Record):
"""The ArXiv preprint number.
Returns:
str: empty string when it is not defined.
unicode:
empty string when it is not defined.
"""
if
u
"primary_report_number"
not
in
self
:
...
...
@@ -666,7 +667,7 @@ class RecordPubli(Record):
data
=
self
[
u
"primary_report_number"
]
data
=
(
data
if
isinstance
(
data
,
list
)
else
[
data
])
li
=
[
el
for
el
in
data
if
el
.
startswith
(
ARXIV
)]
li
=
[
el
for
el
in
data
if
el
is
not
None
and
el
.
startswith
(
ARXIV
)]
if
len
(
li
)
==
1
:
return
li
[
0
]
...
...
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