Commit 90b61292 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Improve the authors logic of the EditAndLoad wizard.

parent ea00035c
......@@ -120,13 +120,15 @@ def edit_insert():
values['PublicationsReport_numbers'] = record.report_number()
# authors
check.format_authors(record, format_author_fr)
my_authors = tool._my_author_list(record)
try:
check.my_authors(record, reference=my_authors, cmpFct=family_name_fr)
check.authors(record)
check.format_authors(record, format_author_fr)
check.my_authors(record,
reference=tool._my_author_list(record),
cmpFct=family_name_fr)
except CheckException:
record.my_authors = ''
pass
values['PublicationsFirst_author'] = record.first_author()
......
......@@ -1611,7 +1611,8 @@ class Record(dict):
# meta data
# the authors of my institutes signing the record
self.my_authors = None
# string containing a list of name separated by a comma
self.my_authors = ''
def _get(self, field, subfield, force_list=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