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

Clean import.

parent f760adb1
......@@ -11,12 +11,9 @@ from harvest_tools import (format_author_fr,
build_harvester_tool,
PublicationsTool,
ToolException)
from invenio_tools import (CdsException,
CheckAndFix,
from invenio_tools import (CheckAndFix,
CheckException,
Marc12Exception,
InvenioStore,
Marc12,
load_record,
OAI_URL)
from plugin_dbui import (get_id,
INLINE_ALERT,
......@@ -116,10 +113,7 @@ def edit_insert():
return INLINE_ALERT % (T('Error'), msg)
# record
store = InvenioStore(selector.host)
xml = store.get_record(selector.record_id)
decode = Marc12()
record = decode(xml)[0]
record = load_record(selector.host, selector.record_id)
# form configuration
cfg = to_formPanel(db.publications)
......@@ -136,7 +130,7 @@ def edit_insert():
selector.controller,
selector.id_categories,
dry_run=True,
debug=False)
debug=True)
# title, preprint, URL, report number
values['PublicationsTitle'] = record.title()
......
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