Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 98acb374 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Migrate Edit and Insert.

parent 336fb685
......@@ -144,9 +144,6 @@ def edit_insert():
values = {}
check = CheckAndFix()
# fix invalid oai
check.recover_oai(record, selector.host)
# title, preprint, URL, report number
values["PublicationsTitle"] = record.title()
values["PublicationsPreprint"] = record.preprint_number()
......@@ -203,7 +200,6 @@ def edit_insert():
# publishers
if selector.controller in ("articles", "proceedings"):
check.clean_erratum(record)
check.paper_reference(record)
check.format_editor(record)
......@@ -224,7 +220,7 @@ def edit_insert():
try:
check.country(record)
check.conference_date(record, selector.host)
check.conference_date(record)
except CheckException:
pass
......@@ -268,16 +264,16 @@ def edit_insert():
# submitted date and year
try:
check.submitted(record)
check.year(record)
except CheckException:
pass
values["PublicationsSubmitted"] = ", ".join(record.submitted())
values["PublicationsSubmitted"] = record.submitted()
if record.is_published():
year = record.paper_year()
else:
year = record.year()
year = record.submitted()[0:4]
values["PublicationsYear"] = year
......
......@@ -393,7 +393,7 @@ class Automaton(object):
try:
# fix record with a missing OAI
if not self.check.is_oai(record):
oai = OAI % (self.harvester.host, record.id)
oai = OAI % (self.harvester.host, record.id())
record[u"oai"] = {u"value": oai}
if self.check.is_bad_oai_used(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