Commit 2bbc6201 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the column synonym in the harvester report.

parent 4708a0d2
......@@ -117,13 +117,13 @@ class Msg(Storage):
self.action = 'reject'
if record is not None:
if txt == MSG_NO_COUNTRY:
if str(txt) == MSG_NO_COUNTRY:
self.synonym = record.country()
elif txt == MSG_WELL_FORMED_COLLABORATION:
elif str(txt) == MSG_WELL_FORMED_COLLABORATION:
self.synonym = record.collaboration()
elif txt == MSG_NO_PUBLISHER:
elif str(txt) == MSG_NO_PUBLISHER:
self.synonym = record.publisher()
if year is None and record is not None:
......
......@@ -76,6 +76,7 @@
{'name': 'collection', 'type': 'string'},
{'name': 'harvester', 'type': 'string'},
{'name': 'record_id', 'type': 'string'},
{'name': 'synonym', 'type': 'string'},
{'name': 'title', 'type': 'string'},
{'name': 'txt', 'type': 'string'},
{'name': 'url', 'type': 'string'},
......@@ -87,6 +88,7 @@
row.collection,
json.dumps(row.harvester),
row.record_id,
row.synonym,
row.title,
row.txt,
row.url,
......@@ -166,6 +168,7 @@
"trLost = '%s'" % T('Lost'),
"trModified = '%s'" % T('Modified'),
"trRejected = '%s'" % T('Rejected'),
"trSynonym = '%s'" % T('Synonym'),
"trTitle = '%s'" % T('Title'),
"trTxt ='%s'" % T('Message'),
"trStatistics = '%s'" % T('Statistics'),
......@@ -320,6 +323,7 @@
columns: [
{xtype: 'rownumberer'},
{text: trTitle, dataIndex: 'title', flex: 3, renderer: rTitle},
{text: trSynonym, dataIndex: 'synonym', flex: 1},
{text: trAction, dataIndex: 'action', flex: 1, hidden: true},
{text: trTxt, dataIndex: 'txt', flex: 1, hidden: true},
{text: trCollection, dataIndex: 'collection', flex: 1, hidden: true},
......
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