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
6bc19341
Commit
6bc19341
authored
Jan 11, 2021
by
LE GAC Renaud
Browse files
Update edit_insert to load new inspirehep record
parent
ed0a7110
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
controllers/harvest.py
controllers/harvest.py
+4
-2
No files found.
controllers/harvest.py
View file @
6bc19341
...
...
@@ -142,8 +142,10 @@ def edit_insert():
return
inline_alert
(
T
(
"Error"
),
msg
)
# record
logger
.
debug
(
"load the record..."
)
record
=
load_record
(
selector
.
host
,
selector
.
record_id
)
host
=
selector
.
host
shelf
=
(
"literature"
if
host
==
"inspirehep.net"
else
None
)
logger
.
debug
(
f
"load the record
{
selector
.
host
}
{
selector
.
record_id
}
"
)
record
=
load_record
(
selector
.
host
,
selector
.
record_id
,
shelf
=
shelf
)
if
record
is
None
:
return
inline_alert
(
T
(
MSG_GREMLIN
),
T
(
MSG_NO_RECORD
))
...
...
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