Commit 317eeb87 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Propagate the imporved authors logic in all automatons.

parent a5d4a768
......@@ -33,14 +33,13 @@ class Notes(Automaton):
print "select note record"
try:
self.check.my_authors(record,
reference=self._my_author_list(record),
cmpFct=family_name_fr)
self.check.oai(record)
self.check.submitted(record)
self.check.year(record)
self.check.format_authors(record, format_author_fr)
self.check.get_my_authors(record, family_name_fr)
self.check.fix_oai(record)
except CheckException as e:
self.logs[-1].reject(e, record.year())
return False
......
......@@ -55,14 +55,13 @@ class Preprints(Automaton):
return False
try:
self.check.my_authors(record,
reference=self._my_author_list(record),
cmpFct=family_name_fr)
self.check.oai(record)
self.check.submitted(record)
self.check.year(record)
self.check.format_authors(record, format_author_fr)
self.check.get_my_authors(record, family_name_fr)
self.check.fix_oai(record)
except CheckException as e:
self.logs[-1].reject(e, record.year())
return False
......
......@@ -33,11 +33,6 @@ class Proceedings(Automaton):
print "select and check proceeding record"
try:
self.check.my_authors(record,
reference=self._my_author_list(record),
cmpFct=family_name_fr)
self.check.oai(record)
self.check.is_conference(record)
self.check.conference(record)
......@@ -48,6 +43,10 @@ class Proceedings(Automaton):
self.check.paper_reference(record)
self.check.format_editor(record)
self.check.format_authors(record, format_author_fr)
self.check.get_my_authors(record, family_name_fr)
self.check.fix_oai(record)
except CheckException as e:
self.logs[-1].reject(e, record.year())
return False
......
......@@ -40,10 +40,13 @@ class Reports(Automaton):
return False
try:
self.check.oai(record)
self.check.submitted(record)
self.check.year(record)
self.check.format_authors(record, format_author_fr)
self.check.get_my_authors(record, family_name_fr)
self.check.fix_oai(record)
except CheckException as e:
self.logs[-1].reject(e, record.year())
return False
......
......@@ -33,17 +33,16 @@ class Talks(Automaton):
print "select talk record"
try:
self.check.my_authors(record,
reference=self._my_author_list(record),
cmpFct=family_name_fr)
self.check.oai(record)
self.check.is_conference(record)
self.check.conference(record)
self.check.submitted(record)
self.check.year(record)
self.check.format_authors(record, format_author_fr)
self.check.get_my_authors(record, family_name_fr)
self.check.fix_oai(record)
except CheckException as e:
self.logs[-1].reject(e, record.year())
return False
......
......@@ -34,16 +34,15 @@ class Thesis(Automaton):
return False
try:
self.check.my_authors(record,
reference=self._my_author_list(record),
cmpFct=family_name_fr)
self.check.oai(record)
self.check.is_thesis(record)
self.check.submitted(record)
self.check.year(record)
self.check.format_universities(record)
self.check.format_authors(record, format_author_fr)
self.check.get_my_authors(record, family_name_fr)
self.check.fix_oai(record)
except CheckException as e:
self.logs[-1].reject(e, record.year())
return False
......
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