Commit 6bc19341 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update edit_insert to load new inspirehep record

parent ed0a7110
......@@ -142,8 +142,10 @@ def edit_insert():
return inline_alert(T("Error"), msg)
# record
logger.debug("load the record...")
record = load_record(, selector.record_id)
host =
shelf = ("literature" if host == "" else None)
logger.debug(f"load the record {} {selector.record_id}")
record = load_record(, selector.record_id, shelf=shelf)
if record is None:
return inline_alert(T(MSG_GREMLIN), T(MSG_NO_RECORD))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment